Hotfix: Preload Script
This commit is contained in:
parent
0d5573adb2
commit
51f8fd6eab
@ -11,6 +11,13 @@
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<!-- Preload -->
|
||||
<div id="overlay"></div>
|
||||
<div id="preloader">
|
||||
<div class="preload-icon"><span></span><span></span></div>
|
||||
<div class="preload-text">Loading ...</div>
|
||||
</div>
|
||||
|
||||
<!-- Scripts JS -->
|
||||
<script defer src="/scripts/libs/jquery-min.js"></script>
|
||||
<script defer src="/scripts/libs/plugins/jquery.appear.min.js"></script>
|
||||
|
@ -39,17 +39,19 @@
|
||||
<link rel="stylesheet" href="/css/animationsScroll.css">
|
||||
<link rel="stylesheet" href="/css/loader.css">
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
|
||||
<!-- Preload Script -->
|
||||
<script>
|
||||
/* Au chargement de la page */
|
||||
window.addEventListener('load', () => {
|
||||
document.querySelector('body').classList.remove('loading');
|
||||
document.getElementById('preloader').remove();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="loading d-flex flex-column">
|
||||
|
||||
<!-- Preload -->
|
||||
<div id="overlay"></div>
|
||||
<div id="preloader">
|
||||
<div class="preload-icon"><span></span><span></span></div>
|
||||
<div class="preload-text">Loading ...</div>
|
||||
</div>
|
||||
|
||||
<div class="mainContent">
|
||||
<header>
|
||||
<nav class="navbar navbar-expand-lg navbar-dark static-top">
|
||||
|
@ -108,9 +108,4 @@ $(function () {
|
||||
autoclose: false,
|
||||
todayHighlight: true
|
||||
});
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
document.querySelector('body').classList.remove('loading');
|
||||
document.getElementById('preloader').remove();
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user