-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #868 from SanjanaSogimatt/adding-loader
Adding a loader
- Loading branch information
Showing
2 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,15 @@ | |
|
||
</head> | ||
<body> | ||
|
||
<!-- loading animation --> | ||
<div class="main-site"> | ||
<!-- adding css --> | ||
<div class="main-content" role="main" id="mainContent"> | ||
<div class="loader loader-black loader-5"></div> | ||
</div> | ||
</div> | ||
|
||
<!-- Header --> | ||
<nav class="navbar navbar-expand-lg navbar-dark fixed-top bg-dark" style="position: sticky; margin-top: -4em;"> | ||
<div class="container-fluid"> | ||
<button class="navbar-toggler m-1" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> | ||
|
@@ -98,6 +105,14 @@ <h3>Documentation</h3> | |
|
||
|
||
<!-- Scripts --> | ||
<!-- loading animation script --> | ||
<script> | ||
var loader= document.querySelector('.loader'); | ||
window.addEventListener('load', function() { | ||
loader.style.display = 'none'; | ||
}); | ||
</script> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-p34f1UUtsS3wqzfto5wAAmdvj+osOnFyQFpp4Ua3gs/ZVWx6oOypYoCJhGGScy+8" crossorigin="anonymous"></script> | ||
<script src="./jquery.min.js"></script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters