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'
|
||||
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();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue