From 9233480f64a7880c0156efbd5e5a3d531d9c8e24 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sat, 30 May 2026 23:29:44 -0700 Subject: [PATCH] Populate block number input if no value is provided --- index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.html b/index.html index 6096508..24a04a2 100644 --- a/index.html +++ b/index.html @@ -92,6 +92,9 @@ document.querySelector('#out-header').textContent = JSON.stringify(header, (_, v) => typeof v === 'bigint' ? v.toString() : v, 2).replaceAll('"', ''); document.querySelector('#out-encoded').textContent = encoded; document.querySelector('#out-hash').textContent = hash; + if (num === '') { + e.target.elements.num.value = Number(block.number); + } } document.querySelector('output').style.setProperty('display', 'unset'); -- 2.47.3