Don't confuse onload function with play function

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
Macintxsh 2024-05-02 19:48:27 +05:00
parent 6cb8ce8951
commit 30780b0284
Signed by: mctaylors
GPG key ID: 7181BEBE676903C1

View file

@ -1,13 +1,12 @@
window.onload = function() {
play("error");
setTimeout(function () {
play("error");
}, 1000)
}
function play(audioId) {
let audioElement = document.getElementById(audioId);
setTimeout(function() {
audioElement.play();
}, 1000
)
audioElement.play();
}
function close_button(href) {