Tia ‹𝟹

wander + wonder
🇹🇭→ 🇺🇸🇯🇵🇰🇷🇬🇧🏴󠁧󠁢󠁳󠁣󠁴󠁿🇭🇰🇸🇬🇲🇽🇶🇦🇦🇪
sony a7 iv but mostly iphone

♡ ∩_∩
(„• ֊ •„)♡
| ̄U U ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄|
| ‧ܸ ⁺→ x.com/tinkertiaa ⏦゚ ♡︎
 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄

document.addEventListener('DOMContentLoaded', (event) => { const audio = document.getElementById('myMusic'); const playButton = document.querySelector('.playy'); const pauseButton = document.querySelector('.pausee'); const nextButton = document.querySelector('.next'); const prevButton = document.querySelector('.prev'); const songs = [ "https://dl.dropbox.com/scl/fi/yoxfex8g8ke7pq4i4vb5g/audio_XY8phA87.mp3?rlkey=53bde71bgsqxcinqzrfhzz3yc&e=1&st=92h5gyps&dl=0", "https://dl.dropbox.com/scl/fi/yoxfex8g8ke7pq4i4vb5g/audio_XY8phA87.mp3?rlkey=53bde71bgsqxcinqzrfhzz3yc&e=1&st=92h5gyps&dl=0", "https://dl.dropbox.com/scl/fi/yoxfex8g8ke7pq4i4vb5g/audio_XY8phA87.mp3?rlkey=53bde71bgsqxcinqzrfhzz3yc&e=1&st=92h5gyps&dl=0" ]; let currentSongIndex = 0; // Attempt to auto play the music audio.play().catch(() => { // Autoplay failed due to browser restrictions playButton.style.display = 'block'; pauseButton.style.display = 'none'; }); // Toggle play/pause on button click playButton.addEventListener('click', () => { audio.play(); playButton.style.display = 'none'; pauseButton.style.display = 'block'; }); pauseButton.addEventListener('click', () => { audio.pause(); playButton.style.display = 'block'; pauseButton.style.display = 'none'; }); // Ensure correct button is shown based on playback state audio.addEventListener('play', () => { playButton.style.display = 'none'; pauseButton.style.display = 'block'; }); audio.addEventListener('pause', () => { playButton.style.display = 'block'; pauseButton.style.display = 'none'; }); // Switch to the next song when the current one ends audio.addEventListener('ended', () => { currentSongIndex = (currentSongIndex + 1) % songs.length; audio.src = songs[currentSongIndex]; audio.play(); }); // Play next song on next button click nextButton.addEventListener('click', () => { currentSongIndex = (currentSongIndex + 1) % songs.length; audio.src = songs[currentSongIndex]; audio.play(); }); // Play previous song on prev button click prevButton.addEventListener('click', () => { currentSongIndex = (currentSongIndex - 1 + songs.length) % songs.length; audio.src = songs[currentSongIndex]; audio.play(); }); });

all photographs on this site are my original work unauthorized use is strictly prohibited