-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·326 lines (305 loc) · 15.7 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<!DOCTYPE html>
<html lang="zxx" class="js">
<head>
<meta charset="utf-8">
<meta name="author" content="Softnio">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Generate EOS key pairs securely - the generation happens in your browser client. For extra security, we recommend using an incognito window to disable all browser plugins.">
<!-- Site Title -->
<title>EOS Block Producer Voting, Registration Verification & Secure Keypair Generation</title>
<!-- Vendor Bundle CSS -->
<link rel="stylesheet" href="css/vendor.bundle.css?ver=122">
<!-- Custom styles for this template -->
<link rel="stylesheet" href="css/style.css?ver=122">
<link rel="stylesheet" href="css/theme.css?ver=122">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
</head>
<body class="theme-lavendar io-lavendar" data-spy="scroll" data-target="#mainnav" data-offset="80">
<!-- Start Header -->
<header class="site-header is-sticky">
<!-- Navbar -->
<div class="navbar navbar-expand-lg is-transparent" id="mainnav">
<nav class="container">
<a class="navbar-brand animated" data-animate="fadeInDown" data-delay="1.6" href="/">
<img class="logo logo-dark" alt="logo" src="images/eos-logo-color.png" srcset="images/eos-logo-color.png 2x">
<img class="logo logo-light" alt="logo" src="images/eos-logo-white.png" srcset="images/eos-logo-white.png 2x">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarToggle">
<span class="navbar-toggler-icon">
<span class="ti ti-align-justify"></span>
</span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarToggle">
<ul class="navbar-nav animated remove-animation" data-animate="fadeInDown" data-delay="1.6">
<li class="nav-item my-auto"><a id="standings" class="nav-link menu-link" href="#vote-section" onclick="getProducerVotes()">Block Producer Vote Standings</a></li>
<li class="nav-item my-auto"><a class="nav-link menu-link" href="#verify-registration-section">Verify Registration</a></li>
<li class="nav-item my-auto"><a class="nav-link menu-link" href="#keypair-generation-section">Keypair Generation</a></li>
<li class="nav-item m-3"><a id="vote" class="nav-link btn btn-blue mt-2 mb-2 pt-2 pb-2 font-weight-bold" href="#">Vote Now!</a></li>
</ul>
</div>
</nav>
</div>
</header>
<!-- End Header -->
<!-- Start Section -->
<div id="vote-section" class="section features-section section-features-pad no-pb section-bg-lavendar">
<!-- Place Particle Js -->
<div id="particles-js" class="particles-container particles-js"></div>
<div class="shade-wraper">
<div class="container">
<div class="shade-left"></div>
<div class="shade-right"></div>
</div>
</div>
<div class="container">
<div class="section-head-s3 text-center mb-4 mt-4">
<h1 id="votes-heading"class="section-title animated invisible" data-animate="fadeInDown" data-delay=".2">EOS <span class="heading-alt">Block Producer</span> Voting</h1>
<h1 id="standings-heading" class="section-title animated" data-animate="fadeInDown" data-delay=".2">EOS <span class="heading-alt">Block Producer</span> Vote Standings</h1>
</div>
<section id="alerts">
<div class="alert alert-warning toggle-hidden" role="alert"></div>
</section>
<div id="vote-system" class="row pt-1 invisible">
<div class="col-lg-6 col-md-6 col-sm-12 order-lg-0 order-md-0 order-sm-1 order-1">
<div class="gaps"></div>
<div class="features-item animated pl-0 pl-md-5 pl-lg-5 pl-xl-5 pb-3" data-animate="fadeInLeft" data-delay=".4">
<h5 class="pl-3">EOS Server</h5>
<p id="producers-select">
<select onchange="getProducers()" class="form-control" id="network">
<option value="https://user-api.eoseoul.io" >Mainnet Server #1</option>
<option value="https://eos-api.privex.io" >Mainnet Server #2</option>
</select>
</p>
<p id="custom-server-input" class="invisible">
<input id="custom-network" class="input-round" onblur="getProducers()" placeholder="http://mainnet.eos.io:48888">
</p>
<div class="custom-server text-right">
<small id="eos-small-https" class="eos-small toggle-hidden">** Enter a custom https://name-or-ip:port EOS API endpoint</small>
<small id="eos-small-http" class="eos-small toggle-hidden">** Enter a custom http://name-or-ip:port EOS API endpoint</small>
<label><input id="custom-server" class="vote-checkbox pr-1" type="checkbox" value="">Use Custom Network</label>
</div>
</div>
<div class="features-item right animated pl-0 pl-md-5 pl-lg-5 pl-xl-5 pb-3" data-animate="fadeInLeft" data-delay=".5">
<h5 class="pl-3">Account Name</h5>
<p><input id="eos-account" class="input-round" placeholder="EOS Account"></p>
</div>
<div class="features-item right animated pl-0 pl-md-5 pl-lg-5 pl-xl-5 pb-4" data-animate="fadeInLeft" data-delay=".6">
<h5 class="pl-3">Signing Method</h5>
<p>
<div class="row pl-3 pb-3">
<label class="ml-3" id="sign-scatter">
<input type="radio" class="vote-radio" name="signing-method" value="scatter" onchange="toggleKeyInput()">
<span>Scatter</span>
</label>
<label class="ml-3" id="sign-private">
<input type="radio" class="vote-radio" name="signing-method" onchange="toggleKeyInput()" value="key" checked >
Private Key
</label>
</div>
<input id="private-key" class="input-round" placeholder="Private Key">
</p>
</div>
<div class="features-item animated pl-0 pl-md-5 pl-lg-5 pl-xl-5 mt-1 mb-2 pb-5 text-center" data-animate="fadeInUp" data-delay="1.2">
<p>
<label><strong>Selected Producers (<span id="selected-count">0</span>): </strong></label>
<span id="selected-bps"></span>
</p>
<button id="vote" class="btn btn-white mb-4" onclick="vote()">Cast Vote</button>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 order-lg-2 order-md-1 order-sm-0 order-0">
<div class="gaps"></div>
<div class="features-item animated pr-0 pr-md-5 pr-lg-5 pr-xl-5 pb-3" data-animate="fadeInRight" data-delay=".7">
<h5 class="d-flex align-items-center pl-3">Block Producers<small class="ml-auto pr-3">List is sorted randomly.</small></h5>
<p><input type="search" id="filter-prods" class="input-round" placeholder="Filter Producers" onkeyup="filterProds()"></p>
</div>
<div class="features-item block-producers animated text-center pr-5" data-animate="fadeInRight" data-delay=".8">
<table id="block-producers" class="table">
<thead><tr>
<th>Vote</th>
<th>Producer Name</th>
</tr></thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
<div id="standings-system" class="row pt-1 text-center vote-total-body animated" data-animate="fadeInUp" data-delay=".4">
<div class="gaps size-2x"></div>
<table id="total-votes-block-producers" class="table text-white table-striped text-center">
<thead class="thead-dark"><tr>
<th>Rank</th>
<th>Producer Name</th>
<th>Votes %</th>
<th>Votes Cast</th>
</tr></thead>
<tbody></tbody>
</table>
<div class="gaps size-2x"></div>
</div>
<input type="hidden" id="voteWeight" name="voteWeight" value="">
</div><!-- .container -->
</div>
<!-- End Section -->
<!-- Start Section -->
<div id="verify-registration-section" class="section subscribe-scetion section-pad section-bg-light" id="subscribe">
<div class="container mt-5 mt-sm-0 mt-md-0 mt-lg-0 mt-xl-0">
<div class="row justify-content-center text-center">
<div class="col-lg-7 mt-5 mt-sm-0 mt-md-0 mt-lg-0 mt-xl-0 res-l-bttm">
<div class="subscribe-rounded">
<h5 class="animated" data-animate="fadeInUp" data-delay=".1">Need to verify your EOS registration?</h5>
<p class="animated" data-animate="fadeInUp" data-delay=".2">Enter your public address below to continue.</p>
<form id="subscribe-form" action="form/subscribe.php" method="post" class="subscription-form animated" data-animate="fadeInUp" data-delay=".3">
<input type="text" name="youremail" class="input-round" placeholder="Enter your Ethereum address" id="address">
<input type="text" class="d-none" name="form-anti-honeypot" value="">
<button type="submit" class="btn btn-plane" onClick="verifyAddress(document.getElementById('address').value);">Verify Registration</button>
<div class="verification-results"></div>
</form>
</div>
</div><!-- .col -->
</div><!-- .row -->
</div><!-- .container -->
</div>
<!-- End Section -->
<!-- Start Section -->
<div id="keypair-generation-section" class="section about-section section-pad no-pt pb-5 section-bg-light" id="about">
<div class="container">
<div class="row">
<div class="col-lg-6 col-xl-7">
<div class="about-section-innr text-center section-bg-lavendar">
<div class="about-shade"></div>
<div id="about-text" class="about-text-position">
<div class="keypair-txt pb-4">
<h1 class="animated" data-animate="fadeInUp" data-delay=".2"><span class="text-white">Secure</span> EOS Keypair <span class="text-white">Generation</span></h1>
</div>
<h3 class="animated" data-animate="fadeInUp" data-delay=".3">Create <span>EOS key pairs</span> securely.</h3>
<div class="visible-inline-block animated mb-5 mt-4" data-animate="fadeInUp" data-delay="0.4">
<a class="nav-link btn btn-white btn-sm menu-link btn-generate-keys" href="#">Generate Keys</a>
</div>
<p class="animated" data-animate="fadeInUp" data-delay=".5">The generation happens in your browser client. </p>
<p class="animated" data-animate="fadeInUp" data-delay=".6">We recommend using an incognito window to disable all browser plugins.</p>
</div>
</div>
</div>
<div class="col-lg-5 keys toggle-hidden">
<div class="about-image animated" data-animate="fadeInUp" data-delay=".7">
<img class="mx-auto d-block mt-3" alt="logo" src="images/eos-logo-color.png" srcset="images/eos-logo-color.png 2x">
<div class="generated-keys"></div>
</div>
</div>
</div>
</div>
</div>
<!-- End Section -->
<!-- Start Section -->
<div class="section footer-scetion footer-lavendar">
<hr class="hr-line"><!-- .hr-line -->
<div class="container">
<div class="row">
<div class="col-md-8">
<span class="copyright-text">
Copyright © 2018 | Block Producer Voting, Registration Verification & Secure Keypair Generation for EOS
</span>
</div><!-- .col -->
<div class="col-md-4 text-right mobile-left">
<ul class="footer-links">
<li><a href="https://github.com/popstand/eos-keygen" target="_blank">GitHub</a></li>
</ul>
</div><!-- .col -->
</div><!-- .row -->
<div class="row">
<div class="col">
<span class="copyright-text text-white">
Provided for the good of the EOS community - donations will go to portal development - EOS6pAkdEwboGx3HTjzBUJXoCV5SViFUbj4tncj4egfW1wpXZJjN2
</span>
</div>
</div>
</div><!-- .container -->
<div class="gaps size-2x"></div>
</div>
<!-- End Section -->
<!-- Instructions Modal -->
<div class="modal fade" id="instructions" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header text-center">
<h4 class="modal-title text-smoke mx-auto mt-3">
Welcome to EOS.Producer.Vote
<br/>
<small class="text-purple">There are two ways to vote using this site. Here are some instructions to help.</small>
</h4>
</div>
<div class="modal-body instructions-bg">
<div class="row">
<div class="col-12 col-xl-8 mt-sm-1 ml-2 pt-2 pb-3">
<p class="ml-1 ml-sm-5 mt-2 text-smoke">
1. The recommended way is to use <a class="menu-link http" target="_blank" href="https://scatter-eos.com/">Scatter</a>
<br/>
<small class="small-instructions ml-1 ml-md-3">• <a class="menu-link http" target="_blank" href="https://scatter-eos.com/">Download Scatter</a> plugin for Chrome or Firefox</small>
</p>
<p class="ml-1 ml-sm-5 mt-2 text-smoke">
2. To use your Private Key we suggest HTTPS
<br/>
<small class="small-instructions">Your private key will never leave your browser</small>
<br/>
<small class="small-instructions ml-1 ml-md-3">• A transaction hash is signed locally with your key.</small>
<br/>
<small class="small-instructions ml-1 ml-md-3">• Then only the signed hash is sent to the network.</small>
<br/>
<small class="small-instructions ml-1 ml-md-3">• Please <a class="menu-link http" href="https://eos.producer.vote">click here</a> to load the voting system over HTTPS</small>
</p>
</div>
<div class="col-xl-3 d-none d-xl-block pt-2 mb-2">
<img alt="logo" src="images/eos-black.png">
</div>
</div>
</div>
<div class="modal-footer">
<h5 class="mt-1 text-danger text-center">By voting you are accepting the <u><a class="menu-link http text-danger " href="https://github.com/EOS-Mainnet/governance/blob/master/eosio.system/eosio.system-clause-constitution-rc.md">EOS Constitution</a></u><br/><small class="text-smoke">Make sure you have read it!</small></h5>
<button type="button" class="btn btn-default mb-2" data-dismiss="modal">I accept!</button>
</div>
</div>
</div>
</div>
<!-- End Section -->
<!-- Preloader !remove please if you do not want -->
<div id="preloader">
<div id="loader"></div>
<div class="loader-section loader-top"></div>
<div class="loader-section loader-bottom"></div>
</div>
<!-- Preloader End -->
<!-- JavaScript (include all script here) -->
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js/dist/web3.min.js"></script>
<script src="js/vendor/jquery.bundle.js?ver=122"></script>
<script src="js/template.js?ver=122"></script>
<script src="js/vendor/async.min.js"></script>
<script src="js/vendor/moment.min.js"></script>
<script src="js/vendor/react.min.js"></script>
<script src="js/vendor/react-dom.min.js"></script>
<script src="js/vendor/babel.min.js"></script>
<script src="js/vendor/ecc.js"></script>
<script src="js/vendor/particles.min.js"></script>
<script src="js/vendor/lib.js"></script>
<script src="js/key_generator.js"></script>
<script src="js/registration_verifier.js"></script>
<script src="js/eosjs-browser.js"></script>
<script src="js/voting.js"></script>
<script src="js/scripts.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-120243218-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-120243218-3');
</script>
</body>
</html>