forked from Eligioo/nimiq-readiness-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
154 lines (132 loc) · 3.63 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nimiq Migration Validator Readiness Monitor</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
color: #1F2348;
margin: 0;
padding: 0;
}
h1,
h2,
h3,
h4 {
text-align: center;
color: #1F2348;
}
h1 {
background-color: #21BCA5;
color: white;
padding: 20px 0;
margin: 0;
}
h2,
h3 {
margin-top: 20px;
}
p {
text-align: center;
font-size: 1.1em;
margin: 1rem;
}
.table-container {
display: flex;
justify-content: center;
margin: 1.5rem 0;
}
table {
border-collapse: collapse;
width: 90%;
max-width: 1100px;
margin: 0 auto;
background-color: white;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}
th,
td {
padding: 10px;
border: 1px solid #ddd;
text-align: center;
}
th {
background-color: #21BCA5;
color: white;
}
#validatorOnlineTable>tr>td {
text-align: left;
}
.progress-container {
width: 100%;
height: 0.25rem;
background: #ddd;
}
.progress {
width: 0%;
height: 100%;
background: #0582CA;
animation: progress 60s linear infinite;
}
@keyframes progress {
0% { width: 0%; }
100% { width: 100%; }
}
#validatorReadyTable {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 1rem;
}
.ready-cell {
flex-grow: 1;
width: 10%;
background: white;
padding: 1rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: 0.5rem;
}
</style>
</head>
<body>
<h1>Nimiq Migration Validator Readiness Monitor</h1>
<div class="progress-container"><div class="progress"></div></div>
<p>
Consensus status of PoW Node: <span id="nodeConsensus">Unknown</span> | Total stake: <span
id="totalStake">Unknown</span>
</p>
<section class="online">
<h2>Online (<span id="percentageOnline">0</span>%)</h2>
<h3>Validators which are online indicate they will be ready to migrate.</h3>
<div class="table-container">
<table>
<tbody id="validatorOnlineTable">
</tbody>
</table>
</div>
</section>
<section class="ready">
<h2>Ready (<span id="percentageReady">0</span>%)</h2>
<h3>Validators that are ready to migrate.</h3>
<h4>When more than 80% of stake is ready in an activation window, the PoS chain will start 🚀</h4>
<div id="validatorReadyTable"></div>
</section>
<section class="popularity">
<h2>Genesis Hash popularity</h2>
<div class="table-container">
<table>
<tbody id="genesisPopularityTable">
</tbody>
</table>
</div>
</section>
</body>
<script src="timeago.min.js"></script>
<script src="script.js"></script>
</html>