We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d76314b commit 8720d1fCopy full SHA for 8720d1f
1 file changed
index.html
@@ -24,14 +24,19 @@
24
overlayToggle.addEventListener('change', function() {
25
if (this.checked) {
26
overlay.style.display = 'block'; // Show overlay when checked
27
+ audio.play(); // Play the audio
28
} else {
29
overlay.style.display = 'none'; // Hide overlay when unchecked
30
+ audio.pause(); // Pause the audio
31
}
32
});
33
34
35
</script>
36
37
+<!-- Embedding the MP3 file -->
38
+<audio id="audio" src="./assets/audio/terminal_sounds.mp3"></audio>
39
+
40
<!--
41
42
.dXWMMMMMMMMWXd.
0 commit comments