-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
50 lines (39 loc) · 1.27 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<head>
<link rel="stylesheet" href="loading.css"/>
</head>
<body>
<div class="loader-fullscreen-wrapper">
<div class="loader-fullscreen">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
</div>
</div>
<center>
<h1>Sample Text</h1>
<br>Sample Text<br>
</center><br>
<div class="loader">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
</div>
<script>
// hides the loading animation
function hideLoader( ){
document.querySelector( 'div.loader-fullscreen-wrapper' ).style.display = 'none';
}
// shows the loading animation again
function showLoader( ){
document.querySelector( 'div.loader-fullscreen-wrapper' ).style.display = 'initial';
}
// default call on pageload
//window.addEventListener( 'load',hideLoader );
// only for testing: simulating 3sec loading
window.setTimeout( hideLoader,3000 );
</script>
</body>