Server page restyled in the site's look

- Header with back button, server card with status badge, Listing card (expiry, days left, renewal window), Activity tiles, WeTime table in the home style
- Inline CSS only; qrcode.min.js dropped (unused); bal.js pager renders prev / page / next buttons
This commit is contained in:
2026-11-06 19:29:36 +01:00
parent 40d9b4ed80
commit 5bc502b0ea
2 changed files with 269 additions and 117 deletions

21
bal.js
View File

@@ -76,18 +76,19 @@ async function fetchDataAndPopulateTable(url,params,fnPopulateTable,downloadOpt,
function make_paginator(){
document.getElementById("chainth").innerHTML = chain;
const pag = document.getElementById("paginator");
pag.appendChild(document.createTextNode("_"));
pag.innerHTML = "";
// prev (a plain, dimmed arrow on the first page), "page N", next
if (page > 0) {
pag.appendChild(createlink("<","?page="+paginator.prev));
pag.appendChild(createlink("&lsaquo;","?page="+paginator.prev));
} else {
const off = document.createElement("span");
off.className = "pg-off"; off.innerHTML = "&lsaquo;";
pag.appendChild(off);
}
else{
pag.appendChild(document.createTextNode("<"));
}
pag.appendChild(document.createTextNode("_"));
pag.appendChild(document.createTextNode(page));
pag.appendChild(document.createTextNode("_"));
pag.appendChild(createlink(">","?page="+paginator.next));
const lbl = document.createElement("span");
lbl.className = "pg-label"; lbl.textContent = "page " + page;
pag.appendChild(lbl);
pag.appendChild(createlink("&rsaquo;","?page="+paginator.next));
}
}