This commit is contained in:
2025-09-27 20:49:58 +02:00
commit 767fb638ce
58 changed files with 6724 additions and 0 deletions

16
static/js/events.js Normal file
View File

@@ -0,0 +1,16 @@
function reloadEvents() {
fetch(apiEventsUrl)
.then(r => r.json())
.then(events => {
let tbody = document.getElementById('events-tbody');
tbody.innerHTML = "";
for (let e of events) {
let tr = document.createElement('tr');
tr.innerHTML = `<td>${e.timestamp}</td><td>${e.message}</td>`;
tbody.appendChild(tr);
}
});
}
setInterval(reloadEvents, 10000);
window.onload = reloadEvents;