diff options
| -rw-r--r-- | moe.pinapelz.com/index.html | 12 | ||||
| -rw-r--r-- | moe.pinapelz.com/scripts/index.js | 21 |
2 files changed, 4 insertions, 29 deletions
diff --git a/moe.pinapelz.com/index.html b/moe.pinapelz.com/index.html index bd634d2..05ba3b6 100644 --- a/moe.pinapelz.com/index.html +++ b/moe.pinapelz.com/index.html @@ -63,7 +63,7 @@ <div class="header"> <div class="header-content"> <div class="marquee"> - <span>welcome to pinapelz.moe</span> + <span>welcome to moe.pinapelz.com</span> </div> <div class="header-animation"> <img @@ -191,23 +191,19 @@ <div class="general-section flex flex-col xl:flex-row gap-4 xl:gap-6 mb-6"> <div id="music-player" class="music-player w-full xl:flex-1"> - <h3 class="text-lg font-bold mb-3">Patchwork Radio</h3> + <h3 class="text-lg font-bold mb-3">Listen.MOE Radio</h3> <audio controls class="w-full mb-3"> <source - src="https://a4.asurahosting.com/listen/patchworkarchive/radio.mp3" + src="https://listen.moe/fallback" type="audio/mpeg" /> Your browser does not support the audio element. </audio> <div id="now-playing" class="now-playing text-center"> <h4 class="font-bold">Now Playing:</h4> - <p id="song-title" class="text-sm">Loading... 123</p> <p id="song-artist" class="text-sm mb-2"> - plz be patient. radio might be down + enjoy some jpop from listen.moe cause i had to take down the vtuber radio :( </p> - <a href="https://patchwork.moekyun.me/radio" class="text-sm hover:underline" - >Powered by Patchwork Archive</a - > </div> </div> <div class="w-full xl:w-auto xl:flex-shrink-0 text-center"> 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(); |
