test: pop sound

This commit is contained in:
Aliberk Sandıkçı 2023-11-29 16:16:06 +03:00
parent ef39a4966d
commit a4cbb6bfa9
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1
2 changed files with 6 additions and 0 deletions

Binary file not shown.

View file

@ -193,6 +193,7 @@
<form>
<button id="localtest" type="button" onmouseover="Localtest(0)" onclick="Localtest(0)">TEST</button>
<button id="yazdir" type="button" onmouseover="Localtest(1)" onclick="Localtest(1)">Yazdır</button>
<button id="popsound" type="button" onmouseover="Popsound()" onclick="Popsound()">POP SOUND</button>
</form>
<div id="DEV" style="font-size: x-small;"></div>
<div id="rainbow"></div>
@ -214,6 +215,11 @@
}
}
}
function Popsound() {
var audio = new Audio('./assets/pop.mp3');
audio.play();
}
</script>
<script src="./assets/js/utils.js"></script>