music now refreshes properly
This commit is contained in:
parent
a412ed531c
commit
6a6d4f9c3f
1 changed files with 8 additions and 1 deletions
|
@ -71,12 +71,19 @@ Warning.onclick = (event) => {
|
|||
setTimeout(() => {
|
||||
Main.classList.remove("MainFadeInAnimation");
|
||||
Main.classList.add("MainAfter");
|
||||
BackgroundMusic.play();
|
||||
Music();
|
||||
}, 5000);
|
||||
Main = document.getElementsByClassName("MainFadeInAnimation")[0];
|
||||
PosterContainerUpdate();
|
||||
}
|
||||
|
||||
function Music() {
|
||||
BackgroundMusic.play();
|
||||
setTimeout(() => {
|
||||
Music();
|
||||
}, 180000);
|
||||
}
|
||||
|
||||
// Clicking the next button
|
||||
ArrowsButton[1].onclick = (event) => {
|
||||
if (!ContainerContainer.classList.contains("NextAnimation")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue