parent
33b0dd85f0
commit
0f719622fe
@ -1,6 +1,6 @@
|
|||||||
const soundBtn = document.querySelector('#clickMeow');
|
const soundBtn = document.querySelector('#clickMeow');
|
||||||
let myAudio = document.querySelector('#meow');
|
|
||||||
soundBtn.addEventListener('click',() => {
|
soundBtn.addEventListener('click',() => {
|
||||||
myAudio.volume = 0.1;
|
let meow = new Audio("/sounds/meow.mp3");
|
||||||
myAudio.play();
|
meow.volume = 0.1;
|
||||||
|
meow.play();
|
||||||
});
|
});
|
Loading…
Reference in new issue