mirror of
https://github.com/TheErrorExe/blockattack
synced 2025-09-06 05:20:59 +02:00
streaming plan
This commit is contained in:
parent
ea7b26cbff
commit
b24252c810
@ -112,7 +112,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Tag</th>
|
<th>Tag</th>
|
||||||
<th>Zeit</th>
|
<th>Zeit</th>
|
||||||
<th>Spiel</th>
|
<th>Extra-Infos</th>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
@ -144,14 +144,13 @@
|
|||||||
}, { threshold: 0.3 });
|
}, { threshold: 0.3 });
|
||||||
cards.forEach(card => observer.observe(card));
|
cards.forEach(card => observer.observe(card));
|
||||||
|
|
||||||
// Streaming-Plan aus JSON laden
|
fetch("/schedule.json")
|
||||||
fetch("schedule.json")
|
|
||||||
.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.spiel}</td>`;
|
row.innerHTML = `<td>${event.tag}</td><td>${event.zeit}</td><td>${event.infos}</td>`;
|
||||||
table.appendChild(row);
|
table.appendChild(row);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
22
drmifo/schedule.json
Normal file
22
drmifo/schedule.json
Normal file
@ -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"
|
||||||
|
}
|
||||||
|
]
|
Loading…
x
Reference in New Issue
Block a user