-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
executable file
·127 lines (124 loc) · 3.79 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
<!DOCTYPE html>
<html>
<head>
<title>Hello World DApp</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'>
</head>
<body class="container">
<h1>A Simple Hello World Voting Application</h1>
<div class="table-responsive">
<table class="table table-bordered">
<thead>
<tr>
<th>Candidate</th>
<th>Votes</th>
</tr>
</thead>
<tbody>
<!-- <tr>
<td>Rama</td>
<td id="Rama"></td>
</tr>
<tr>
<td>Nick</td>
<td id="Nick"></td>
</tr>
<tr>
<td>Jose</td>
<td id="Jose"></td>
</tr> -->
<tr>
<td>Alson</td>
<td id="Alson"></td>
</tr>
<tr>
<td>Ben</td>
<td id="Ben"></td>
</tr>
<tr>
<td>Chary</td>
<td id="Chary"></td>
</tr>
<tr>
<td>Chris</td>
<td id="Chris"></td>
</tr>
<tr>
<td>Cloe</td>
<td id="Cloe"></td>
</tr>
<tr>
<td>Daly</td>
<td id="Daly"></td>
</tr>
<tr>
<td>Eric</td>
<td id="Eric"></td>
</tr>
<tr>
<td>Grace</td>
<td id="Grace"></td>
</tr>
<tr>
<td>Han-Qi-Wang</td>
<td id="Han-Qi-Wang"></td>
</tr>
<tr>
<td>Ian-Su</td>
<td id="Ian-Su"></td>
</tr>
<tr>
<td>Jim-Ho</td>
<td id="Jim-Ho"></td>
</tr>
<tr>
<td>Joanna</td>
<td id="Joanna"></td>
</tr>
<tr>
<td>Joey</td>
<td id="Joey"></td>
</tr>
<tr>
<td>Kate</td>
<td id="Kate"></td>
</tr>
<tr>
<td>Meng-Gen</td>
<td id="Meng-Gen"></td>
</tr>
<tr>
<td>Randy</td>
<td id="Randy"></td>
</tr>
<tr>
<td>Samuel</td>
<td id="Samuel"></td>
</tr>
<tr>
<td>Timo</td>
<td id="Timo"></td>
</tr>
<tr>
<td>Titan</td>
<td id="Titan"></td>
</tr>
<tr>
<td>Tony</td>
<td id="Tony"></td>
</tr>
<tr>
<td>Vicky</td>
<td id="Vicky"></td>
</tr>
</tbody>
</table>
</div>
<input type="text" id="candidate" />
<a href="#" onclick="voteForCandidate()" class="btn btn-primary">Vote</a>
</body>
<script src="https://cdn.rawgit.com/ethereum/web3.js/develop/dist/web3.js"></script>
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"></script>
<script src="./index.js"></script>
</html>