We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8720d1f commit 90aeb73Copy full SHA for 90aeb73
1 file changed
index.html
@@ -24,9 +24,11 @@
24
overlayToggle.addEventListener('change', function() {
25
if (this.checked) {
26
overlay.style.display = 'block'; // Show overlay when checked
27
+ audio.volume = 0.2; // Set volume to 20%
28
audio.play(); // Play the audio
29
} else {
30
overlay.style.display = 'none'; // Hide overlay when unchecked
31
32
audio.pause(); // Pause the audio
33
}
34
});
0 commit comments