Skip to content

Commit

Permalink
Merge branch 'main' into 70-use-json-preprocessed-data
Browse files Browse the repository at this point in the history
  • Loading branch information
FredTheNoob authored Nov 24, 2023
2 parents a476aa8 + 57576ce commit ea50934
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
<script>
const background = document.getElementById('background')
const audio = document.getElementById("important")
let playing = false
background.onclick = () => {
if (playing) {
background.addEventListener("click", function() {
if (!audio.paused) {
audio.pause()
playing = false
} else
audio.play()
playing = true
}
})
</script>

0 comments on commit ea50934

Please sign in to comment.