meow spam <3

main
Midnight 4 years ago
parent 33b0dd85f0
commit 0f719622fe

@ -7,7 +7,6 @@ export default function Footer() {
<div> <div>
<div className={styles.footer}> <div className={styles.footer}>
<div className="container"> <div className="container">
<audio src="/sound/meow.mp3" id="meow" preload="auto"></audio>
<p> <p>
<b> <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> 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'); 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…
Cancel
Save