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,18 @@
import { audioPath } from './path.js'
import { audioPath } from "./path.js";
let fox = document.getElementById("fox");
let music = document.createElement("audio");
music.src = `${audioPath}fox.ogg`;
music.loop = true;
fox.appendChild(music);
window.addEventListener("load", function () {
music.play();
music.muted = true;
music.play();
music.muted = true;
});
fox.onmouseover = () => {
music.muted = false;
music.muted = false;
};
fox.onmouseout = () => {
music.muted = true;
music.muted = true;
};