Skip to content

Commit

Permalink
Update audiojudge.js
Browse files Browse the repository at this point in the history
  • Loading branch information
xbdrcx committed Jun 12, 2024
1 parent d1e87bb commit 14256c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions audiojudge.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ window.onload = function() {
playButtons[i].addEventListener("click", function() {
if(ligthsPlaying) {
ligthsPlaying = false
playButtons[i].children[0].src = "../icons/play-white.ico"
playButtons[i].children[0].src = "icons/play-white.ico"
player.pause();
} else {
ligthsPlaying = true
playButtons[i].children[0].src = "../icons/pause-white.ico"
playButtons[i].children[0].src = "icons/pause-white.ico"
player.play();
renderFrame();
}
Expand All @@ -166,7 +166,7 @@ window.onload = function() {
player.addEventListener("ended", function() {
ligthsPlaying = false
for (let i=0; i < playButtons.length; i++) {
playButtons[i].children[0].src = "../icons/play-white.ico"
playButtons[i].children[0].src = "icons/play-white.ico"
}
if(!menuState) {
menuState = true
Expand Down

0 comments on commit 14256c2

Please sign in to comment.