This repository has been archived by the owner on Sep 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gvt.html
536 lines (500 loc) · 30.9 KB
/
gvt.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
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Noso Exporer</title>
<style>
.price {
color: #fbe04d;
display: none;
}
</style> <link rel="icon" type="image/x-icon" href="img/favicon.ico">
<!-- Include Highcharts library -->
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/stock.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js"
integrity="sha512-d9xgZrVZpmmQlfonhQUvTR7lMPtO7NkZMkA0ABN3PHCbKA5nqylQ/yWlFAyY6hYgdF1Qh6nYiuADWwKB4C2WSw=="
crossorigin="anonymous">
</script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="js/search.js"></script>
<!---chart-->
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<!-- Add custom CSS here -->
<link href="css/sb-admin.css" rel="stylesheet">
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<!-- Page Specific CSS -->
<!--style-->
</head>
<body color="#222222" style=" background-image: url("");">
<div id="TxWarn" style="position:fixed;left:20px;top:65px;background-color:gray;color:#fff;border-radius:20px;max-width:330px;padding:8px;z-index:999999;display:none;text-align:center;opacity:.9;font-size:15px"><img
src="img/warning.png" alt="Warning!" height="32" width="32"><br>
<b>🚧 GVT page in development 🚧</b><br>
Please be aware that the Noso Governance (GVT) market is still in the
development phase, and the information provided on this page is not yet
active. Additionally, tokens are not currently available for exchange.
Stay tuned for further updates on its progress..</div>
<script type="text/javascript">function showWarn(){document.getElementById('TxWarn').style.display='block';}function hideWarn(){document.getElementById('TxWarn').style.display='none';}showWarn();setTimeout(hideWarn,250000);const currentDate=new Date();const targetDate=new Date('2024-01-22');if(currentDate>targetDate){hideWarn();}</script>
<!-- PLACE IMPORTANT ANNOUNCEMENTS ABOVE -->
<div id="wrapper">
<!-- Sidebar -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header"> <button type="button" class="navbar-toggle"
data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle
navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> </button><a class="navbar-brand" href="index.html"><img
src="img/logo_clearbg.png" alt="nosologo" title="nosologo" style="width: 20px; height: 20px;">
NOSO <span class="navbar-logo">Explorer</span> <font size="1px">Beta</font>
</a> </div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav side-nav">
<!-- <li><a href="index.html"><i class="fa fa-dashboard"></i>
NosoStats</a></li> -->
<li><a href="index.html"><i class="fa fa-tachometer"></i> Overview</a></li>
<li><a href="blocks.html"> <i class="fa fa-th-large"></i> Blocks</a></li>
<li><a href="movements.html"><i class="fa fa-exchange"></i> Coin
Movements</a></li>
<li><a href="topaddresses.html"><i class="fa fa-star"></i> Top
Addresses </a></li>
<li><a href="masternodes.html"><i class="fa fa-globe"></i>
Masternodes</a></li>
<!-- <li><a href="chainstats.html"><i class="fa fa-bar-chart"></i>
Chain Statistics </a></li> -->
<li class="active"><a href="gvt.html"><i class="fa fa-gavel"></i>
Governance</a></li>
</ul>
<!-- /.navbar-top-right -->
<div class="toprow">
<ul class="nav navbar-nav navbar-right navbar-user">
<li><a href="qr.html"> <img src="img/qr.png" style="width: 17px; height: 16px;"
alt="QR Scanner"></a> </li>
<li><a href="https://twitter.com/NosoCoin" target="_blank"> <img
src="img/twitter_bird.png" style="width: 20px; height: 16px;"
alt="Noso on Twitter"></a> </li>
<li><a href="https://discord.gg/weed5ePmfY" target="_blank"> <img
src="img/discord.png" style="width: 24px; height: 22px;" alt="Noso on Discord"></a></li>
<li><a href="https://t.me/nosocoin" target="_blank"> <img src="img/telegram.png"
style="width: 24px; height: 23px;" alt="Noso on telegram"></a></li>
<li><a href="https://github.com/Noso-Project/" target="_blank"> <img
src="img/gh.png" style="width: 28px; height: 17px;" alt="Noso on Github"></a></li>
<li><a href="https://nosocoin.com/"> <img src="img/nosoN.png" style="width: 24px; height: 23px;"
alt="Noso Website"></a></li>
<li><a href="https://docs.nosocoin.com/noso-developers-portal/rpc-connection/running-a-noso-json-rpc-node-for-development-utilizing-nosos-rest-api"
target="_blank"> <img src="img/doc.png" style="width: 14px; height: 16px;"
alt="Noso Developers"></a></li>
<li><a href="https://api.nosocoin.com/" target="_blank"> <img src="img/api.png"
style="width: 28px; height: 24px;" alt="Noso API"></a></li>
</ul>
</div>
</div>
<!-- /.navbar-collapse --> </nav>
<div id="page-wrapper">
<div class="rowsearch">
<div class="col-lg-12">
<!-- /.Top row search --> <br>
<div class="exprow">
<form id="block-form" action="getblockinfo.html?blockheight" method="get"
style="display: none;"> <input id="block-search" name="blockheight"
placeholder="Search Block Number" type="search"> <button type="submit">Search
Block</button> </form>
<form id="address-form" action="getaddressbalance.html?address" method="get"
style="display: none;"> <input id="address-search" name="address"
placeholder="Search Address" type="search"> <button type="submit">Search
Address</button> </form>
<form id="alias-form" action="getaddressbalance.html?alias" method="get"
style="display: none;"> <input id="alias-search" name="address"
placeholder="Search Alias" type="search"> <button type="submit">Search
Alias</button> </form>
<form id="order-form" action="getordersinfo.html?orderid" method="get"
style="display: none;"> <input id="order-search" name="orderid"
placeholder="Search Order ID" type="search"> <button type="submit">Search
Order</button></form>
<div class="search1-wrapper"> <input id="search" placeholder="Block, Address, OrderId, or A-Alias "
type="search"> <button type="submit1" onclick="search()"></button>
</div>
<!-- Results will be displayed on Explorer page --> </div>
<br>
</div>
</div>
</div>
<div class="row">
<div class="row">
<div class="col-lg-6 ">
<div class="panel-heading">
<h3 class="panel-title"><img src="img/gvt.png" alt="nosogvt" title="gvtogo"
style="width: 15px; height: 15px;"> Noso GVT Market Price <img
src="img/gvt.png" alt="nosogvt" title="gvtogo" style="width: 15px; height: 15px;"></h3>
</div>
<div class="panel-body">
<div class="list-group"> <span class="list-group-item">GVT Tokens
Available <span class="badge"> <span id="gvt-available">Loading...</span>
</span></span> <span class="list-group-item">GVT Buy (NOSO) <span
class="badge"> <span id="gvt-buy">Loading...</span> </span></span>
<span class="list-group-item">GVT Sell (NOSO)<span class="badge">
<span id="gvt-sell">Loading...</span> </span></span><br>
<span class="list-group-item"> GVT/NOSO value is controlled by
Noso Mainnet. Price will increase or decrease based on
available GVTs. <br>
<br>
<b> Determine GVT value based on availability. </b><br>
<br>
<form id="searchInput"> <label for="numberInput"></label> <input
id="numberInput" name="numberInput" min="1" max="40" placeholder="Enter GVT Quantity"
type="text"> </form>
<br>
<div class="prices">
<div id="price100" class="price">With 100 GVTs available,
each Token is valued at 10.45807386 NOSO</div>
<div id="price99" class="price">With 99 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price98" class="price">With 98 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price97" class="price">With 97 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price96" class="price">With 96 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price95" class="price">With 95 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price94" class="price">With 94 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price93" class="price">With 93 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price92" class="price">With 92 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price91" class="price">With 91 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price90" class="price">With 90 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price89" class="price">With 89 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price88" class="price">With 88 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price87" class="price">With 87 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price86" class="price">With 86 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price85" class="price">With 85 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price84" class="price">With 84 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price83" class="price">With 83 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price82" class="price">With 82 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price81" class="price">With 81 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price80" class="price">With 80 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price79" class="price">With 79 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price78" class="price">With 78 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price77" class="price">With 77 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price76" class="price">With 76 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price75" class="price">With 75 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price74" class="price">With 74 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price73" class="price">With 73 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price72" class="price">With 72 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price71" class="price">With 71 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price70" class="price">With 70 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price69" class="price">With 69 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price68" class="price">With 68 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price67" class="price">With 67 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price66" class="price">With 66 GVTs available, each
Token is valued at 10.45807386 NOSO</div>
<div id="price65" class="price">With 65 GVTs available, each
Token is valued at 26.73619111 NOSO</div>
<div id="price64" class="price">With 64 GVTs available, each
Token is valued at 43.00603552 NOSO</div>
<div id="price63" class="price">With 63 GVTs available, each
Token is valued at 59.30652907 NOSO</div>
<div id="price62" class="price">With 62 GVTs available, each
Token is valued at 75.68278688 NOSO</div>
<div id="price61" class="price">With 61 GVTs available, each
Token is valued at 92.19004129 NOSO</div>
<div id="price60" class="price">With 60 GVTs available, each
Token is valued at 108.89504542 NOSO</div>
<div id="price59" class="price">With 59 GVTs available, each
Token is valued at 125.87518968 NOSO</div>
<div id="price58" class="price">With 58 GVTs available, each
Token is valued at 143.22042915 NOSO</div>
<div id="price57" class="price">With 57 GVTs available, each
Token is valued at 161.03411325 NOSO</div>
<div id="price56" class="price">With 56 GVTs available, each
Token is valued at 179.43352458 NOSO</div>
<div id="price55" class="price">With 55 GVTs available, each
Token is valued at 198.55387804 NOSO</div>
<div id="price54" class="price">With 54 GVTs available, each
Token is valued at 218.55126699 NOSO</div>
<div id="price53" class="price">With 53 GVTs available, each
Token is valued at 239.60789339 NOSO</div>
<div id="price52" class="price">With 52 GVTs available, each
Token is valued at 261.93378912 NOSO</div>
<div id="price51" class="price">With 51 GVTs available, each
Token is valued at 285.77041488 NOSO</div>
<div id="price50" class="price">With 50 GVTs available, each
Token is valued at 311.39929857 NOSO</div>
<div id="price49" class="price">With 49 GVTs available, each
Token is valued at 338.13816839 NOSO</div>
<div id="price48" class="price">With 48 GVTs available, each
Token is valued at 366.34554508 NOSO</div>
<div id="price47" class="price">With 47 GVTs available, each
Token is valued at 396.43100182 NOSO</div>
<div id="price46" class="price">With 46 GVTs available, each
Token is valued at 428.85987818 NOSO</div>
<div id="price45" class="price">With 45 GVTs available, each
Token is valued at 464.14783636 NOSO</div>
<div id="price44" class="price">With 44 GVTs available, each
Token is valued at 502.86618182 NOSO</div>
<div id="price43" class="price">With 43 GVTs available, each
Token is valued at 545.65272727 NOSO</div>
<div id="price42" class="price">With 42 GVTs available, each
Token is valued at 593.21818182 NOSO</div>
<div id="price41" class="price">With 41 GVTs available, each
Token is valued at 646.36363636 NOSO</div>
<div id="price40" class="price">With 40 GVTs available, each
Token is valued at 700.00000000 NOSO</div>
<div id="price39" class="price">With 39 GVTs available, each
Token is valued at 770.00000000 NOSO</div>
<div id="price38" class="price">With 38 GVTs available, each
Token is valued at 847.00000000 NOSO</div>
<div id="price37" class="price">With 37 GVTs available, each
Token is valued at 931.70000000 NOSO</div>
<div id="price36" class="price">With 36 GVTs available, each
Token is valued at 1024.87000000 NOSO</div>
<div id="price35" class="price">With 35 GVTs available, each
Token is valued at 1127.35700000 NOSO</div>
<div id="price34" class="price">With 34 GVTs available, each
Token is valued at 1240.09270000 NOSO</div>
<div id="price33" class="price">With 33 GVTs available, each
Token is valued at 1364.10197000 NOSO</div>
<div id="price32" class="price">With 32 GVTs available, each
Token is valued at 1500.51216700 NOSO</div>
<div id="price31" class="price">With 31 GVTs available, each
Token is valued at 1650.56338370 NOSO</div>
<div id="price30" class="price">With 30 GVTs available, each
Token is valued at 1815.61972207 NOSO</div>
<div id="price29" class="price">With 29 GVTs available, each
Token is valued at 1997.18169427 NOSO</div>
<div id="price28" class="price">With 28 GVTs available, each
Token is valued at 2196.89986369 NOSO</div>
<div id="price27" class="price">With 27 GVTs available, each
Token is valued at 2416.58985005 NOSO</div>
<div id="price26" class="price">With 26 GVTs available, each
Token is valued at 2658.24883505 NOSO</div>
<div id="price25" class="price">With 25 GVTs available, each
Token is valued at 2924.07371855 NOSO</div>
<div id="price24" class="price">With 24 GVTs available, each
Token is valued at 3216.48109040 NOSO</div>
<div id="price23" class="price">With 23 GVTs available, each
Token is valued at 3538.12919944 NOSO</div>
<div id="price22" class="price">With 22 GVTs available, each
Token is valued at 3891.94211938 NOSO</div>
<div id="price21" class="price">With 21 GVTs available, each
Token is valued at 4281.13633131 NOSO</div>
<div id="price20" class="price">With 20 GVTs available, each
Token is valued at 4709.24996444 NOSO</div>
<div id="price19" class="price">With 19 GVTs available, each
Token is valued at 5180.17496088 NOSO</div>
<div id="price18" class="price">With 18 GVTs available, each
Token is valued at 5698.19245696 NOSO</div>
<div id="price17" class="price">With 17 GVTs available, each
Token is valued at 6268.01170265 NOSO</div>
<div id="price16" class="price">With 16 GVTs available, each
Token is valued at 6894.81287291 NOSO</div>
<div id="price15" class="price">With 15 GVTs available, each
Token is valued at 7584.29416020 NOSO</div>
<div id="price14" class="price">With 14 GVTs available, each
Token is valued at 8342.72357622 NOSO</div>
<div id="price13" class="price">With 13 GVTs available, each
Token is valued at 9176.99593384 NOSO</div>
<div id="price12" class="price">With 12 GVTs available, each
Token is valued at 10094.69552722 NOSO</div>
<div id="price11" class="price">With 11 GVTs available, each
Token is valued at 11104.16507994 NOSO</div>
<div id="price10" class="price">With 10 GVTs available, each
Token is valued at 12214.58158793 NOSO</div>
<div id="price9" class="price">With 9 GVTs available, each
Token is valued at 13436.03974672 NOSO</div>
<div id="price8" class="price">With 8 GVTs available, each
Token is valued at 14779.64372139 NOSO</div>
<div id="price7" class="price">With 7 GVTs available, each
Token is valued at 16257.60809352 NOSO</div>
<div id="price6" class="price">With 6 GVTs available, each
Token is valued at 17883.36890287 NOSO</div>
<div id="price5" class="price">With 5 GVTs available, each
Token is valued at 19671.70579315 NOSO</div>
<div id="price4" class="price">With 4 GVTs available, each
Token is valued at 21638.87637246 NOSO</div>
<div id="price3" class="price">With 3 GVTs available, each
Token is valued at 23802.76400970 NOSO</div>
<div id="price2" class="price">With 2 GVTs available, each
Token is valued at 26183.04041067 NOSO</div>
<div id="price1" class="price">With 1 GVTs available, each
Token is valued at 28801.34445173 NOSO</div>
</div>
</span><br>
<span class="list-group-item">View Past GVT <a target="_blank"
href="https://docs.nosocoin.com/noso-documentation/governance/noso-governance-gvt/gvt-polls">Polls</a>
</span></div>
<div class="text-right"> </div>
</div>
<a href="Polls%3C/span"> </a></div>
<a href="Polls%3C/span">
<div class="col-lg-6 ">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-gavel"></i> Noso
Governance </h3>
</div>
<div class="panel-body1">
<div class="list-group"> <span class="list-group-item">
<h4> What is NOSO GVT?</h4>
Built into Noso protocol is a Governance Token (GVT) poll
management system. This system allows GVT owners to create
project related polls for consideration which are voted upon
by other GVT owners. In order to participate in the voting
process, an individual must acquire through purchase or
trade, a Noso Governance Token (GVT). These tokens are
available to anyone wanting to participate in the Noso
voting process. <br>
<br>
<b> Governance Tokens have the following specifications: </b><br>
<ul>
<li>GVTs are transferable</li>
<li>1 GVT = 1 vote</li>
<li>Any GVT owner can start a poll</li>
<li>Polls with +75% of approbation will be mandatory; +50%
will be recommended</li>
<li>New GVTs can be minted every year only (on demand,
after government poll approbation)</li>
<li>GVTs can be banned by other GVTs owners in certain
circumstances. When banned, the GVT owner becomes
suspended from creating new polls or participating on
existing ones for 90 days.</li>
<li>There can be only one GVT poll at a time</li>
<li>GVTs rules can be adjusted by a GVT votation</li>
</ul>
<br>
<br>
<span class="badge"></span> </span> </div>
<font color="white">
<div class="text-right"> </div>
</font></div>
</div>
</a></div>
<a href="Polls%3C/span">
<div class="row"> <img src="img/logo_clearbg.png" alt="nosologo" title="nosologo"
style="width: 15px; height: 15px;"> <font size="1px" color="#bbb">Powered
by NOSO Blockchain | Built by the NOSO Community</font>
</div>
</a></div>
<a href="Polls%3C/span"> <font color="#fbe04d"><b> <font size="3px" color="#bbb">
</font></b></font>
<!-- /#page-wrapper -->
<!-- /#wrapper -->
<!-- JavaScript -->
<script src="js/jquery-1.10.2.js"></script>
<script src="js/bootstrap.js"></script>
<!-- Page Specific Plugins -->
<script>
const prices = document.querySelectorAll('.price');
const numberInput = document.getElementById('numberInput');
numberInput.addEventListener('input', function() {
const inputValue = parseInt(numberInput.value);
if (inputValue >= 1 && inputValue <= 100) {
prices.forEach(price => {
price.style.display = 'none';
});
document.getElementById('price' + inputValue).style.display = 'block';
} else {
prices.forEach(price => {
price.style.display = 'none';
});
}
});
</script> <script>
function fetchData() {
fetch('https://api.nosostats.com:8078', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"jsonrpc": "2.0",
"method":"getgvtinfo",
"params": [],
"id": 1
})
})
.then(response => response.json())
.then(data => {
const result = data.result[0];
document.getElementById('gvt-available').textContent = result.available + ' of 100';
document.getElementById('gvt-buy').textContent = (result.buy * 0.00000001).toFixed(0) + ' N';
document.getElementById('gvt-sell').textContent = (result.sell * 0.00000001).toFixed(0) + ' N';
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
fetchData();
</script> <script>
function search() {
const input = document.getElementById('search').value.trim();
if (/^\d{1,10}$/.test(input)) {
// Show block form and hide other forms
document.getElementById('block-form').style.display = '';
document.getElementById('address-form').style.display = 'none';
document.getElementById('alias-form').style.display = 'none';
document.getElementById('block-search').value = input;
document.getElementById('block-form').submit();
} else if (/^[aA]-.*$/.test(input)) {
// Show alias form and hide other forms
document.getElementById('alias-form').style.display = '';
document.getElementById('block-form').style.display = 'none';
document.getElementById('address-form').style.display = 'none';
document.getElementById('alias-search').value = input.substring(2);
document.getElementById('alias-form').submit();
} else if (/^[a-zA-Z0-9]{1,31}$/.test(input)) {
// Show address form and hide other forms
document.getElementById('address-form').style.display = '';
document.getElementById('block-form').style.display = 'none';
document.getElementById('alias-form').style.display = 'none';
document.getElementById('address-search').value = input;
document.getElementById('address-form').submit();
} else {
// Invalid input, hide all forms except for the new order form
document.getElementById('block-form').style.display = 'none';
document.getElementById('address-form').style.display = 'none';
document.getElementById('alias-form').style.display = 'none';
document.getElementById('order-form').style.display = '';
document.getElementById('order-search').value = input;
document.getElementById('order-form').submit();
}
}
// Add event listener to search field to listen for "Enter" keypress
document.getElementById('search').addEventListener('keypress', function (e) {
if (e.key === 'Enter') {
search();
}
});
</script></a></div><a href="Polls%3C/span"> </a>
</body>
</html>