overhauled old theme
This commit is contained in:
parent
f18a342ae5
commit
fb24c6a302
82 changed files with 1378 additions and 1371 deletions
|
|
@ -1,16 +1,17 @@
|
|||
import { audioPath } from './path.js'
|
||||
import { audioPath } from "./path.js";
|
||||
|
||||
let secret = document.getElementById("piss");
|
||||
let baby = new Image();
|
||||
baby.src = "/assets/img/button/piss-baby2.gif";
|
||||
|
||||
secret.addEventListener("mouseover", func, true);
|
||||
|
||||
function func() {
|
||||
secret.src = baby.src;
|
||||
}
|
||||
|
||||
let flashlight = document.createElement("audio");
|
||||
let baby = new Image();
|
||||
|
||||
baby.src = "/assets/img/button/piss-baby2.gif";
|
||||
flashlight.src = `${audioPath}flashlight.ogg`;
|
||||
secret.appendChild(flashlight);
|
||||
|
||||
secret.addEventListener("mouseover", () => flashlight.play(), { once: true });
|
||||
secret.addEventListener(
|
||||
"mouseover",
|
||||
() => {
|
||||
secret.src = baby.src;
|
||||
flashlight.play();
|
||||
},
|
||||
{ once: true }
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue