commands.js.download

This commit is contained in:
Adil Sadqi 2023-09-10 20:16:23 +01:00 committed by GitHub
parent 64643f8de5
commit 5d0593a9bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -151,6 +151,20 @@ root = [
"<br>",
]
// First, define the audio element and script outside the banner array
var audioElement = document.createElement("audio");
audioElement.id = "sound";
audioElement.src = "Sound.mp3";
function playSound() {
var sound = document.getElementById("sound");
sound.play();
}
window.addEventListener("load", playSound);
// Now, define your banner array with the HTML content
banner = [
'<span class="index">Adil Sadqi Not A Corporation. No Rights reserved.</span>',