implemented audio fix for neocities

This commit is contained in:
sundae 2025-09-09 18:23:55 +03:00
parent e14118f864
commit 8d1e1de894
No known key found for this signature in database
5 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,4 @@
import { audioPath } from './path.js'
const imgBasePath = "/assets/img/pkmn/";
let favorites = [
{ img: `${imgBasePath}1.png`, title: "Bulbasaur"},
@ -364,7 +365,7 @@ party.forEach(pkmnData => {
document.getElementById("pkmn").appendChild(critter);
critter.addEventListener("mouseover", () => {
const select = document.createElement("audio");
select.src = "/assets/audio/select.ogg";
select.src = `${audioPath}select.ogg`;
select.play();
});
});