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