forked from bitcoinafterlife/bal-welist-website
Server page: full block hash in the rounds table
- Hash no longer shortened; slightly smaller mono text so the row stays on one line
This commit is contained in:
@@ -94,7 +94,7 @@ th{font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:up
|
||||
td{padding:10px 14px;border-bottom:1px solid var(--line);white-space:nowrap;vertical-align:top}
|
||||
tr:last-child td{border-bottom:0}
|
||||
td.num,th.num{text-align:right;font-family:var(--mono)}
|
||||
td.hash{font-family:var(--mono);color:var(--muted)}
|
||||
td.hash{font-family:var(--mono);color:var(--muted);font-size:12px;letter-spacing:-.01em}
|
||||
.pos-1{color:var(--ok);font-weight:600}
|
||||
.foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 24px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
|
||||
.btn-ghost{font:inherit;font-size:13px;text-decoration:none;padding:8px 12px;border-radius:8px;border:1px solid var(--line-strong);
|
||||
@@ -331,11 +331,10 @@ footer a{color:var(--accent);text-decoration:none}
|
||||
const row = document.createElement('tr');
|
||||
const d = new Date(wetime.time/1000);
|
||||
const hash = DOMPurify.sanitize(wetime.blockHash||'');
|
||||
const short = hash.length > 20 ? hash.slice(0, 10) + '…' + hash.slice(-8) : (hash || '—');
|
||||
const pos = wetime.position != null ? wetime.position + 1 : null;
|
||||
row.innerHTML = `
|
||||
<td class="num">${wetime.blockHeight != null ? fmt(wetime.blockHeight) : '—'}</td>
|
||||
<td class="hash" title="${hash}">${short}</td>
|
||||
<td class="hash">${hash || '—'}</td>
|
||||
<td>${fmtTime(d)}</td>
|
||||
<td class="num">${wetime.diff != null ? (wetime.diff/1000000).toFixed(3) + ' s' : '—'}</td>
|
||||
<td class="num ${pos === 1 ? 'pos-1' : ''}">${pos != null ? '#' + pos : '—'}</td>
|
||||
|
||||
Reference in New Issue
Block a user