fix: paginate weinfo times and read min deposit from ranking_info

- weinfo.html now pages times with the API's zero-based page offset instead of block heights\n- bal.js renders page metadata and hides dead next links on the last page\n- index.html and terms.html read amount from /ranking_info/{chain}
This commit is contained in:
2026-11-06 21:10:20 -04:00
parent 33df29b7a8
commit c87ce760e2
4 changed files with 44 additions and 23 deletions

View File

@@ -724,8 +724,9 @@ l-49 -25 -880 0 -880 0 -3 704 c-2 557 0 706 10 713 7 4 407 7 888 5 818 -2
// The #thr-min span is inside Section 1 (01 · PAYMENT).
const chain = location.hash ? location.hash.slice(1) : 'bitcoin';
try {
const r = await fetch('/min_deposit/' + chain);
const val = parseInt(await r.text(), 10);
const r = await fetch('/ranking_info/' + chain);
const data = await r.json();
const val = parseInt(data.amount, 10);
if (!isNaN(val)) {
const txt = Number(val).toLocaleString('en-US');
document.getElementById('thr-min').textContent = txt;