forked from bitcoinafterlife/bal-welist-website
Update index.html
Remove Block stat from header
This commit is contained in:
@@ -235,7 +235,6 @@ footer a{color:var(--accent);text-decoration:none}
|
|||||||
<div class="hero-stats">
|
<div class="hero-stats">
|
||||||
<div class="stat"><div class="n" id="s-online">0</div><div class="l">Online</div></div>
|
<div class="stat"><div class="n" id="s-online">0</div><div class="l">Online</div></div>
|
||||||
<div class="stat"><div class="n" id="s-total">0</div><div class="l">Servers</div></div>
|
<div class="stat"><div class="n" id="s-total">0</div><div class="l">Servers</div></div>
|
||||||
<div class="stat"><div class="n" id="s-block">—</div><div class="l">Block</div></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
@@ -451,9 +450,6 @@ function render() {
|
|||||||
const online = allServers.filter(d => d.status === "OK").length;
|
const online = allServers.filter(d => d.status === "OK").length;
|
||||||
document.getElementById('s-online').textContent = online;
|
document.getElementById('s-online').textContent = online;
|
||||||
document.getElementById('s-total').textContent = allServers.length;
|
document.getElementById('s-total').textContent = allServers.length;
|
||||||
// Highest known block across all servers (the list is ranked by fee/points, not by height)
|
|
||||||
const maxBlock = allServers.reduce((m, d) => Math.max(m, d.last_block || 0), 0);
|
|
||||||
document.getElementById('s-block').textContent = maxBlock ? fmt(maxBlock) : '—';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchData() {
|
async function fetchData() {
|
||||||
|
|||||||
Reference in New Issue
Block a user