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
/
topaddresses.html
366 lines (320 loc) · 16.5 KB
/
topaddresses.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
<!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>
.container {
display: block; /* Change from display: table to display: block */
width: 100%;
}
.row {
display: flex; /* Change from display: table-row to display: flex */
color: white;
}
@media screen and (max-width: 900px) {
.row {
flex-direction: column; /* Stack items vertically on small screens */
}
}
.mn-spinner {
border: 2px solid rgba(0, 0, 0, 0.1);
border-left-color: #3498db;
border-radius: 50%;
width: 8px;
height: 8px;
animation: spin 0.6s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Style for the block info table */
.block-info-table {
color: Grey; /* Set font color to white */
width: 100%; /* Make table occupy full width */
border-collapse: collapse; /* Collapse table borders */
}
/* Style for the table header row */
.block-info-table .header-row th {
font-weight: bold;
font-size: 14px;
padding: 5px; /* Add padding to header cells */
text-align: center; /* Center align header text */
border-bottom: 0px solid black; /* Add bottom border */
}
/* Style for the table data row */
.block-info-table .data-row td {
padding: 5px; /* Add padding to data cells */
text-align: center; /* Center align data text */
border-bottom: 1px solid black; /* Add bottom border */
}
/* Style for the table data row */
.block-info-table tr {
padding: 5px; /* Add padding to data cells */
text-align: center; /* Center align data text */
border-bottom: 1px solid black; /* Add bottom border */
}
/* Alternate row background color */
.block-info-table tr:nth-child(even) {
background-color: #222; /* Dark background color */
}
/* Style for the label div */
.block-info-table .label,
.block-info-table .value {
display: block; /* Ensure each cell occupies full width */
}
.header-row {
font-weight: bold;
background-color: #222222;
text-align: center;
}
</style>
<link rel="icon" type="image/x-icon" href="img/favicon.ico">
<!-- Include Highcharts library -->
<script src="https://cdn.jsdelivr.net/npm/chart.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://d3js.org/d3.v7.min.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="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 class="active"><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><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="col-lg-6 ">
<div class="panel-heading">
<h3 class="panel-title"> <i class="fa fa-book "></i> SUPPLY
STATS</h3>
</div>
<div class="panel-body">
<div class="list-group">
<h5><b>Locked Funds</b></h5>
<span class="list-group-item">Circulating Supply<span class="badge"><span
id="circulatingsupply">
<div class="mn-spinner" style="width: 15px; height: 15px;"></div>
</span></span> </span> <span class="list-group-item">Node
Locked Funds<span class="badge"> <span id="lockedinmasternodes">
<div class="mn-spinner" style="width: 15px; height: 15px;"></div>
</span></span></span><span class="list-group-item">Percentage
Locked<span class="badge"> <span id="masternodesupplypercent">
<div class="mn-spinner" style="width: 15px; height: 15px;"></div>
</span> </span></span>
<h5><b>Project Funds</b></h5>
<span class="list-group-item">Project Development Funds<span class="badge"><span
id="projectfunds">
<div class="mn-spinner" style="width: 15px; height: 15px;"></div>
</span></span> </span><span class="list-group-item">Project
NSIF Nodes<span class="badge"><span id="projectnodesbalance">
<div class="mn-spinner" style="width: 15px; height: 15px;"></div>
</span></span> </span><span class="list-group-item">Project
Funds Total<span class="badge"><span id="totalprojectfunds">
<div class="mn-spinner" style="width: 15px; height: 15px;"></div>
</span></span> </span> </div>
<div class="text-right"> </div>
</div>
</div>
<div class="col-lg-6 ">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-search"></i> TOP ADDRESS
STATISTICS </h3>
</div>
<div class="panel-body1">
<div class="list-group">
<h5><b>Richest Address</b> <font size="1px"><span id="topaddresspercent">Loading..
</span> of Supply </font></h5>
<span class="list-group-item">Address <span class="badge"><span id="richestaddress">
<div class="mn-spinner" style="width: 15px; height: 15px;"></div>
</span></span></span> <span class="list-group-item">Balance<span
class="badge"><span id="topaddressbalance">
<div class="mn-spinner" style="width: 15px; height: 15px;"></div>
</span> </span> </span>
<h5><b>Coin Supply Concentration</b></h5>
<span class="list-group-item">Top 1-25<span class="badge"><span id="richestaddress20">
<div class="mn-spinner" style="width: 15px; height: 15px;"></div>
</span></span></span> <span class="list-group-item">Top 26-50<span
class="badge"><span id="richestaddress26_50">
<div class="mn-spinner" style="width: 15px; height: 15px;"></div>
</span></span></span><span class="list-group-item">Top 51-75<span
class="badge"><span id="richestaddress51_75">
<div class="mn-spinner" style="width: 15px; height: 15px;"></div>
</span></span> </span><span class="list-group-item">Top
76-100<span class="badge"><span id="richestaddress76_100">
<div class="mn-spinner" style="width: 15px; height: 15px;"></div>
</span></span> </span><span class="list-group-item">Top 100
Total<span class="badge"><span id="richestaddress1_100">
<div class="mn-spinner" style="width: 15px; height: 15px;"></div>
</span></span> </span><span class="list-group-item">All Other
Addresses<span class="badge"><span id="remainingsupply">
<div class="mn-spinner" style="width: 15px; height: 15px;"></div>
</span></span> </span></div>
<font color="white">
<div class="text-right"> </div>
</font></div>
<font color="white"> </font></div>
</div>
<br>
<div class="row">
<div class="col-lg-12">
<table class="block-info-table" id="richlist">
<thead>
<tr class="header-row">
<th class="priority-1">Rank</th>
<th class="priority-1">Top 100 Addresses</th>
<th class="priority-6">Custom Description</th>
<th class="priority-1">Balance</th>
<th class="priority-6">Supply Percentage</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<center>
<div class="mn-spinner" style="width: 15px; height: 15px;"></div>
</center>
<!-- Results will be displayed here --> </div>
</div>
<br>
</div>
<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> <!-- JavaScript -->
<!-- JavaScript -->
<!--scripts for navbar hamburger below-->
<script src="js/jquery-1.10.2.js"></script>
<script src="js/bootstrap.js"></script>
<!--scripts for navbar hamburger above-->
<script src="js/topaddresses.js"></script>
<!---charts-->
</body>
</html>