From 8720d1f98d0fbcadf4c994a9d787dcd050570dfe Mon Sep 17 00:00:00 2001 From: Algorithm <112772155+Algorithm@users.noreply.github.com> Date: Sat, 17 Feb 2024 13:13:10 +0000 Subject: [PATCH] Add files via upload --- index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.html b/index.html index f60d35f..07c9ea6 100644 --- a/index.html +++ b/index.html @@ -24,14 +24,19 @@ overlayToggle.addEventListener('change', function() { if (this.checked) { overlay.style.display = 'block'; // Show overlay when checked + audio.play(); // Play the audio } else { overlay.style.display = 'none'; // Hide overlay when unchecked + audio.pause(); // Pause the audio } }); }); + + +