Skip to content

Commit

Permalink
fix: make value 0 of progress-bar while changing song
Browse files Browse the repository at this point in the history
  • Loading branch information
MariyaShusharina committed Sep 22, 2024
1 parent 19a8d53 commit a57f2d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ function nextSong() {

currTimeDiv.textContent = songTime;
maxTimeDiv.textContent = songMaxTime;

progressBar.value = 0;
}

function prevSong() {
Expand Down Expand Up @@ -162,6 +164,8 @@ function prevSong() {

currTimeDiv.textContent = songTime;
maxTimeDiv.textContent = songMaxTime;

progressBar.value = 0;
}

function songTimeChange(value) {
Expand Down

0 comments on commit a57f2d3

Please sign in to comment.