-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
executable file
·165 lines (136 loc) · 6.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Voting Dapp</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link rel=icon type=image/png sizes=32x32 href="https://bloxberg.org/favicon-32x32.png">
<link rel=icon type=image/png sizes=96x96 href="https://bloxberg.org/favicon-96x96.png">
<link rel=icon type=image/png sizes=16x16 href="https://bloxberg.org/favicon-16x16.png">
<link href="assets/css/app.css" rel='stylesheet' type='text/css'>
<script src="assets/js/app.js"></script>
</head>
<body>
<header class="header">
<div class="container">
<a href="https://bloxberg.org" class="header-logo"></a>
</div>
</header>
<div class="container-fluid">
<div class="row" id="votingcontractcontainer">
<div class="col-md-3"></div>
<div class="col-md-6">
<h1>Voting Dapp</h1>
<h3 style="margin-top: 0px; margin-bottom: 30px;">Application for voting for new proposals on the bloxberg blockchain.</h3>
<table class="table table-fluid" width="100%">
<tr>
<th>Voting Contract Address</th>
<td><span class="black"><span id="cf_address"></span></span>
</td>
</tr>
<tr>
<th>Chairperson Address</th>
<td><span class="black"><span id="chairperson"></span> </span>
</td>
</tr>
<tr>
<th>Your Address</th>
<td><span class="black"><span id="cb_address"></span></span>
</td>
</tr>
<tr>
<th>Your Balance</th>
<td><span class="black"><span id="cb_balance"></span></span>
</td>
</tr>
<tr>
<th>Can you vote</th>
<td><span class="black"><span id="canUserVote"></span></span>
</td>
</tr>
<tr>
<th>Your voting weight</th>
<td><span class="black"><span id="votingWeight"></span></span>
</td>
</tr>
<tr>
<th>Open Proposals</th>
<td><span class="black"><span id="numOpenProposals"></span> </span>
</td>
</tr>
<tr>
<th>Number of Voters</th>
<td><span class="black"><span id="numVoters"></span> </span>
</td>
</tr>
</table>
</div>
<div class="col-md-3"></div>
</div>
<div class="row" id="votingproposalcontainer">
<div class="col-md-3"></div>
<div class="col-md-6">
<h2 style="padding-top: 20px;">Vote for Open Proposals</h2>
<p>Here you will see open proposals for which you haven't voted yet</p>
<!--
<h4 style="padding-top: 20px; color:#000">Proposal #1: Do you approve the membership of XYZ for the consortium?</h4><br>
<form>
<input type="radio" name="proposal1" value="1" checked> Yes<br>
<input type="radio" name="proposal1" value="2"> No<br>
</form>
<button class="btn btn-primary btn-lg" onclick="vote(1);">VOTE</button>
<br><br>
-->
<div id="openPropsalsContainer">
</div>
</div>
<div class="col-md-3"></div>
</div>
<div class="row" id="closedvotingproposalcontainer">
<div class="col-md-3"></div>
<div class="col-md-6">
<div class = "text-xs-center">
<h2 style="padding-top: 60px;">Closed and Voted on Proposals</h2>
<p>Here you will see closed and voted on proposals after the voting round has finished. </p>
</div>
<!--
<h4 style="padding-top: 20px; color:#000">Proposal #1: Do you approve the membership of XYZ for the consortium?</h4><br>
<form>
<input type="radio" name="proposal1" value="1" checked> Yes<br>
<input type="radio" name="proposal1" value="2"> No<br>
</form>
<button class="btn btn-primary btn-lg" onclick="vote(1);">VOTE</button>
<br><br>
-->
<div id="closedPropsalsContainer">
</div>
</div>
<div class="col-md-3"></div>
</div>
<div id="status"></div>
</div>
<div class="modal fade" id="manuscriptSuccessModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel">Voting Successful</h4>
<button type="button" onclick="javascript:window.location.reload()" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div>
<div class="modal-body">
<p id="modeltext"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary btn-lg" data-dismiss="modal" onclick="javascript:window.location.reload()">Close</button>
</div>
</div>
</div>
</div>
<div id="footercontainer">
</div>
<!-- Latest compiled and minified JavaScript -->
<script src="https://code.jquery.com/jquery-3.0.0-beta1.js"></script>
<script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
</body>
</html>