diff options
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 |