diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-05-27 01:03:45 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-05-27 01:03:45 -0700 |
| commit | a0fcbf1305981c380e4b79fd2ec388d946ddc363 (patch) | |
| tree | 2fe95c52aafb382b8183ef444a2355103854cf3f /moe.pinapelz.com/scripts | |
| parent | 36e053f4f0a2f63c08f7c28b9492c067f1ca42bc (diff) | |
swap radios
Diffstat (limited to 'moe.pinapelz.com/scripts')
| -rw-r--r-- | moe.pinapelz.com/scripts/index.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/moe.pinapelz.com/scripts/index.js b/moe.pinapelz.com/scripts/index.js index dbd7ade..b59b827 100644 --- a/moe.pinapelz.com/scripts/index.js +++ b/moe.pinapelz.com/scripts/index.js @@ -104,26 +104,5 @@ document.addEventListener("DOMContentLoaded", () => { }); }); -document.addEventListener('DOMContentLoaded', function() { - function fetchNowPlaying() { - fetch('https://a4.asurahosting.com/api/nowplaying_static/patchworkarchive.json') // Replace with the actual API endpoint - .then(response => response.json()) - .then(data => { - const nowPlaying = data.now_playing.song; - document.getElementById('song-title').textContent = nowPlaying.title; - document.getElementById('song-artist').textContent = nowPlaying.artist; - const songArt = document.getElementById('song-art'); - songArt.src = nowPlaying.art; - songArt.style.display = 'block'; - }) - .catch(error => { - console.error('Error fetching now playing data:', error); - }); - } - - fetchNowPlaying(); - setInterval(fetchNowPlaying, 60000); -}); - setInterval(updateClock, 1000); updateClock(); |
