aboutsummaryrefslogtreecommitdiff
path: root/js/home.js
diff options
context:
space:
mode:
authorMinteck <minteck@phoenixnet.tech>2021-10-31 11:49:13 +0100
committerMinteck <minteck@phoenixnet.tech>2021-10-31 11:49:13 +0100
commite8e6a0906702dc7b569ef4f0b2d9486d772ba562 (patch)
treefb1361db2820ee7182c5023f6fa03237c8f46367 /js/home.js
downloadcore-e8e6a0906702dc7b569ef4f0b2d9486d772ba562.tar.gz
core-e8e6a0906702dc7b569ef4f0b2d9486d772ba562.tar.bz2
core-e8e6a0906702dc7b569ef4f0b2d9486d772ba562.zip
Initial commit
Diffstat (limited to 'js/home.js')
-rw-r--r--js/home.js12
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