diff options
Diffstat (limited to 'web')
| -rw-r--r-- | web/index.html | 9 | ||||
| -rw-r--r-- | web/index.js | 13 |
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"><onbekend></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 @@ | |||
| 1 | const apiBaseUrl = "https://routemon-api.fautchen.eu"; | 1 | const apiBaseUrl = "https://routemon-api.fautchen.eu"; |
| 2 | // const apiBaseUrl = "http://localhost:8284"; | ||
| 2 | 3 | ||
| 3 | const dialog = document.querySelector("dialog"); | 4 | const dialog = document.querySelector("dialog"); |
| 4 | const closeButton = document.querySelector("dialog button"); | 5 | const 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 | ||
| 93 | async function load(gpxFile) { | 104 | async function load(gpxFile) { |