forked from bitcoinafterlife/bal-welist-website
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:
21
bal.js
21
bal.js
@@ -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("‹","?page="+paginator.prev));
|
||||
} else {
|
||||
const off = document.createElement("span");
|
||||
off.className = "pg-off"; off.innerHTML = "‹";
|
||||
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("›","?page="+paginator.next));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user