From 0f719622fe523cbf922678029f06a5663433372f Mon Sep 17 00:00:00 2001 From: midblep Date: Fri, 25 Jun 2021 21:26:59 +0200 Subject: [PATCH] meow spam <3 --- components/footer.js | 1 - public/js/meow.js | 6 +++--- public/{sound => sounds}/meow.mp3 | Bin 3 files changed, 3 insertions(+), 4 deletions(-) rename public/{sound => sounds}/meow.mp3 (100%) diff --git a/components/footer.js b/components/footer.js index 8a0c695..3369288 100644 --- a/components/footer.js +++ b/components/footer.js @@ -7,7 +7,6 @@ export default function Footer() {
-

Made with by Midblep diff --git a/public/js/meow.js b/public/js/meow.js index 1001a10..73ee2e8 100644 --- a/public/js/meow.js +++ b/public/js/meow.js @@ -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(); }); \ No newline at end of file diff --git a/public/sound/meow.mp3 b/public/sounds/meow.mp3 similarity index 100% rename from public/sound/meow.mp3 rename to public/sounds/meow.mp3