-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
111 lines (100 loc) · 4.07 KB
/
Copy pathindex.html
File metadata and controls
111 lines (100 loc) · 4.07 KB
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>BitVote Demo</title>
<link rel="stylesheet" href="css/note.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/addr.css">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<p>→<a href="panel.html">Control panel</a></p>
<!--Viewing non-account, non-topic state-->
<table>
<tr><td>Bitvote addr:</td><td>
<input type="text" id="bitvote_addr_input" oninput="set_from_input();"></td>
</tr>
<tr><td>OnePerID</td> <td id="oneperid">-</td></tr>
<tr><td>Changer</td> <td id="changer">-</td></tr>
<tr><td>Puppeteer</td> <td id="puppeteer">-</td></tr>
</table>
<!--Registering with the OnePerID-->
<span id="oneperid_register" hidden="true">
<hr>
<h4>Registering:</h4>
<input type="text" id="oneperid_register_input" oninput="update();">
<br><span id="oneperid_register_note"></span>
<button onclick="run_register();">Register</button>
</span>
<hr>
<!--Available vote time.-->
<p style="float:left;padding:2%;font-size:70%;color:#555">
</p>
<span id="message">This message should disappear when the javascript runs.</span>
<span id="account_status" hidden="true">
<table><tr><td><img src="images/bitvote_logo_smaller.png" alt="logo" /></td><td>
<table>
<tr>
<td class="note">add</td> <td>CurrentTime:</td>
<td id="current_time"></td></tr>
<tr style="border-bottom: 2px">
<td class="note">minus</td> <td>Registered Time:</td>
<td id="register_time"></td></tr>
<tr>
<td class="note">minus</td> <td>Spent Vote-Time:</td>
<td id="spent_time"></td></tr>
<tr>
<td class="note">equals</td> <td>Available Vote-Time:</td>
<td id="power_time"></td></tr>
</table></td></tr></table>
<!-- Voting interface -->
<table>
<tr><td>Vote:</td>
<td>From:</td><td>
<input type="text" id="vote_from_addr_input" oninput="update_from();">
<span id="vote_from_addr_input_note"></span>
</td></tr>
<tr><td></td>
<td>For:<button id="vote_way" onclick="vote_way_toggle();">By string</button></td>
<td>
<input type="text" id="vote_for_input" oninput="update_suggest();">
<p id="suggest_for" hidden="true"></p>
</td></tr>
<tr><td></td><td>Amount:</td>
<td>
<button onclick="add_time(1);">+s</button>
<button onclick="add_time(60);">+m</button>
<button onclick="add_time(3600);">+h</button>
<button onclick="add_time(86400);">+d</button>
<button onclick="add_time(604800);">+w</button>
<button onclick="add_time(2592000);">+M</button>
<button onclick="add_time(31557600);">+Y</button><br>
<input type="text" id="vote_amount_input" value="0"></td></tr>
<tr><td></td><td></td>
<td><button id="vote_button" hidden="true" onclick="vote_step();">Vote</button> </td></tr>
</table>
</span>
<!--Topic Creation-->
<p id="topic_creation"><hr>
<input type="text" id="topic_string_input" rows="3" cols="50" oninput="update();">
<br><button onclick="run_createTopic()">Create topic</button>
</p>
<!--Topic list TODO-->
<p>
Topic count: <span id="topic_count"></span>
<table id="topic_list"></table>
</p>
<script src="js/common.js"></script>
<script src="js/common-gui.js"></script>
<script src="js/contract.js"></script>
<script src="js/anyperid.js"></script>
<script src="js/do.js"></script>
<script src="build/bitvote_creator.js"></script>
<script src="js/gui.js"></script>
<script>update();</script>
</body></html>