wip figures and images
This commit is contained in:
parent
ea235120f8
commit
c6bac45ecf
61 changed files with 1491 additions and 1315 deletions
|
@ -1,12 +1,15 @@
|
|||
let fox = document.getElementById("fox");
|
||||
let music = document.createElement("audio");
|
||||
music.src = "/assets/fox.ogg";
|
||||
music.src = "/assets/audio/fox.ogg";
|
||||
music.loop = true;
|
||||
document.body.appendChild(music);
|
||||
fox.appendChild(music);
|
||||
window.addEventListener("load", function () {
|
||||
music.play();
|
||||
music.muted = true;
|
||||
});
|
||||
fox.onmouseover = () => {
|
||||
music.play();
|
||||
}
|
||||
music.muted = false;
|
||||
};
|
||||
fox.onmouseout = () => {
|
||||
music.pause();
|
||||
music.currentTime = 0;
|
||||
}
|
||||
music.muted = true;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue