remove loading animation
This commit is contained in:
parent
642df29625
commit
6f21fac112
2 changed files with 0 additions and 20 deletions
19
js/loader.js
19
js/loader.js
|
@ -1,19 +0,0 @@
|
|||
let div = document.createElement("div");
|
||||
div.className = "loader";
|
||||
div.innerHTML = `<div class="loader-dots">
|
||||
<div class="dots"></div>
|
||||
<div class="dots"></div>
|
||||
<div class="dots"></div>
|
||||
<div class="dots"></div>
|
||||
<div class="dots"></div>
|
||||
</div>`;
|
||||
|
||||
document.body.classList.add("stop-scrolling");
|
||||
document.body.appendChild(div);
|
||||
|
||||
document.addEventListener('readystatechange', event => {
|
||||
if (event.target.readyState === "complete") {
|
||||
document.querySelector(".loader").style.display = "none";
|
||||
document.body.classList.remove("stop-scrolling");
|
||||
}
|
||||
});
|
|
@ -1,4 +1,3 @@
|
|||
require("./loader");
|
||||
require("./browserCheck");
|
||||
|
||||
require("./error");
|
||||
|
|
Loading…
Reference in a new issue