Skip to content

Commit 8720d1f

Browse files
authored
Add files via upload
1 parent d76314b commit 8720d1f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,19 @@
2424
overlayToggle.addEventListener('change', function() {
2525
if (this.checked) {
2626
overlay.style.display = 'block'; // Show overlay when checked
27+
audio.play(); // Play the audio
2728
} else {
2829
overlay.style.display = 'none'; // Hide overlay when unchecked
30+
audio.pause(); // Pause the audio
2931
}
3032
});
3133
});
3234

3335
</script>
3436

37+
<!-- Embedding the MP3 file -->
38+
<audio id="audio" src="./assets/audio/terminal_sounds.mp3"></audio>
39+
3540
<!--
3641
3742
.dXWMMMMMMMMWXd.

0 commit comments

Comments
 (0)