My Lord - Estelle!
Artist/Writer - G'raha Enthusiast
Closing the Distance
An FFXIV Long Fic Comic
Closing the Distance
The Characters
Closing the Distance
Episodes
Closing the Distance
Prologue - Ishtar Meets Dumuzi
Closing the Distance
Ancients
Dumuzi
const songs = [ { title: "Can You Feel My Heart", url: "https://foldr.space/api/view/cccc5856b1304ec2/Bring%20Me%20The%20Horizon%20-%20Can%20You%20Feel%20My%20Heart%20(Lyrics)%20(mp3cut.net).mp3", }, { title: "Psychofreak", url: "https://foldr.space/api/view/db82e53365574eb7/Camila%20Cabello%20-%20psychofreak%20(Letra_Lyrics)%20ft.%20WILLOW%20(mp3cut.net).mp3", }, { title: "Bury Me", url: "https://foldr.space/api/view/ed62c1588c3448b1/Nate%20Vickers%20-%20Bury%20Me%20(Acoustic)%20(mp3cut.net).mp3", }, ]; const audioPlayer = document.getElementById("audio-player"); const playPauseBtn = document.getElementById("play-pause-btn"); // Core event handler attached straight to the layout button playPauseBtn.addEventListener("click", togglePlayPause); function playRandomTrack() { const randomIndex = Math.floor(Math.random() * songs.length); const selectedSong = songs[randomIndex]; audioPlayer.src = selectedSong.url; audioPlayer.play(); // Synced state directly with your layout's built-in CSS rules playPauseBtn.setAttribute("aria-pressed", "true"); playPauseBtn.setAttribute("aria-label", "Pause"); } function togglePlayPause() { if (audioPlayer.paused) { if (!audioPlayer.src || audioPlayer.src === window.location.href) { playRandomTrack(); } else { audioPlayer.play(); playPauseBtn.setAttribute("aria-pressed", "true"); playPauseBtn.setAttribute("aria-label", "Pause"); } } else { audioPlayer.pause(); playPauseBtn.setAttribute("aria-pressed", "false"); playPauseBtn.setAttribute("aria-label", "Play"); } } // Automatically play another random track when the current one finishes audioPlayer.addEventListener("ended", playRandomTrack);