Added page preloader

This commit is contained in:
aggelosQQ 2016-10-24 15:52:27 +03:00
parent 98829aeb31
commit a52a1290fc
3 changed files with 27 additions and 0 deletions

View file

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

View file

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

View file

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