Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
(5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
<noinclude> | <noinclude> | ||
__NOTOC__ | __NOTOC__ | ||
{{#widget:ClubStatus}} | {{#widget:ClubStatus}} | ||
</noinclude><includeonly><script> | |||
</noinclude> | |||
<includeonly> | |||
<script> | |||
(() => { | (() => { | ||
const OPENED_CLASS = 'widget-clubstatus__type--opened'; | const OPENED_CLASS = 'widget-clubstatus__type--opened'; | ||
Zeile 36: | Zeile 26: | ||
function updateClubStatus() { | function updateClubStatus() { | ||
fetch('api/entropia-club-status-json-api.php') | fetch('/api/entropia-club-status-json-api.php') | ||
.then(response => response.json()) | .then(response => response.json()) | ||
.then(data => setClubStatus(data["isOpen"], data["lastChange"])); | .then(data => setClubStatus(data["isOpen"], data["lastChange"])); | ||
Zeile 45: | Zeile 35: | ||
updateClubStatus(); | updateClubStatus(); | ||
})(); | })(); | ||
</script> | </script></includeonly> | ||
</includeonly> |
Aktuelle Version vom 14. März 2024, 12:10 Uhr