Skip to content

Commit

Permalink
fix2
Browse files Browse the repository at this point in the history
  • Loading branch information
Commanderk3 committed Jan 18, 2025
1 parent 4839646 commit 18972cf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,26 +175,26 @@
</script>
<div class="loading-text" id="loadingText" style="margin-top:1.5rem;"></div>
<script>
document.addEventListener("DOMContentLoaded", function() {
setTimeout(function() {
document.addEventListener("DOMContentLoaded", function () {
setTimeout(function () {
const loadingText = document.getElementById("loadingText");
const texts = [_("Do, Re, Mi, Fa, Sol, La, Ti, Do"), _("Loading Music Blocks..."), _("Reading Music...")];
let index = 0;

const intervalId = setInterval(function() {
const intervalId = setInterval(function () {
loadingText.textContent = texts[index];
index = (index + 1) % texts.length;
}, 2000); // Change 2000 to adjust cycle duration (in milliseconds)
}, 1500);

// Stop changing text and finalize loading after 6 seconds
setTimeout(function () {
clearInterval(intervalId);
loadingText.textContent = "Loading Complete!";
loadingText.textContent = _("Loading Complete!");
loadingText.style.opacity = 1;
}, 6000);
}, 4000);
});

}, 4000); // Change 6000 to adjust the delay (in milliseconds)
});
</script>
</div>

Expand Down

0 comments on commit 18972cf

Please sign in to comment.