Hotfix: Preload Script

This commit is contained in:
Divlo 2019-12-29 13:21:31 +01:00
parent 0d5573adb2
commit 51f8fd6eab
3 changed files with 16 additions and 12 deletions

View File

@ -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>

View File

@ -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">

View File

@ -108,9 +108,4 @@ $(function () {
autoclose: false,
todayHighlight: true
});
window.addEventListener('load', () => {
document.querySelector('body').classList.remove('loading');
document.getElementById('preloader').remove();
});
});