dynamic naming
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user