summaryrefslogtreecommitdiffstats
path: root/web
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
parent4d32c476318e0ec37188616ae96eaa343bb59413 (diff)
downloadroutemon-589be8708a1c06c52c54746caccdedfca18d2cc0.tar.gz
routemon-589be8708a1c06c52c54746caccdedfca18d2cc0.zip
Performance improvements, messy code
Diffstat (limited to 'web')
-rw-r--r--web/index.html9
-rw-r--r--web/index.js13
2 files changed, 15 insertions, 7 deletions
diff --git a/web/index.html b/web/index.html
index fe9529f..877da14 100644
--- a/web/index.html
+++ b/web/index.html
@@ -29,12 +29,9 @@
29 <summary> 29 <summary>
30 <span>Systeeminformatie</span> 30 <span>Systeeminformatie</span>
31 </summary> 31 </summary>
32 <table> 32 <div id="sysinfo-details">
33 <tr> 33 <span>(Nog geen contact gelegd met server.)</span>
34 <td class="help-cursor" title="Publicatietijdstip van ingeladen DATEX II-situatiepublicatie (van NDW)">Situatiepublicatie van</td> 34 </div>
35 <td id="situation-publication-of">&lt;onbekend&gt;</td>
36 </tr>
37 </table>
38 </details> 35 </details>
39 </div> 36 </div>
40 37
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) {