-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
378 lines (343 loc) · 14.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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>BitcoinZ Community Chest</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.6.1/css/bulma.min.css">
</head>
<body>
<nav class="navbar is-transparent">
<div class="navbar-brand">
<a class="navbar-item" href="https://btcz.rocks">
<img src="logo.png" alt="BitcoinZ Community Chest" >
</a>
<div class="navbar-burger burger" data-target="navbarExampleTransparentExample">
<span></span>
<span></span>
<span></span>
</div>
</div>
<!--
<div id="navbarExampleTransparentExample" class="navbar-menu">
<div class="navbar-start">
</div>
-->
<div class="navbar-end">
<div class="navbar-item">
<div class="field is-grouped">
<p class="control">
<a class="bd-tw-button button" data-social-network="Facebook" data-social-action="share" data-social-target="https://btcz.fund" target="_blank" href="https://www.facebook.com/BTCZCommunity/">
<span class="icon">
<i class="fa fa-facebook"></i>
</span>
<span>
FACEBOOK
</span>
</a>
</p>
<p class="control">
<a class="bd-tw-button button" data-social-network="Twitter" data-social-action="tweet" data-social-target="https://btcz.fund" target="_blank" href="https://twitter.com/intent/tweet?text=$BTCZ is the future and it needs your help!&hashtags=btcz,BitcoinZ&url=https://btcz.fund&via=BitcoinZTeam">
<span class="icon">
<i class="fa fa-twitter"></i>
</span>
<span>
TWITTER
</span>
</a>
</p>
<p class="control">
<a class="bd-tw-button button" data-social-network="Slack" data-social-action="connect" data-social-target="https://btcz.fund" target="_blank" href="https://slack.btcz.rocks">
<span class="icon">
<i class="fa fa-slack"></i>
</span>
<span>
SLACK
</span>
</a>
</p>
</div>
</div>
</div>
</nav>
<div class="container is-fluid">
<figure class="image">
<img src="topb.png" alt="In decentralization we trust!">
</figure>
<br>
<div class="tile is-ancestor">
<div class="tile is-4 is-vertical is-parent">
<div class="tile is-child box">
<p class="title">
<span class="icon">
<i class="fa fa-btc"></i>
</span>
Why do we need donations?
</p>
<div class="content">
We need donations to help accelerate our many projects. We as a community have got many ideas we would like to execute and are looking forward to more being suggested and developed. Some of our projects including wallet apps for iOS and Android that incorporate the respective payment technologies to make point of sale payments possible, We would need to establish a fund to allow initial adoption but from there we aim to make it a self sustained economy.
</div>
</div>
<div class="tile is-child box">
<p class="title">
<span class="icon">
<i class="fa fa-btc"></i>
</span>
How they will be used?
</p>
<div class="content">
<ul>
<li>Domain name renewals</li>
<li>Infrastructure services</li>
<li>Wallets (Electrum, React, etc.)</li>
<li>NFC (near-frequency-communication) wallet for Mobile Devices</li>
<li>Future projects</li>
</ul>
</div>
</div>
<div class="tile is-child box">
<p class="title">
<span class="icon">
<i class="fa fa-btc"></i>
</span>
</p>
<p></p>
</div>
</div>
<div class="tile is-parent">
<div class="tile is-child box">
<p class="title has-text-centered">DONATION PROGRESS</p>
<div class="has-text-centered">
<span class="icon is-large">
<i id="icon" class="fa fa-lg fa-refresh" title="Refreshed every minute."></i>
</span>
<span class="subtitle"><span id="current">0</span> / <span id="goal">0</span></span>
</div>
<p><progress id="progress" class="progress is-large is-warning" value="0" max="0">0%</progress></p>
<br><br>
<div class="conatiner">
<div class="columns is-centered">
<div class="column has-text-centered">
<p>Please donate to one of these addresses. Thank you!</p>
<br>
<ul>
<li>
<div class="tags has-addons" style="border-style: solid; border-width: 2px; border-color:#FFDD57; ">
<span class="tag is-large is-size-6" style="width: 100%; ">BitcoinZ</span>
<span class="tag is-large is-warning is-size-6" style="width: 100%;">t1fHHnAXxoPWGY77sG5Zw2sFfGUTpW6BcSZ</span>
</div>
</li>
<li>
<div class="tags has-addons has-addons-centered" style="border-style: solid; border-width: 2px; border-color:#23D160; ">
<span class="tag is-large is-size-6" style="width: 100%;">Ethereum</span>
<span class="tag is-large is-success is-size-6" style="width: 100%;">0x4E3154bc8691BC480D0F317E866C064cC2c9455D</span>
</div>
</li>
<li>
<div class="tags has-addons has-addons-centered"style="border-style: solid; border-width: 2px; border-color:#00D1B2;">
<span class="tag is-large is-size-6" style="width: 100%;">Bitcoin</span>
<span class="tag is-large is-primary is-size-6" style="width: 100%;">1BzBfikDBGyWXGnPPk58nVVBppzfcGGXMx</span>
</div>
</li>
<li>
<div class="tags has-addons has-addons-centered"style="border-style: solid; border-width: 2px; border-color:#FF3860;">
<span class="tag is-large is-size-6" style="width: 100%;">Zcash</span>
<span class="tag is-large is-danger is-size-6" style="width: 100%;">t1ef9cxzpToGJcaSMXbTGRUDyrp76GfDLJG</span>
</div>
</li>
<li>
<div class="tags has-addons has-addons-centered" style="border-style: solid; border-width: 2px; border-color:#209CEE;">
<span class="tag is-large is-size-6" style="width: 100%;">Litecoin</span>
<span class="tag is-large is-info is-size-6" style="width: 100%;">LR8bPo7NjPNRVy6nPLVgr9zHee2C7RepKA</span>
</div>
</li>
<li>
<div class="tags has-addons has-addons-centered"style="border-style: solid; border-width: 2px; border-color:#23D160;">
<span class="tag is-large is-size-6" style="width: 100%;">USDT (Ethereum Network)</span>
<span class="tag is-large is-success is-size-6" style="width: 100%;">0xD36591b20f738f6929272a4391B8C133CB2e5C96</span>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="box">
<nav class="level">
<div class="level-item has-text-centered">
<div>
<p class="heading">BITCOINZ PRICE</p>
<p id="btczUsd">Loading...</p>
<p>BTCZ: <span id="btczBalance"></span></p>
</div>
</div>
<div class="level-item has-text-centered">
<div>
<p class="heading">ETHEREUM PRICE</p>
<p id="ethUsd">Loading...</p>
<p>ETH: <span id="ethBalance"></span></p>
</div>
</div>
<div class="level-item has-text-centered">
<div>
<p class="heading">BITCOIN PRICE</p>
<p id="btcUsd">Loading...</p>
<p>BTC: <span id="btcBalance"></span></p>
</div>
</div>
<div class="level-item has-text-centered">
<div>
<p class="heading">ZCASH PRICE</p>
<p id="zecUsd">Loading...</p>
<p>ZEC: <span id="zecBalance"></span></p>
</div>
</div>
<div class="level-item has-text-centered">
<div>
<p class="heading">LITECOIN PRICE</p>
<p id="ltcUsd">Loading...</p>
<p>LTC: <span id="ltcBalance"></span></p>
</div>
</div>
<div class="level-item has-text-centered">
<div>
<p class="heading">USDT PRICE</p>
<p id="USDTEUsd">Loading...</p>
<p>USDT: <span id="USDTEBalance"></span></p>
</div>
</div>
</nav>
</div>
</div>
<footer class="footer">
<div class="container">
<div class="has-text-centered">
<p>For BitcoinZ Community by <strong>CryptoMisiak</strong>.</p>
</div>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript">
var goal = 15000; // donation goal in USD
var current = 0; // current chest value
var formatter = new Intl.NumberFormat('en-US', {
style: 'currency',
currency: 'USD',
minimumFractionDigits: 2,
});
var formatterBtcz = new Intl.NumberFormat('en-US', {
style: 'currency',
currency: 'USD',
minimumFractionDigits: 8,
});
function updateData() {
$('#goal').html(formatter.format(goal));
$('#progress').attr('max', goal);
$('#icon').addClass('fa-spin');
$('#icon').attr('title', "Refreshing...");
$.getJSON("api.php", function(data) {
// Update BTCZ USD price
if (data.btczBalance !== undefined) {
$('#btczBalance').html(data.btczBalance + " BTCZ");
} else {
$('#btczBalance').html('Error');
}
if (data.ethBalance !== undefined) {
$('#ethBalance').html(data.ethBalance + " ETH");
} else {
$('#ethBalance').html('Error');
}
if (data.btcBalance !== undefined) {
$('#btcBalance').html(data.btcBalance + " BTC");
} else {
$('#btcBalance').html('Error');
}
if (data.zecBalance !== undefined) {
$('#zecBalance').html(data.zecBalance + " ZEC");
} else {
$('#zecBalance').html('Error');
}
if (data.ltcBalance !== undefined) {
$('#ltcBalance').html(data.ltcBalance + " LTC");
} else {
$('#ltcBalance').html('Error');
}
if (data.USDTEBalance !== undefined) {
$('#USDTEBalance').html(data.USDTEBalance + " USDT");
} else {
$('#USDTEBalance').html('Error');
}
if(data.btczUsd && !data.btczUsd.error) {
$('#btczUsd').html(formatterBtcz.format(data.btczUsd.value));
} else {
$('#btczUsd').html('Error');
}
// Update ETH USD price
if(data.ethUsd && !data.ethUsd.error) {
$('#ethUsd').html(formatter.format(data.ethUsd.value));
} else {
$('#ethUsd').html('Error');
}
// Update BTC USD price
if(data.btcUsd && !data.btcUsd.error) {
$('#btcUsd').html(formatter.format(data.btcUsd.value));
} else {
$('#btcUsd').html('Error');
}
// Update ZEC USD price
if(data.zecUsd && !data.zecUsd.error) {
$('#zecUsd').html(formatter.format(data.zecUsd.value));
} else {
$('#zecUsd').html('Error');
}
// Update LTC USD price
if(data.ltcUsd && !data.ltcUsd.error) {
$('#ltcUsd').html(formatter.format(data.ltcUsd.value));
} else {
$('#ltcUsd').html('Error');
}
// Update USDT USD price
if(data.USDTEUsd && !data.USDTEUsd.error) {
$('#USDTEUsd').html(formatter.format(data.USDTEUsd.value));
} else {
$('#USDTEUsd').html('Error');
}
var current = 0;
if(data.btczUsd && !data.btczUsd.error) {
current += data.btczBalance * data.btczUsd.value;
}
if(data.ethUsd && !data.ethUsd.error) {
current += data.ethBalance * data.ethUsd.value;
}
if(data.btcUsd && !data.btcUsd.error) {
current += data.btcBalance * data.btcUsd.value;
}
if(data.zecUsd && !data.zecUsd.error) {
current += data.zecBalance * data.zecUsd.value;
}
if(data.ltcUsd && !data.ltcUsd.error) {
current += data.ltcBalance * data.ltcUsd.value;
}
if(data.USDTEUsd && !data.USDTEUsd.error) {
current += data.USDTEBalance * data.USDTEUsd.value;
}
$('#current').html(formatter.format(current));
$('#progress').attr('value', current);
$('#progress').html(current + '%');
})
.fail(function(jqxhr, textStatus, error) {
alert('Error loading price data!');
})
.done(function() {
$('#icon').removeClass('fa-spin');
$('#icon').attr('title', "Refreshed every minute.");
});
}
updateData();
setInterval(updateData, 1000 * 60); // update every minute
</script>
</body>
</html>