summaryrefslogtreecommitdiffstats
path: root/moe.pinapelz.com/scripts/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'moe.pinapelz.com/scripts/index.js')
-rw-r--r--moe.pinapelz.com/scripts/index.js21
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();
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage