Update index.html

This commit is contained in:
TheErrorExe 2025-02-22 22:25:58 +01:00 committed by GitHub
parent 8359f4b14f
commit 8ca2ed5100
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -145,17 +145,18 @@
}, { threshold: 0.3 }); }, { threshold: 0.3 });
cards.forEach(card => observer.observe(card)); cards.forEach(card => observer.observe(card));
fetch("/drmifo/schedule.json") fetch("/drmifo/schedule.json?nocache=" + new Date().getTime())
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
const table = document.getElementById("scheduleTable"); const table = document.getElementById("scheduleTable");
data.forEach(event => { data.forEach(event => {
const row = document.createElement("tr"); const row = document.createElement("tr");
row.innerHTML = `<td>${event.tag}</td><td>${event.zeit}</td><td>${event.infos}</td>`; row.innerHTML = `<td>${event.tag}</td><td>${event.zeit}</td><td>${event.infos}</td>`;
table.appendChild(row); table.appendChild(row);
}); });
}) })
.catch(error => console.error("Fehler beim Laden des Streaming-Plans:", error)); .catch(error => console.error("Fehler beim Laden des Streaming-Plans:", error));
</script> </script>
</body> </body>
</html> </html>