Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatilekha-Roy authored Apr 28, 2023
1 parent 66e87d3 commit 4cd987f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
function handleMouseUp() {
// Add code here
}

function handleMouseDown() {
// Add code here
}

// Select all buttons and store inside the variable
var buttons = document.querySelectorAll("button");
buttons.forEach(function (btn, index) {
Expand Down Expand Up @@ -68,7 +60,7 @@ function playLPSound(e) {
var thisbutton = this;
var i = parseInt(thisbutton.getAttribute("sound"));
thisbutton.classList.add("pressed");
if (!soundEffects[i].playing()) {
if (soundEffects[i].playing() != true) {
soundEffects[i].play();
}
}
Expand Down

0 comments on commit 4cd987f

Please sign in to comment.