diff --git a/app.js b/app.js index 41a61e7..52eca37 100644 --- a/app.js +++ b/app.js @@ -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"); diff --git a/config.example.js b/config.example.js index a23b683..93ce18b 100644 --- a/config.example.js +++ b/config.example.js @@ -1,7 +1,9 @@ const CONFIG = { - RESULTS_URL: "https://example.com/api/results", - RENNPLAN_URL: "https://example.com/api/rennplan", - MESSAGE_URL: "https://example.com/api/message", + EVENT_NAME: "Beispiel Regatta", + + RESULTS_URL: "https://api.demo.regattatech.de/api/v1/results/current", + RENNPLAN_URL: "https://api.demo.regattatech.de/api/v1/rennplan/current", + MESSAGE_URL: "https://api.demo.regattatech.de/api/v1/message", REFRESH_INTERVAL: 30000 // 30 Sekunden }; \ No newline at end of file diff --git a/index.html b/index.html index d35a485..64eb670 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@
-