Skip to content

Commit

Permalink
Final commit
Browse files Browse the repository at this point in the history
Forgot to delete unused bits of code.
  • Loading branch information
StevieBrooks authored Jan 18, 2023
1 parent c657231 commit 6f448b0
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ function playMusic() {
music.play();
}

// setTimeout( () => {
// music.src = 'audio/song.mp3';
// music.play();
// }, 2000);


const toggleSound = document.querySelector('.toggle-sound');
let soundStatus = false;
toggleSound.addEventListener('click', () => {
Expand All @@ -41,19 +35,6 @@ toggleSound.addEventListener('click', () => {
toggleSound.innerHTML = 'Sound On';
}
})
// let soundStatus = true;
// toggleSound.addEventListener('click', soundOff);
// function soundOff() {
// soundStatus = false;
// if(music.paused && music.currentTime > 0 && !music.ended) {
// music.play();
// soundStatus = true;
// } else if(music.ended) {
// music.play();
// } else {
// music.pause();
// }
// }

// SCOREBOX
const scoreBox = document.querySelector('.score-box');
Expand Down

0 comments on commit 6f448b0

Please sign in to comment.