overhauled old theme

This commit is contained in:
sundae 2025-10-14 19:40:29 +03:00
parent f18a342ae5
commit fb24c6a302
No known key found for this signature in database
82 changed files with 1378 additions and 1371 deletions

View file

@ -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 }
);