Keine Bearbeitungszusammenfassung |
(Update API format 2) |
||
(2 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 2: | Zeile 2: | ||
__NOTOC__ | __NOTOC__ | ||
{{#widget:ClubStatus}} | {{#widget:ClubStatus}} | ||
</noinclude> | </noinclude><includeonly><script> | ||
<includeonly> | |||
<script> | |||
(() => { | (() => { | ||
const OPENED_CLASS = 'widget-clubstatus__type--opened'; | const OPENED_CLASS = 'widget-clubstatus__type--opened'; | ||
Zeile 31: | Zeile 28: | ||
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[" | .then(data => setClubStatus(data["state"]["open"], data["state"]["lastchange"])); | ||
} | } | ||
Zeile 38: | Zeile 35: | ||
updateClubStatus(); | updateClubStatus(); | ||
})(); | })(); | ||
</script> | </script></includeonly> | ||
</includeonly> |
Aktuelle Version vom 6. April 2025, 20:31 Uhr