diff options
Diffstat (limited to 'js/home.js')
-rw-r--r-- | js/home.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/home.js b/js/home.js new file mode 100644 index 0000000..7751ae9 --- /dev/null +++ b/js/home.js @@ -0,0 +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; + }) + }) +}, 2000)
\ No newline at end of file |