From b24252c8104e631d016d2a204ef933697199234a Mon Sep 17 00:00:00 2001 From: TheErrorExe Date: Sat, 22 Feb 2025 21:55:48 +0100 Subject: [PATCH] streaming plan --- drmifo/index.html | 7 +++---- drmifo/schedule.json | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 drmifo/schedule.json diff --git a/drmifo/index.html b/drmifo/index.html index 18b7272..c08e072 100644 --- a/drmifo/index.html +++ b/drmifo/index.html @@ -112,7 +112,7 @@ Tag Zeit - Spiel + Extra-Infos @@ -144,14 +144,13 @@ }, { threshold: 0.3 }); cards.forEach(card => observer.observe(card)); - // Streaming-Plan aus JSON laden - fetch("schedule.json") + fetch("/schedule.json") .then(response => response.json()) .then(data => { const table = document.getElementById("scheduleTable"); data.forEach(event => { const row = document.createElement("tr"); - row.innerHTML = `${event.tag}${event.zeit}${event.spiel}`; + row.innerHTML = `${event.tag}${event.zeit}${event.infos}`; table.appendChild(row); }); }) diff --git a/drmifo/schedule.json b/drmifo/schedule.json new file mode 100644 index 0000000..7be5449 --- /dev/null +++ b/drmifo/schedule.json @@ -0,0 +1,22 @@ +[ + { + "tag": "Montag", + "zeit": "18:00 - 20:00", + "infos": "Blockattack Road to " + }, + { + "tag": "Mittwoch", + "zeit": "19:00 - 21:00", + "infos": "Minecraft" + }, + { + "tag": "Freitag", + "zeit": "20:00 - 22:00", + "infos": "Minecraft" + }, + { + "tag": "Sonntag", + "zeit": "15:00 - 18:00", + "infos": "kein minecraft" + } +]