From 589be8708a1c06c52c54746caccdedfca18d2cc0 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Sun, 30 Aug 2026 00:39:45 +0200 Subject: Performance improvements, messy code --- web/index.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'web/index.js') diff --git a/web/index.js b/web/index.js index 1c2e34d..999e333 100644 --- a/web/index.js +++ b/web/index.js @@ -1,4 +1,5 @@ const apiBaseUrl = "https://routemon-api.fautchen.eu"; +// const apiBaseUrl = "http://localhost:8284"; const dialog = document.querySelector("dialog"); const closeButton = document.querySelector("dialog button"); @@ -87,7 +88,17 @@ async function getSysinfo() { } const res = await rsp.json(); - document.getElementById("situation-publication-of").innerText = new Date(res.using_publication_of).toLocaleString(); + let rows = [ + [el("span", { "class": "help-cursor", + "title": "Publicatietijdstip van ingeladen DATEX II-situatiepublicatie (van NDW)" }, + txt("Situatiepublicatie van")), + txt(new Date(res.using_publication_of).toLocaleString())], + [txt("Grootte LSE-index"), + txt(res.lse_index_size.toString())], + [txt("Grootte puntenindex"), + txt(res.p_index_size.toString())], + ]; + document.getElementById("sysinfo-details").replaceChildren(tbl(rows)); } async function load(gpxFile) { -- cgit v1.3