implemented audio fix for neocities
This commit is contained in:
parent
e14118f864
commit
8d1e1de894
5 changed files with 10 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
|||
import { audioPath } from './path.js'
|
||||
let fox = document.getElementById("fox");
|
||||
let music = document.createElement("audio");
|
||||
music.src = "/assets/audio/fox.ogg";
|
||||
music.src = `${audioPath}fox.ogg`;
|
||||
music.loop = true;
|
||||
fox.appendChild(music);
|
||||
window.addEventListener("load", function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue