diff options
author | Minteck <contact@minteck.org> | 2021-12-05 16:38:49 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2021-12-05 16:38:49 +0100 |
commit | 879a6237b186768356f99caf992f0d25d5ec8612 (patch) | |
tree | 733aacd4845e918b484d8f46951d925f05f91b4c /js/home.js | |
parent | 4bad8bcfb984cf017495b8fd31f174c32cebe805 (diff) | |
download | core-879a6237b186768356f99caf992f0d25d5ec8612.tar.gz core-879a6237b186768356f99caf992f0d25d5ec8612.tar.bz2 core-879a6237b186768356f99caf992f0d25d5ec8612.zip |
Commit
Diffstat (limited to 'js/home.js')
-rw-r--r-- | js/home.js | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -1,12 +1,12 @@ -setInterval(() => { - window.fetch("/app/radio/song.php").then((raw) => { - raw.text().then((text) => { - document.getElementById('radio-now').innerText = text; - }) - }) - window.fetch("/app/radio/next.php").then((raw) => { - raw.text().then((text) => { - document.getElementById('radio-next').innerText = text; - }) - }) +setInterval(() => {
+ window.fetch("/app/radio/song.php").then((raw) => {
+ raw.text().then((text) => {
+ document.getElementById('radio-now').innerText = text;
+ })
+ })
+ window.fetch("/app/radio/next.php").then((raw) => {
+ raw.text().then((text) => {
+ document.getElementById('radio-next').innerText = text;
+ })
+ })
}, 2000)
\ No newline at end of file |