diff --git a/_src/assets/js/bob.js b/_src/assets/js/bob.js index 574ff44..e04c986 100644 --- a/_src/assets/js/bob.js +++ b/_src/assets/js/bob.js @@ -1,7 +1,6 @@ -import { audioPath } from './path.js' let bob = document.getElementById("bob"); let help = document.createElement("audio"); -help.src = `${audioPath}bob.ogg`; +help.src = "/assets/audio/bob.ogg"; help.loop = true; bob.appendChild(help); window.addEventListener("load", function () { diff --git a/_src/assets/js/cat.js b/_src/assets/js/cat.js index 8acd7f3..b77497f 100644 --- a/_src/assets/js/cat.js +++ b/_src/assets/js/cat.js @@ -1,4 +1,3 @@ -import { audioPath } from './path.js' let pipe = document.getElementById("meow"); let preload = new Image(); preload.src = "/assets/img/button/braixdragon-cat2.gif"; @@ -10,7 +9,7 @@ function func() { } let audio = document.createElement("audio"); -audio.src = `${audioPath}anvil_land_low.ogg`; +audio.src = "/assets/audio/anvil_land_low.ogg"; pipe.appendChild(audio); pipe.addEventListener( diff --git a/_src/assets/js/fox.js b/_src/assets/js/fox.js index 0a7c82e..a7a036e 100644 --- a/_src/assets/js/fox.js +++ b/_src/assets/js/fox.js @@ -1,7 +1,6 @@ -import { audioPath } from './path.js' let fox = document.getElementById("fox"); let music = document.createElement("audio"); -music.src = `${audioPath}fox.ogg`; +music.src = "/assets/audio/fox.ogg"; music.loop = true; fox.appendChild(music); window.addEventListener("load", function () { diff --git a/_src/assets/js/path.js b/_src/assets/js/path.js deleted file mode 100644 index c03b752..0000000 --- a/_src/assets/js/path.js +++ /dev/null @@ -1,2 +0,0 @@ -/* this is for neocities. if you self-host, there's no need to use this hack */ -export const audioPath = "https://bunsin.space/forgejo/sundae/website/raw/branch/main/_src/assets/audio/"; \ No newline at end of file diff --git a/_src/assets/js/piss.js b/_src/assets/js/piss.js index 44fc72b..2d333c9 100644 --- a/_src/assets/js/piss.js +++ b/_src/assets/js/piss.js @@ -1,4 +1,3 @@ -import { audioPath } from './path.js' let secret = document.getElementById("piss"); let baby = new Image(); baby.src = "/assets/img/button/piss-baby2.gif"; @@ -10,7 +9,7 @@ function func() { } let flashlight = document.createElement("audio"); -flashlight.src = `${audioPath}flashlight.ogg`; +flashlight.src = "/assets/audio/flashlight.ogg"; secret.appendChild(flashlight); secret.addEventListener("mouseover", () => flashlight.play(), { once: true }); diff --git a/_src/assets/js/poke.js b/_src/assets/js/poke.js index 931488d..c9a31f2 100644 --- a/_src/assets/js/poke.js +++ b/_src/assets/js/poke.js @@ -1,4 +1,3 @@ -import { audioPath } from './path.js' const imgBasePath = "/assets/img/pkmn/"; let favorites = [ { img: `${imgBasePath}1.png`, title: "Bulbasaur"}, @@ -365,7 +364,7 @@ party.forEach(pkmnData => { document.getElementById("pkmn").appendChild(critter); critter.addEventListener("mouseover", () => { const select = document.createElement("audio"); - select.src = `${audioPath}select.ogg`; + select.src = "/assets/audio/select.ogg"; select.play(); }); }); diff --git a/_src/pages/home.html b/_src/pages/home.html index c6c1bfa..8936388 100644 --- a/_src/pages/home.html +++ b/_src/pages/home.html @@ -133,12 +133,12 @@ icon: "M12 20 L12 30 4 30 4 12 16 2 28 12 28 30 20 30 20 20 Z" {%endfor%} - - - - + + + +
- +