summaryrefslogtreecommitdiffstats
path: root/web/index.js
diff options
context:
space:
mode:
authorRutger Broekhoff2026-08-30 00:39:45 +0200
committerRutger Broekhoff2026-08-30 00:39:45 +0200
commit589be8708a1c06c52c54746caccdedfca18d2cc0 (patch)
treea240accace56062fe38742c055a22989559890cb /web/index.js
parent4d32c476318e0ec37188616ae96eaa343bb59413 (diff)
downloadroutemon-589be8708a1c06c52c54746caccdedfca18d2cc0.tar.gz
routemon-589be8708a1c06c52c54746caccdedfca18d2cc0.zip
Performance improvements, messy code
Diffstat (limited to 'web/index.js')
-rw-r--r--web/index.js13
1 files changed, 12 insertions, 1 deletions
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 @@
1const apiBaseUrl = "https://routemon-api.fautchen.eu"; 1const apiBaseUrl = "https://routemon-api.fautchen.eu";
2// const apiBaseUrl = "http://localhost:8284";
2 3
3const dialog = document.querySelector("dialog"); 4const dialog = document.querySelector("dialog");
4const closeButton = document.querySelector("dialog button"); 5const closeButton = document.querySelector("dialog button");
@@ -87,7 +88,17 @@ async function getSysinfo() {
87 } 88 }
88 89
89 const res = await rsp.json(); 90 const res = await rsp.json();
90 document.getElementById("situation-publication-of").innerText = new Date(res.using_publication_of).toLocaleString(); 91 let rows = [
92 [el("span", { "class": "help-cursor",
93 "title": "Publicatietijdstip van ingeladen DATEX II-situatiepublicatie (van NDW)" },
94 txt("Situatiepublicatie van")),
95 txt(new Date(res.using_publication_of).toLocaleString())],
96 [txt("Grootte LSE-index"),
97 txt(res.lse_index_size.toString())],
98 [txt("Grootte puntenindex"),
99 txt(res.p_index_size.toString())],
100 ];
101 document.getElementById("sysinfo-details").replaceChildren(tbl(rows));
91} 102}
92 103
93async function load(gpxFile) { 104async function load(gpxFile) {