Change song to my version of Velkommen.
This commit is contained in:
parent
151c1c2024
commit
14a554639d
17 changed files with 16 additions and 12 deletions
2
docs/static/scripts/main.js
vendored
2
docs/static/scripts/main.js
vendored
|
|
@ -8,6 +8,7 @@ const savedTime = localStorage.getItem("audioTime");
|
|||
const wasPlaying = localStorage.getItem("audioPlaying") === 'true'
|
||||
|
||||
if (savedTime) audio.currentTime = parseFloat(savedTime);
|
||||
|
||||
if (wasPlaying) {
|
||||
play();
|
||||
} else {
|
||||
|
|
@ -15,6 +16,7 @@ if (wasPlaying) {
|
|||
}
|
||||
|
||||
function play() {
|
||||
audio.volume = 0.8;
|
||||
audio.play();
|
||||
localStorage.setItem("audioPlaying", "true")
|
||||
toggleIMG.src = "/static/images/sound-on.png"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue