-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathvote.html
43 lines (34 loc) · 1.24 KB
/
vote.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
<html>
<head>
<!-- updated 25/10/14 -->
<title>Voting Dapp</title>
<script type="text/javascript" src="web3.min.js"></script>
<link rel="stylesheet" href="vote.css">
<script src="functions.js"></script>
</head>
<body onload="settings_()">
<div class="content">
<label> Chair person :</label> <label id="chairpersson"></label><br><br>
<label>choose the proposal to vote on : </label>
<select id="proposals" ><option value="0">proposal 1</option><option value="1">proposal 2</option><option value="3">proposal 3</option></select>
<button id="yes" onclick="vote_()"> Vote</button>
<br>
<br>
<label> Voter's address :</label><input id="address_voter"><button onclick="get_voter()" id="info">infos</button>
<br><br>
<label> Delegate to address :</label><input id="delegate_voter"><button onclick="delegate_voter()" id="deleg">Delegate</button>
<br>
<br>
<br>
<label> vote detail :</label> <label id="voter_detail"></label><br><br>
<br>
<br>
<button id="result" onclick="result_()">voting result</button>
<br>
<!--h5>voted: <strong id="vote_result_label"></strong></h5-->
<br>
<!--h5>Message: <strong id="Message_label"></strong></h5-->
<h5>winning Proposal: <strong id="winningProposal"></strong></h5>
</div>
</body>
</html>