dynamic naming

This commit is contained in:
Thies Mueller
2026-06-20 00:40:59 +02:00
parent 03e1c48832
commit 48d7e8ffa3
3 changed files with 19 additions and 5 deletions
+12
View File
@@ -3,12 +3,24 @@ let resultsData = {};
let messageData = {};
document.addEventListener("DOMContentLoaded", () => {
initAppUI();
initTabs();
loadData();
setInterval(loadData, CONFIG.REFRESH_INTERVAL);
});
function initAppUI() {
const fullTitle = `${CONFIG.EVENT_NAME} Rennplan & Ergebnisse`;
document.title = fullTitle;
const titleEl = document.getElementById("app-title");
if (titleEl) {
titleEl.textContent = fullTitle;
}
}
function initTabs() {
const rennplanBtn = document.getElementById("tab-rennplan");
const resultsBtn = document.getElementById("tab-ergebnisse");