implemented audio fix for neocities
This commit is contained in:
parent
e14118f864
commit
8d1e1de894
5 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,4 @@
|
|||
import { audioPath } from './path.js'
|
||||
let secret = document.getElementById("piss");
|
||||
let baby = new Image();
|
||||
baby.src = "/assets/img/button/piss-baby2.gif";
|
||||
|
@ -9,7 +10,7 @@ function func() {
|
|||
}
|
||||
|
||||
let flashlight = document.createElement("audio");
|
||||
flashlight.src = "/assets/audio/flashlight.ogg";
|
||||
flashlight.src = `${audioPath}flashlight.ogg`;
|
||||
secret.appendChild(flashlight);
|
||||
|
||||
secret.addEventListener("mouseover", () => flashlight.play(), { once: true });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue