From a0fcbf1305981c380e4b79fd2ec388d946ddc363 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Wed, 27 May 2026 01:03:45 -0700 Subject: swap radios --- moe.pinapelz.com/scripts/index.js | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'moe.pinapelz.com/scripts') 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(); -- cgit v1.2.3