svoydom/public/assets/js/spinner.js

8 lines
300 B
JavaScript
Raw Normal View History

2023-05-17 09:57:20 +03:00
var pre = document.createElement("div");
pre.innerHTML = '<div class="loader-wrapper"><div class="loader">Loading...</div></div>';
document.body.insertBefore(pre, document.body.firstChild);
document.addEventListener("DOMContentLoaded", function(event) {
document.body.className += " loaded"
});