kontakt: [email protected]
Widżet:Icecast: Różnice pomiędzy wersjami
Przejdź do nawigacji
Przejdź do wyszukiwania
Utworzono nową stronę "<includeonly><script> let fetchRadioData = () => { let url = "<!--{$url|escape:'javascript'|default:'https://c16.radioboss.fm:18014/status-json.xsl'}-->"; let elementID = "<!--{$metadataElementID|escape:'javascript'}-->"; fetch(url).then(response => response.json()).then(json => { document.getElementById(elementID).innerText = json.icestats.source.reduce(s => s.title); }); }; window.addEventListener("load", (…" |
Nie podano opisu zmian |
||
Linia 8: | Linia 8: | ||
}; | }; | ||
window.addEventListener(" | window.addEventListener("DOMContentLoaded", () => { | ||
fetchRadioData(); | fetchRadioData(); | ||
setInterval(fetchRadioData, 5000); | setInterval(fetchRadioData, 5000); | ||
}); | }); | ||
</script></includeonly><noinclude><pre>{{#widget:Icecast|url=<status-json.xsl url>|metadatElementID=<id>}}</pre></noinclude> | </script></includeonly><noinclude><pre>{{#widget:Icecast|url=<status-json.xsl url>|metadatElementID=<id>}}</pre></noinclude> |
Aktualna wersja na dzień 23:39, 7 kwi 2025
{{#widget:Icecast|url=<status-json.xsl url>|metadatElementID=<id>}}