button sucked, no longer
This commit is contained in:
parent
aca1357128
commit
1c3460baab
2 changed files with 18 additions and 18 deletions
|
|
@ -604,7 +604,7 @@ function openMusicLightbox(index) {
|
|||
durationDisplay.textContent = track.duration ? formatTime(track.duration) : '0:00';
|
||||
|
||||
// Set play buttons to play state
|
||||
playIcon2.textContent = '▶';
|
||||
playIcon2.textContent = '▶️';
|
||||
|
||||
// Create audio player
|
||||
musicPlayer = new Audio(track.url);
|
||||
|
|
@ -641,7 +641,7 @@ function playMusic() {
|
|||
|
||||
musicPlayer.play()
|
||||
.then(() => {
|
||||
document.getElementById('musicPlayIcon2').textContent = '⏸';
|
||||
document.getElementById('musicPlayIcon2').textContent = '⏸️';
|
||||
})
|
||||
.catch(e => {
|
||||
console.log('Playback prevented:', e);
|
||||
|
|
@ -652,7 +652,7 @@ function playMusic() {
|
|||
function pauseMusic() {
|
||||
if (!musicPlayer) return;
|
||||
musicPlayer.pause();
|
||||
document.getElementById('musicPlayIcon2').textContent = '▶';
|
||||
document.getElementById('musicPlayIcon2').textContent = '▶️';
|
||||
}
|
||||
|
||||
// Toggle play/pause
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue