diff options
Diffstat (limited to 'app/cdn/js/home.js')
-rw-r--r-- | app/cdn/js/home.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/cdn/js/home.js b/app/cdn/js/home.js new file mode 100644 index 0000000..d875860 --- /dev/null +++ b/app/cdn/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 |