-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
230 lines (205 loc) · 17.8 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
<!DOCTYPE html>
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Web3Q Galileo Chain: Authenticated Faucet</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-noty/2.4.1/packaged/jquery.noty.packaged.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.0/moment.min.js"></script>
<style>
.vertical-center {
min-height: 100%;
min-height: 100vh;
display: flex;
align-items: center;
}
.progress {
position: relative;
}
.progress span {
position: absolute;
display: block;
width: 100%;
color: white;
}
pre {
padding: 6px;
margin: 0;
}
.mark {
background-color:#fff;
line-height:36px;
color:#000;
justify-content:center;
display:flex;
align-items:center;
font-size: 12px;
text-align: center;
font-weight: 700!important;
font-family: Futura!important;
}
</style>
</head>
<body>
<div class="mark" class="bg" style="background: #2F6FFF; color: #ffffff; font-size: 14px" style="user-select: auto;"><img src="data:image/bmp;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABrESURBVGhDxXkHVFtXtjZpEyeZ1Emx4967g3vDPXGwHceOHXfHvWDHDWMMxg3bYIOxDW50ML0jQHQQiCqaEAgQTYDoRUIg1Pv3johWZuaPM6+s+d/71tpL0jk693773n32/va9JoOD+KSpQzklsUi2NZQm2ZvFkqxmc+VjuFy8a/IvgG68L6WVmivOPfLQ/nwzCbd9HoGatUlSyP6SyWS+YxmF966k44NXdIyg0/E2gDeMS/8U5D9v4RV9BILSP0B9/Yfk93uGMeO0iYzZOkpUzN0oK205pSjnHVWxO3aa1HUqpxVzFGZRubLjEXTxidJGxWoeHyM5HPzFuO61IAf+iyyrbJP8gmuIxtySjeP3kvEi/II0tXheMp0/8nwcJp9OwSyPIkygVwx+wmTiHePSPwW6u9+Xh6ePlXhTZ6vo7DnoHhyP3t4PjNMmcnbnGEl56w4Zo/mWIrv+rpJeZ2XyKkNxxCNFetU9ReoUXyw5y+uUmho9f9O47rUg8+9KctnrpTYv/ZRmZ9p1y44JcdI+ReKddD4pqXPXr1TdhRPJsPUswT5atWpeQb3gQ+PSP4W8s3OMLJK2XepGsVEE0a6p0lg75emlY43Tww4M1XTtk2XX+yuDGFmaZ5nxJifcxL7nvMRRTrES91S2fF9/v3y08f9/CkP4KDswVZ5X/7PEKcJNuv1aiWbxoT58f7pGctUjP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b0MPsZdbRAQ0p8rZIk429wiGROZ+MDgxm+G8aM0/8EKV86Us7pWSKu7DZTtgimg4Tf78cNf1j7xP96GdXzbKwg0toGrIDVEOSOIQ355yTTjANaZwBDC6CXfg9151kS/+5o9c8C+16DOvtye0+EBbPa81QkNeCGvwMtKuXnusqSaUxm4v/ozczrQIi+ra4VLlPEN16Xx3BcFIyWQ8r6rumGp3jDDnvbRCe5HUmruf9tgfrFtjjQHW+gJ20TtFXzSHGeTciTTywithg6+QoMEH1fG31MyXj+hJPvkR+eH9hsk/yieFvUk6i56RTKl3Q6/W3juf8tGH75Xdj2s9KfRVV4lJbKE6sfiUtaVhl6mOG7EHbnGsPr+LMux+UZcFrIQtShPNR4+JLwIXK3jeR3Ioe1shVQSsy00v5v+V21m2tZSdvTcgPPuZSmRB+oLWufw6Fz/mo8378dvaSAyUpbtiqi2QHKyMokWU7jTTm7Y6mgXvDbi8O8sLPJyU42tX67PbXPVhQgcEsXcmw60BZJh5T9ELK2I+hvNtd21GzjtnMuUpqrnG6xMu/spIfamzLTgke9boP+O0FIvj3E6ZgiK+VulZe37JZz+5ZL+XxDuiUbnIRQV93T2w3ZD4IKX9zlJZ3z0ccfK0OmpQDlz3q1zWnFgrZyr3pu8fms6pxTT2sZLse5bOoCZubf0+H/BgjRtwyhNGzEIePwb9BoKs0U/UkH+Sz78KaYCzzWs8eKfEeaLNe5g1saMpRQlV1/tybPd29Vtu1CdrHzGN6ftXX/VyBaYAI07FWq/gcOItYuOi/heGP5y5d1NCd2Jt1H96gsXbW3Oi91XlW+7accjv3/13D578PE5D8ATeN7nunYkJ8AAAAASUVORK5CYII=" class="img" style="width: 20px; height: 20px; margin-right: 10px; user-select: auto;"><span style="user-select: auto;"> The webpage is generated by EVM on EthStorage blockchain </span></div>
<div class="vertical-center">
<div class="container">
<div class="row" style="margin-bottom: 16px;">
<div class="col-lg-12">
<h1 style="text-align: center;"><i class="fa fa-bath" aria-hidden="true"></i> Web3Q Galileo Chain Authenticated Faucet</h1>
</div>
</div>
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<div class="input-group">
<input id="url" name="url" type="text" class="form-control" placeholder="Your Web3Q address...">
<span class="input-group-btn">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Give me W3Q <i class="fa fa-caret-down" aria-hidden="true"></i></button>
<ul class="dropdown-menu dropdown-menu-right">
<li><a style="text-align: center;" onclick="tier= 0 ; submit( 0 )">10 W3Qs / 1 day</a></li>
<li><a style="text-align: center;" onclick="tier= 1 ; submit( 1 )">25 W3Qs / 3 days</a></li>
<li><a style="text-align: center;" onclick="tier= 2 ; submit( 2 )">62.5 W3Qs / 9 days</a></li>
</ul>
</span>
</div>
</div>
</div>
<div class="row" style="margin-top: 32px;">
<div class="col-lg-6 col-lg-offset-3">
<div class="panel panel-small panel-default">
<div class="panel-body" style="padding: 0; overflow: auto; max-height: 300px;">
<table id="requests" class="table table-condensed" style="margin: 0;"></table>
</div>
<div class="panel-footer">
<table style="width: 100%"><tbody><tr>
<td style="text-align: center;"><i class="fa fa-database" aria-hidden="true"></i> <span id="block"></span> blocks</td>
<td style="text-align: center;"><i class="fa fa-heartbeat" aria-hidden="true"></i> <span id="funds"></span> W3Qs</td>
<td style="text-align: center;"><i class="fa fa-university" aria-hidden="true"></i> <span id="funded"></span> funded</td>
</tr></tbody></table>
</div>
</div>
</div>
</div>
<div class="row" style="margin-top: 32px;">
<div class="col-lg-12">
<h3>How does this work?</h3>
<p>This W3Q faucet is running on the Web3Q Galileo Chain network. To prevent malicious actors from exhausting all available funds or accumulating enough W3Q to mount long running spam attacks, requests are tied to Ethereum mainnet accounts. Anyone having at least 0.1 ETH in Ethereum mainnet may request funds within the permitted limits.</p>
<p>You can track the current pending requests below the input field to see how much you have to wait until your turn comes.</p>
</div>
</div>
</div>
</div>
<script>
var attempt = 0;
var server;
var tier = 0;
var requests = [];
var dropper = function(hash) {
return function() {
for (var i=0; i<requests.length; i++) {
if (requests[i].tx.hash == hash) {
requests.splice(i, 1);
break;
}
}
}
};
var submit = function() {
server.send(JSON.stringify({url: $("#url")[0].value, tier: tier}));
};
var reconnect = function() {
server = new WebSocket("wss://galileo.web3q.io:81/api");
server.onmessage = function(event) {
var msg = JSON.parse(event.data);
if (msg === null) {
return;
}
if (msg.funds !== undefined) {
$("#funds").text(msg.funds);
}
if (msg.funded !== undefined) {
$("#funded").text(msg.funded);
}
if (msg.number !== undefined) {
$("#block").text(parseInt(msg.number, 16));
}
if (msg.error !== undefined) {
noty({layout: 'topCenter', text: msg.error, type: 'error', timeout: 5000, progressBar: true});
}
if (msg.success !== undefined) {
noty({layout: 'topCenter', text: msg.success, type: 'success', timeout: 5000, progressBar: true});
}
if (msg.requests !== undefined && msg.requests !== null) {
for (var i=0; i<requests.length; i++) {
if (msg.requests.length > 0 && msg.requests[0].tx.hash == requests[i].tx.hash) {
break;
}
if (requests[i].time != "") {
requests[i].time = "";
setTimeout(dropper(requests[i].tx.hash), 3000);
}
}
var common = -1;
if (requests.length > 0) {
for (var i=0; i<msg.requests.length; i++) {
if (requests[requests.length-1].tx.hash == msg.requests[i].tx.hash) {
common = i;
break;
}
}
}
for (var i=common+1; i<msg.requests.length; i++) {
requests.push(msg.requests[i]);
}
var content = "";
for (var i=requests.length-1; i >= 0; i--) {
var done = requests[i].time == "";
var elapsed = moment().unix()-moment(requests[i].time).unix();
content += "<tr id='" + requests[i].tx.hash + "'>";
content += " <td><div style=\"background: url('" + requests[i].avatar + "'); background-size: cover; width:32px; height: 32px; border-radius: 4px;\"></div></td>";
content += " <td><pre>" + requests[i].account + "</pre></td>";
content += " <td style=\"width: 100%; text-align: center; vertical-align: middle;\">";
if (done) {
content += " funded";
} else {
content += " <span id='time-" + i + "' class='timer'>" + moment.duration(-elapsed, 'seconds').humanize(true) + "</span>";
}
content += " <div class='progress' style='height: 4px; margin: 0;'>";
if (done) {
content += " <div class='progress-bar progress-bar-success' role='progressbar' aria-valuenow='30' style='width:100%;'></div>";
} else if (elapsed > 30) {
content += " <div class='progress-bar progress-bar-danger progress-bar-striped active' role='progressbar' aria-valuenow='30' style='width:100%;'></div>";
} else {
content += " <div class='progress-bar progress-bar-striped active' role='progressbar' aria-valuenow='" + elapsed + "' style='width:" + (elapsed * 100 / 30) + "%;'></div>";
}
content += " </div>";
content += " </td>";
content += "</tr>";
}
$("#requests").html("<tbody>" + content + "</tbody>");
}
}
server.onclose = function() { setTimeout(reconnect, 3000); };
}
setInterval(function() {
$('.progress-bar').each(function() {
var progress = Number($(this).attr('aria-valuenow')) + 1;
if (progress < 30) {
$(this).attr('aria-valuenow', progress);
$(this).css('width', (progress * 100 / 30) + '%');
} else if (progress == 30) {
$(this).css('width', '100%');
$(this).addClass("progress-bar-danger");
}
})
$('.timer').each(function() {
var index = Number($(this).attr('id').substring(5));
$(this).html(moment.duration(moment(requests[index].time).unix()-moment().unix(), 'seconds').humanize(true));
})
}, 1000);
reconnect();
</script>
</body></html>