From dee74890a1cf1ae1e922aebffb990ebb0d22d076 Mon Sep 17 00:00:00 2001 From: igneum-labs <337424239+igneum-labs@users.noreply.github.com> Date: Wed, 7 Oct 2026 18:31:43 +0000 Subject: [PATCH] live-22: live.html rebuilt from the base with exact anchors (the first splice had swallowed the statements between the leaderboard and the block table) Co-Authored-By: Claude Fable 5.1 --- site/live.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/site/live.html b/site/live.html index 5b9ab1fc..7fef5a98 100644 --- a/site/live.html +++ b/site/live.html @@ -574,7 +574,8 @@ details.tablebar summary{display:flex;align-items:center} (function(){var w=fn&&fn.weights,keys=w&&w.keys?w.keys.slice():[],p=fn&&fn.params||{};keys.sort(function(a,b){return (b.blocks||0)-(a.blocks||0);}); var seen={};(d.miners||[]).forEach(function(m){seen[m.id]=m;}); $('w-tag').textContent=keys.length?keys.length+' keys · window '+fmtN(p.weightWindow)+' DAA · dust '+fmtN(p.dust):'30-day weight'; - $('w-body').innerHTML=keys.length?(function(){var LB=window.IgneumLeaderboard,r=LB?LB.rows(keys,lbShow,mine):{rows:keys.slice(0,24).map(function(k,i){return Object.assign({},k,{rank:i+1,you:!!mine&&k.id===mine});}),pinned:null,toggle:null};var tg=$('w-toggle');if(tg){tg.hidden=!r.toggle;if(r.toggle){tg.textContent=r.toggle.label;tg.dataset.next=r.toggle.next;}}return r.rows.concat(r.pinned?[Object.assign({},r.pinned,{pin:true})]:[]).map(function(k){var m=seen[k.id],last=m&&m.last_seen?Math.max(0,Math.round((now-new Date(m.last_seen).getTime())/1000))+' s ago':'not in 10 min'; + $('w-body').innerHTML=keys.length?(function(){var LB=window.IgneumLeaderboard,r=LB?LB.rows(keys,lbShow,mine):{rows:keys.slice(0,24).map(function(k,i){return Object.assign({},k,{rank:i+1,you:!!mine&&k.id===mine});}),pinned:null,toggle:null};var tg=$('w-toggle');if(tg){tg.hidden=!r.toggle;if(r.toggle){tg.textContent=r.toggle.label;tg.dataset.next=r.toggle.next;}} + return r.rows.concat(r.pinned?[Object.assign({},r.pinned,{pin:true})]:[]).map(function(k){var m=seen[k.id],last=m&&m.last_seen?Math.max(0,Math.round((now-new Date(m.last_seen).getTime())/1000))+' s ago':'not in 10 min'; return ''+k.rank+''+esc(k.id)+(k.you?' (you)':'')+''+fmtN(k.blocks)+''+(!k.voter?(k.stripped_until_daa?'stripped':'under dust'):k.participation===null||k.participation===undefined?'pending':Math.round(k.participation*100)+'%')+''+last+'';}).join('');})():'No weights in the reply.'; var tot=(d.miners||[]).length,voters=keys.filter(function(k){return k.voter;}).length,signing=keys.filter(function(k){return k.voter&&k.participation>=.9;}).length,lock=null;(fn&&fn.checkpoints||[]).forEach(function(c){if(c.state==='locked'&&(!lock||c.index>lock.index))lock=c;}); var rows=[['Keys with a block in 10 min',tot,tot],['Voters above the dust line',voters,keys.length||tot],['Voters signing 90% of points or more',signing,voters],['Weight signing at the last lock',lock&&lock.fraction_total!==null&&lock.fraction_total!==undefined?Math.round(lock.fraction_total*100)+'%':'pending',null]]; @@ -608,7 +609,7 @@ details.tablebar summary{display:flex;align-items:center} var eel=$('events');if(evList.length){eel.innerHTML=evList.map(function(e){var f=e.fresh;e.fresh=false;return ''+esc(e.k)+' '+esc(e.text)+''+hms(e.ts)+'';}).join('');$('ev-count').textContent=evList.length+' recent';} // the table: the displayed blocks, newest first var rows=on.slice().sort(function(a,b){return b.blue_score-a.blue_score;}).slice(0,40); - $('tbody').innerHTML=rows.length?rows.map(function(b){var word=b.locked?'locked checkpoint':b.proven?'proven':b.color==='red'?'excluded':b.chain?'selected chain':b.color==='blue'?'included':'pending';return ''+fmtN(b.blue_score)+''+esc(b.hash)+''+esc(b.miner)+''+(b.parents||[]).length+''+word+''+(b.number?fmtN(b.number):'')+'';}).join(''):'No blocks in the window.';}).join('');})():; + $('tbody').innerHTML=rows.length?rows.map(function(b){var word=b.locked?'locked checkpoint':b.proven?'proven':b.color==='red'?'excluded':b.chain?'selected chain':b.color==='blue'?'included':'pending';return ''+fmtN(b.blue_score)+''+esc(b.hash)+''+esc(b.miner)+''+(b.parents||[]).length+''+word+''+(b.number?fmtN(b.number):'')+'';}).join(''):'No blocks in the window.'; } // the inspector: the pack's selected record, kept fresh on every reply through onSelect(block, 'update'); the proof scene is IgneumProof var proof=null;