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 } }); }); + + +