Skip to content

Commit

Permalink
🩹 fix: fix embeded audio extension & improve a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
ShayanTheNerd committed Dec 31, 2023
1 parent 520ad13 commit 66f74a5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,9 @@ <h1 class="mb-2 text-center text-2xl font-bold tracking-wider text-turquoise dur
inert
class="flex min-h-[418px] select-none overflow-auto rounded-2xl bg-turquoise p-3.5 duration-500 dark:bg-zinc-900">
<!-- Keyboard keypress audio -->
<audio id="keySound" preload="auto">
<audio hidden aria-hidden="true" id="keySound" preload="auto">
<source src="./assets/audios/keypress-sound.wav" type="audio/wav" />
<source src="./assets/audios/keypress-sound.mp3" type="audio/mpeg" />
Your browser does not supprot the audio element.
<source src="./assets/audios/keypress-sound.mp3" type="audio/mp3" />
</audio>

<div id="keyboard" class="flex flex-col gap-3 rounded-inherit"></div>
Expand Down

0 comments on commit 66f74a5

Please sign in to comment.