-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
176 lines (83 loc) · 2.46 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<html>
<head>
<title>Vote and Win Skins</title>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' rel='stylesheet' type='text/css'>
<style>
</style>
</head>
<body class="row">
<div class="container">
<div class="row margin-top-3">
<div class="col-sm-12">
<h3>How to participate</h3>
<strong>Step 1</strong>: Install <a href="https://metamask.io/" target="_blank">the metamask plug-in</a> create an account on main network, and load some Ether.
<br>
<strong>Step 2</strong>: Buy tickets below by entering the total number of chips you want to buy.
<br>
<strong>Step 3</strong>: Vote for the game by entering their name and number. of tickets to vote with.
<br>
</div>
</div>
<div class="row margin-top-3">
<div class="col-sm-7">
<h2>GAMES</h2>
<div class="table-responsive">
<table class="table table-bordered">
<thead>
<tr>
<th>GAMES</th>
<th>counts</th>
</tr>
</thead>
<tbody id="candidate-rows">
</tbody>
</table>
</div>
</div>
<div class="col-sm-offset-1 col-sm-4">
<h2>Tickets</h2>
<div class="table-responsive">
<table class="table table-bordered">
<tr>
<th>Ticket Info</th>
<th>Value</th>
</tr>
<tr>
<tr>
<tr>
<td>Ticket Price</td>
<td id="token-cost"></td>
</tr>
<tr>
</table>
</div>
</div>
</div>
<hr>
<div class="row margin-bottom-3">
<div class="col-sm-7 form">
<h2>Vote For Your Game</h2>
<div id="msg"></div>
<input type="text" id="candidate" class="form-control" placeholder="Enter the game name"/>
<br>
<br>
<input type="text" id="vote-tokens" class="form-control" placeholder="Total no. of tickets to vote"/>
<br>
<br>
<a href="#" onclick="App.voteForCandidate(); return false; window.location.reload()" class="btn btn-primary">Vote</a>
</div>
<div class="col-sm-offset-1 col-sm-4">
<div class="col-sm-12 form">
<h2>Buy Tickets</h2>
<div id="buy-msg"></div>
<input type="text" id="buy" class="col-sm-8" placeholder="Number of tickets to buy"/>
<a href="#" onclick="App.buyTokens(); return false;" class="btn btn-primary">Buy</a>
</div>
</div>
</div>
</div>
</body>
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"></script>
<script src="index.js"></script>
</html>