diff --git a/static/audioplayer.js b/static/audioplayer.js index 004e4d4..5044457 100644 --- a/static/audioplayer.js +++ b/static/audioplayer.js @@ -1,7 +1,6 @@ const playerButton = document.querySelector('.player-button'), audio = document.querySelector('audio'), timeline = document.querySelector('.timeline'), - soundButton = document.querySelector('.sound-button'), timeInfo = document.getElementById('timeInfo'), playIcon = ` @@ -17,12 +16,7 @@ const playerButton = document.querySelector('.player-button'), - `, - muteIcon = ` - - - - `; + ` function toggleAudio () { if (audio.paused) { @@ -76,13 +70,6 @@ function changeSeek() { audio.currentTime = timeline.value; } -// --- Sound toggle --- -function toggleSound () { - audio.muted = !audio.muted; - soundButton.innerHTML = audio.muted ? muteIcon : soundIcon; -} -soundButton.addEventListener('click', toggleSound); - // --- Utility: Format seconds as mm:ss --- function formatTime(seconds) { const minutes = Math.floor(seconds / 60); diff --git a/templates/app.html b/templates/app.html index e26f2b6..44caf98 100644 --- a/templates/app.html +++ b/templates/app.html @@ -70,11 +70,6 @@
-