-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.html
652 lines (633 loc) · 23.9 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
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
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="resources/custom.css">
<link rel="stylesheet" href="resources/css/fa.css">
<script>
function init()
{
openTab(event,'tablog')
tablinks = document.getElementsByClassName("tablinks");
tablinks[0].className += " active";
}
function openTab(evt, cityName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(cityName).style.display = "block";
evt.currentTarget.className += " active";
}
</script>
</head>
<body onload="init()">
<div id="body">
<table class="table-style" cellspacing="0" cellpadding="0">
<colgroup>
<col span="1" style="width: 33%;">
<col span="1" style="width: 34%;">
<col span="1" style="width: 33%;">
</colgroup>
<tr class="dashboard">
<td colspan="3">
<table class="table-input-top" cellspacing="0" cellpadding="0">
<colgroup>
<col style="width: 82px">
<col>
</colgroup>
<tr>
<td><i class="fas fa-wallet fa-lg fa-fw"></i> Wallet</td>
<td class="right-border1">
<input id="mining_address" value="" onchange="updateData()" style="width:calc(100% - 12px)" type="text"/>
</td>
</tr>
</table>
</td>
</tr>
<tr class="dashboard">
<td>
<table class="table-input-top" cellspacing="0" cellpadding="0">
<colgroup>
<col style="width: 135px">
<col>
</colgroup>
<tr class="no-top-line">
<td><i class="fas fa-server fa-lg fa-fw"></i> Daemon-Host</td>
<td>
<input id="daemonhost" value=""style="width:100%" onchange="updateData()" type="text"/>
</td>
</tr>
</table>
</td>
<td>
<table class="table-input-top table-input-top2" cellspacing="0" cellpadding="0">
<colgroup>
<col style="width: 132px">
<col>
</colgroup>
<tr class="no-top-line">
<td><i class="fas fa-phone-volume fa-lg fa-fw"></i> Daemon-Port</td>
<td>
<input id="daemonport" value="" onchange="updateData()" style="width:100%" type="text"/>
</td>
</tr>
</table>
</td>
<td>
<table class="table-input-top table-input-top2" cellspacing="0" cellpadding="0">
<colgroup>
<col style="width: 105px">
<col>
</colgroup>
<tr class="no-top-line">
<td><i class="fas fa-phone-volume fa-lg fa-fw"></i> Pool-Port</td>
<td class="right-border1">
<input id="poolport" value="" onchange="updateData()" style="width:calc(100% - 12px)" type="text"/>
</td>
</tr>
</table>
</td>
</tr>
<tr class="dashboard top-line">
<td class="bottom-left-corner">
<table class="table-input-top" cellspacing="0" cellpadding="0">
<colgroup>
<col style="width: 135px">
<col>
</colgroup>
<tr class="no-top-line">
<td><i class="fas fa-bolt fa-lg fa-fw"></i> Ctrl-Port <input id="onlyctrl" title="Use only Control port" onchange="updateData()" type="checkbox"/></td>
<td class="right-border1">
<input id="ctrlport" value="" onchange="updateData()" style="width:calc(100% + 4px)" type="text"/>
</td>
</tr>
</table>
</td>
<td>
<table class="table-input-top table-input-top2" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr class="no-top-line">
<td class="reset">
<i class="fas fa-chart-bar fa-lg fa-fw"></i> Stats 
<button onclick="resetData()">Reset <i class="fas fa-redo fa-flip-horizontal"></i></button>
</td>
</tr>
</table>
<td class="bottom-right-corner">
<table class="table-input-top table-input-top2" cellspacing="0" cellpadding="0">
<colgroup>
<col style="width: 110px">
<col>
</colgroup>
<tr class="no-top-line">
<td>
</td>
<td class="right-border1">
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class="table-style" cellspacing="0" cellpadding="0">
<colgroup>
<col span="1" style="width: 25%;">
<col span="1" style="width: 25%;">
<col span="1" style="width: 25%;">
<col span="1" style="width: 25%;">
</colgroup>
<tr>
<td>
<table class="table-header table-header-top" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td><i class="fas fa-tachometer-alt-fast fa-lg fa-fw"></i> Graph Rate</td>
</tr>
</table>
</td>
<td>
<table class="table-header table-header2 table-header-top" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td><i class="fas fa-route fa-lg fa-fw"></i> Solutions</td>
</tr>
</table>
</td>
<td>
<table class="table-header table-header2 table-header-top" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td><i class="fas fa-cubes fa-lg fa-fw"></i> Blocks Found</td>
</tr>
</table>
</td>
<td>
<table class="table-header table-header2 table-header-top" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td><i class="fas fa-history fa-lg fa-fw"></i> Blocks Found Every</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table style="margin-top:0px;width:100%;table-layout: fixed;border:0;" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td class="data">
<input disabled="true" id="data_gps" style="width:100%" type="text" value="0.00 Gps"/>
</td>
</tr>
</table>
</td>
<td>
<table style="padding-left:20px;margin-top:0px;width:100%;table-layout: fixed;border:0;" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td class="data">
<input disabled="true" id="data_shares" style="width:100%" type="text" value="0"/>
</td>
</tr>
</table>
</td>
<td>
<table style="padding-left:20px;margin-top:0px;width:100%;table-layout: fixed;border:0;" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td class="data">
<input disabled="true" value="0" id="data_blocks" style="width:100%" type="text"/>
</td>
</tr>
</table>
</td>
<td>
<table style="padding-left:20px;margin-top:0px;width:100%;table-layout: fixed;border:0;" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td class="data">
<input disabled="true" id="data_blocketa" style="width:100%" type="text" value="00:00:00s"/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table class="table-header" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td><i class="fas fa-tachometer-alt-fast fa-lg fa-fw"></i> Network Graph Rate</td>
</tr>
</table>
</td>
<td>
<table class="table-header table-header2" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td><i class="fas fa-unlock fa-lg fa-fw"></i> Network Difficulty</td>
</tr>
</table>
</td>
<td>
<table class="table-header table-header2" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td><i class="fas fa-bars fa-lg fa-fw"></i> Blockchain Height</td>
</tr>
</table>
</td>
<td>
<table class="table-header table-header2" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td><i class="fas fa-chart-line fa-lg fa-fw"></i> Current Effort</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table style="padding-left:0px;margin-top:0px;width:100%;table-layout: fixed;border:0;" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td class="data">
<input disabled="true" value="0" id="data_netgraphrate" style="width:100%" type="text"/>
</td>
</tr>
</table>
</td>
<td>
<table style="padding-left:20px;margin-top:0px;width:100%;table-layout: fixed;border:0;" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td class="data">
<input disabled="true" value="0" id="data_diff" style="width:100%" type="text"/>
</td>
</tr>
</table>
</td>
<td>
<table style="padding-left:20px;margin-top:0px;width:100%;table-layout: fixed;border:0;" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td class="data">
<input disabled="true" value="0" id="data_height" style="width:100%" type="text"/>
</td>
</tr>
</table>
</td>
<td>
<table style="padding-left:20px;margin-top:0px;width:100%;table-layout: fixed;border:0;" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td class="data">
<input disabled="true" value="0.00%" id="data_currenteffort" style="width:100%" type="text"/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table class="table-header" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td><i class="fas fa-users fa-lg fa-fw"></i> Workers</td>
</tr>
</table>
</td>
<td>
<table class="table-header table-header2" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td><i class="fas fa-coins fa-lg fa-fw"></i> Est. Revenue Per Day</td>
</tr>
</table>
</td>
<td>
<table class="table-header table-header2" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td><i class="fas fa-coins fa-lg fa-fw"></i> Current Block Rewards</td>
</tr>
</table>
</td>
<td>
<table class="table-header table-header2" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td><i class="fas fa-chart-line fa-lg fa-fw"></i> Average Effort</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table style="padding-left:0px;margin-top:0px;width:100%;table-layout: fixed;border:0;" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td class="data">
<input disabled="true" id="data_conn" style="width:100%" type="text" value="0"/>
</td>
</tr>
</table>
</td>
<td>
<table style="padding-left:20px;margin-top:0px;width:100%;table-layout: fixed;border:0;" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td class="data">
<input disabled="true" value="0.00 XWP" id="data_revenue" style="width:100%" type="text"/>
</td>
</tr>
</table>
</td>
<td>
<table style="padding-left:20px;margin-top:0px;width:100%;table-layout: fixed;border:0;" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td class="data">
<input disabled="true" value="0.00 XWP" id="data_reward" style="width:100%" type="text"/>
</td>
</tr>
</table>
</td>
<td>
<table style="padding-left:20px;margin-top:0px;width:100%;table-layout: fixed;border:0;" cellspacing="0" cellpadding="0">
<colgroup>
<col>
</colgroup>
<tr>
<td class="data">
<input disabled="true" value="0.00%" id="data_averageeffort" style="width:100%" type="text"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class="tab">
<button class="tablinks tablinks1" onclick="openTab(event, 'tablog')">Log <i class="fas fa-scroll"></i></button>
<button class="tablinks" onclick="openTab(event, 'tabworker')">Worker <i class="fas fa-user-hard-hat"></i></button>
<button class="tablinks" onclick="openTab(event, 'tabblocks')">Blocks <i class="fas fa-cubes"></i></button>
<button class="tablinks tablinks2" onclick="openTab(event, 'tabhelp')">Help <i class="fas fa-life-ring"></i></button>
</div>
<div id="tablog" class="tabcontent">
<div id="log">
</div>
</div>
<div id="tabworker" class="tabcontent">
<div id="workerstitle">
<h3>
<font color ="#a3acde">
Login-Miner-Pass-Diff-Shares-Hashrate-Blocks-CurrentEffort-AverageEffort<br>
</font>
</h3>
</div>
<div id="workers">
</div>
</div>
<div id="tabblocks" class="tabcontent">
<div id="blocks">
</div>
</div>
<div id="tabhelp" class="tabcontent">
<div id="help">
<h1>Welcome to the Swap Micropool!</h1>
<div id="myDIV">
<i class="fas fa-broadcast-tower fa-lg fa-fw"></i> Default Presets (Mainnet): 
<button class="btn" onclick="setNodePreset('localmainnet')">Local Node <i class="fas fa-map-marker-alt"></i></button>
<button class="btn" onclick="setNodePreset('remotemainnet')">Remote Node <i class="fas fa-map-marked-alt"></i></button>
</div>
<h2>Micropool Setup</h2>
<p>
<ol>
<li>
Run the latest Swap Daemon and allow it to fully sync.
</li>
<ul>
<li><a href="https://github.com/swap-dev/swap/releases/latest" target="_blank">Latest Swap Daemon</a></li>
</ul>
<li>
Obtain and enter a standard wallet address (prefixed with fh...).
</li>
<ul>
<li>Mining directly to exchange is not supported with the micropool.</li>
</ul>
<li>
Point the Daemon-Host to the IP or DNS address of the daemon.
</li>
<ul>
<li>Use 127.0.0.1 if the daemon is on the same machine as micropool (recommended).</li>
<li>Use the IP assigned by the router if on the same network.</li>
</ul>
<li>
Optionally, download and set up the on-block notify script for the daemon. The default Ctrl-Port will listen for this script.
</li>
<ul>
<li><a href="https://github.com/swap-dev/on-block-notify/releases/latest" target="_blank">Latest On-Block Notify</a></li>
<li>Place the executable in the same folder as the daemon and start the daemon with the '--block-notify notify_win.exe' parameter</li>
</ul>
</ol>
</p>
<h2>Miner Setup</h2>
<p>
<ol>
<li>
Point the pool or connection address to the IP address of the machine running the micropool.
</li>
<li>
Set the mining port to 14650.
</li>
<li>
Set the username and password as preferred. These are used to identify mining rigs within the micropool.
</li>
<li>
Optionally, append a number prefixed by a dot after the username (e.g. workername.10) to set the share difficulty for the rig.
Difficulty defaults to 1 when left unset. As a general guideline setting the difficulty 1:1 with your miners graphrate will yield
approximately 1 share every 32 seconds.
</li>
</ol>
</p>
<h2>Troubleshooting</h2>
<h3>Deamon Connection</h3>
<p>
The error "<i>connect ECONNREFUSED x.x.x.x:19950</i>" indicates that micropool cannot connect to the Swap Daemon. Check that the Daemon-Host
and Daemon-Port are entered correctly, and that there are no firewalls blocking the Daemon-Port. If the daemon is not located on the same machine
as the micropool, you must bind the rpc IP externally (e.g. swapd --rpc-bind-ip 0.0.0.0 --confirm-external-bind --restricted-rpc).
</p>
<p>
The error "<i>core is busy</i>" indicates that Swap Daemon has not yet fully synced. You will not be able to connect the miner until it is synced.
If this error occurs intermittently, it means that the daemon is having a hard time maintaining connections with the Swap Network.
Check the firewall settings for the Swap Daemon's p2p port.
</p>
<h3>Miner Connection</h3>
<p>
If there is "<i>No connection could be made because the target machine actively refused it</i>" and similar errors in the miner,
make sure there are no errors in the micropool. The micropool will not accept any connections until it is fully ready.
If there are no errors in the micropool, make sure the connection info in the miner is correct and that no firewall is blocking the Pool-Port.
</p>
<h3>Mining Efficiency</h3>
<p>
For users who are finding an abnormal number of orphan blocks or are needing a lot of effort to find blocks. Listed in order of importance and efficacy:
<ul>
<li>
<b>Avoid mining to a public remote node!</b> Public nodes are a shared resource, which will have a hard time serving new block templates to the micropool
in a timely manner. Expect a massive number of orphan blocks while mining directly to one of the more popular nodes! If for some reason you cannot
run the Swap Daemon on the local network, setting up a private remote node on a VPS is a much better alternative.
</li>
<li>
<b>Reduce ping time to peers.</b> Generally this means don't run the setup on satellite or cellular internet. If you are stuck with high latency internet,
expect a higher than normal orphan rate.
</li>
<li>
<b>Ensure that the daemon is well connected to at least 15-20 peers</b> to help distribute the found blocks throughout the network as quickly as possible.
If the daemon has a hard time maintaining a good peer list, check to make sure that it is able to accept inbound connections on the p2p port.
This will reduce the chance of having the block orphaned or even unintentionally forking onto a seperate private chain (i.e. multiple orphan blocks).
If you still cannot maintain a good peer list, at least make sure that the peers you do have are fully synced (you can help get the peers up to
speed by increasing the daemon's max upload speed).
</li>
<li>
<b>Setting up on-block notify</b> will ensure that the micropool will always be ready when the daemon detects a new block on the network.
This reduces the time wasted on mining a stale block that would be rejected by the daemon anyway. Without on-block notify,
the micropool will poll the daemon for new blocks every 0.1s (which is already a fairly aggressive setting).
These milliseconds of delay add up, and is especially important when mining on the Swap Network's 15s block timing.
Expect a reduction of ~0.33% effort needed to find each block.
</li>
<li>
<b>Reduce ping time between micropool, Swap Daemon, and miner.</b> Ideally, they should be on the same machine or local network.
Having any part of the setup over the internet will impact mining effort and/or orphan rate due to communication delays.
</li>
<li><b>Prioritize the daemon connection to seed nodes using --add-priority-node.</b> The Swap seed nodes are dedicated servers optimized
to handle hundreds of concurrent connections at a time. The daemon will gain access to many of available Swap nodes with only
2 hops away when connected to one.
</li>
<li>
<b>Prioritize the daemon connection to major pools using --add-priority-node.</b> By having a direct connection to the major pools,
you not only receive their blocks faster, but they also receive the blocks you have found faster too. By building on each others chain,
the chance of orphan blocks decreases for everyone involved. The pool daemon is usually located on the same IP as the mining address,
but you can always ask the pool operator too.
</li>
</ul>
</p>
</div>
</div>
</div>
<script>
var electron = require('electron');
var loglines = [];
function updateData() {
if( (document.getElementById('daemonport').value < 1024)||(document.getElementById('daemonport').value > 65535))
document.getElementById('daemonport').value=19950;
if( (document.getElementById('poolport').value < 1024)||(document.getElementById('poolport').value > 65535))
document.getElementById('poolport').value=14650;
if( (document.getElementById('ctrlport').value < 1024)||(document.getElementById('ctrlport').value > 65535))
document.getElementById('ctrlport').value=14651;
ipcRenderer.send('set', ['daemonport',parseFloat(document.getElementById('daemonport').value)|0]);
ipcRenderer.send('set', ['poolport',parseFloat(document.getElementById('poolport').value)|0]);
ipcRenderer.send('set', ['ctrlport',document.getElementById('ctrlport').value]);
ipcRenderer.send('set', ['daemonhost',document.getElementById('daemonhost').value]);
ipcRenderer.send('set', ['mining_address',document.getElementById('mining_address').value]);
ipcRenderer.send('set', ['onlyctrl',document.getElementById('onlyctrl').checked]);
}
const { ipcRenderer } = require('electron')
ipcRenderer.send('get', 'daemonport');
ipcRenderer.send('get', 'poolport');
ipcRenderer.send('get', 'ctrlport');
ipcRenderer.send('get', 'daemonhost');
ipcRenderer.send('get', 'mining_address');
ipcRenderer.send('get', 'onlyctrl');
ipcRenderer.on('get-reply', (event, arg) => {
document.getElementById(arg[0]).value=arg[1];
})
ipcRenderer.on('workers', (event, arg) => {
document.getElementById('workers').innerHTML=arg;
})
ipcRenderer.on('blocks', (event, arg) => {
document.getElementById('blocks').innerHTML=arg;
})
ipcRenderer.on('onlyctrl', (event, arg) => {
document.getElementById('onlyctrl').checked=arg;
})
ipcRenderer.on('log', (event, msg) => {
var d = new Date();
loglines.unshift(Date(Date.now()).substr(4, 20)+' <span>['+msg[0]+']</span> '+msg[1]);
if (loglines.length > 100) loglines.pop();
document.getElementById('log').innerHTML=loglines.join('<br/>');
});
function setNodePreset(type) {
if (type == "localmainnet")
{
document.getElementById('daemonhost').value="127.0.0.1";
document.getElementById('daemonport').value=19950;
}
else if (type == "remotemainnet")
{
document.getElementById('daemonhost').value="autonode.xwp.fyi";
document.getElementById('daemonport').value=19950;
}
document.getElementById('poolport').value=14650;
document.getElementById('ctrlport').value=14651;
updateData();
}
function resetData() {
ipcRenderer.send('run', ['resetData']);
}
</script>
</body>
</html>