-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
91 lines (76 loc) · 3.07 KB
/
index.html
File metadata and controls
91 lines (76 loc) · 3.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
<!DOCTYPE html>
<html>
<head>
<title>LibertyBlock - Voting</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="main.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-120276710-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-120276710-1');
</script>
</head>
<body class="container">
<div class="text-center">
<img id="logo-top" src="logo.png">
</div>
<h1 class="text-center">EOS Block Producer Voting</h1>
<h5 class="text-center">By LibertyBlock</h5>
<section id="alerts">
<div class="alert alert-warning" role="alert">
We will only use your private key to sign the transaction locally. Your key will never leave the local machine! Before voting, read our <a href="https://steemit.com/eos/@blockliberty/how-to-vote-for-your-favorite-eos-block-producer-using-scatter">tutorial</a> on how to vote safely with Scatter.
</div>
</section>
<div class="form-group">
<label for="eos-account"><strong>Network</strong></label>
<select onchange="getProducers()" class="form-control" id="network">
<option value="http://mainnet.libertyblock.io:8888">EOS Mainnet</option>
</select>
</div>
<div class="form-group">
<label for="eos-account"><strong>Account Name</strong></label>
<input id="eos-account" class="form-control" placeholder="EOS Account">
</div>
<div class="form-group">
<label><strong>Signing Method</strong></label>
</div>
<div class="form-group">
<input type="radio" name="signing-method" value="scatter" onchange="toggleKeyInput()">
<label>Scatter</label>
</div>
<div class="form-group">
<input type="radio" name="signing-method" onchange="toggleKeyInput()" value="key" checked>
<label>Private Key</label>
<input id="private-key" class="form-control" placeholder="Private key">
</div>
</div>
<div class="form-group">
<label><strong>Selected Producers (<span id="selected-count">0</span>): </strong></label>
<span id="selected-bps"></span>
</div>
<div class="form-group">
<button id="vote" class="btn" onclick="vote()">Vote</button>
</div>
<h2>Select Block Producers</h2>
<div class="form-group">
<input type="search" id="filter-prods" class="form-control" placeholder="Filter Producers" onkeyup="filterProds()">
</div>
<table id="block-producers" class="table">
<thead><tr>
<th>Vote</th>
<th>Producer Name</th>
<th>Current Votes</th>
<th>Order</th>
</tr></thead>
<tbody></tbody>
</table>
<script src="eosjs-browser.js"></script>
<script src="main.js"></script>
</body>
<head>
</head>
</html>