-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
145 lines (126 loc) · 3.53 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
<!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%; }
}
</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 are ready to migrate.</h3>
<h3>The first online validators are expected on the 16th of Nov.</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 class="table-container">
<table>
<thead>
<tr id="readyTableHeader">
<th>Validator</th>
</tr>
</thead>
<tbody id="validatorReadyTable">
</tbody>
</table>
</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>