meow spam <3

main
Midnight 3 years ago
parent 33b0dd85f0
commit 0f719622fe

@ -7,7 +7,6 @@ export default function Footer() {
<div>
<div className={styles.footer}>
<div className="container">
<audio src="/sound/meow.mp3" id="meow" preload="auto"></audio>
<p>
<b>
Made with <FontAwesomeIcon icon={faHeart} style={{color: "#63C5DA"}} size="1x" id="clickMeow" /> by <a href="https://twitter.com/midblep" className="link" target="_blank">Midblep</a>

@ -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…
Cancel
Save