Add preloader functionality
This commit is contained in:
@@ -78,7 +78,7 @@ function selectBackground() {
|
||||
}
|
||||
|
||||
|
||||
function setBackground() {
|
||||
window.addEventListener("DOMContentLoaded", function () {
|
||||
let selected = selectBackground()
|
||||
|
||||
document.getElementById(
|
||||
@@ -92,4 +92,9 @@ function setBackground() {
|
||||
document.getElementById(
|
||||
"background-info-link"
|
||||
).href = selected.source;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
window.addEventListener("load", function () {
|
||||
document.getElementById("preloader").classList.add("fadeout");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user