This commit is contained in:
Aevann1 2021-12-30 18:54:24 +02:00
parent 5afa772579
commit 072fe7aad5
4 changed files with 13 additions and 15 deletions

View file

@ -22,4 +22,11 @@ if (uid)
document.getElementById("pause2").classList.toggle("d-none");
document.getElementById("play2").classList.toggle("d-none");
}
window.addEventListener('load', (e) => {
audio.play();
document.getElementById('userpage').addEventListener('click', () => {
if (audio.paused) audio.play();
}, {once : true});
});
}