mirror of
https://github.com/TotalFreedomMC/Website.git
synced 2024-12-22 16:25:12 +00:00
Added page preloader
This commit is contained in:
parent
98829aeb31
commit
a52a1290fc
3 changed files with 27 additions and 0 deletions
20
css/main.css
20
css/main.css
|
@ -259,6 +259,26 @@ i.rules-icon:hover {
|
|||
background-color: rgba(230,230,230, 0.3);
|
||||
}
|
||||
|
||||
#load_screen {
|
||||
background: rgba(40,40,40,1);
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
width: 100%;
|
||||
height: 1600px;
|
||||
z-index: 10;
|
||||
opacity: 1;
|
||||
}
|
||||
#load_screen > #loading {
|
||||
color: #fff;
|
||||
width: 50%;
|
||||
height: 240px;
|
||||
margin: 300px auto;
|
||||
text-align: center;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
.progress {
|
||||
background: rgb(250,250,250);
|
||||
}
|
||||
@media only screen and (max-width: 768px) {
|
||||
.cover-2 p,
|
||||
.cover-2 h2 {
|
||||
|
|
|
@ -43,6 +43,8 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<div id="load_screen"><div id="loading">Loading TotalFreedom - Free OP!<div class="progress"><div class="indeterminate"></div></div>
|
||||
</div></div>
|
||||
<div class="navbar-fixed">
|
||||
<nav class="transparent z-depth-0" id="menu">
|
||||
<div class="nav-wrapper z-depth-0">
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
window.addEventListener("load", function() {
|
||||
var load_screen = document.getElementById("load_screen");
|
||||
document.body.removeChild(load_screen);
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
$(".button-collapse").sideNav({
|
||||
closeOnClick: true
|
||||
|
|
Loading…
Reference in a new issue