-
Notifications
You must be signed in to change notification settings - Fork 0
/
loadingFinal.html
54 lines (51 loc) · 2.12 KB
/
loadingFinal.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
51
52
53
54
<html>
<head>
<title>ChalkCast</title>
<meta charset="UTF-8">
<meta name="description" content="ChalkCast">
<meta name="keywords" content="ChalkCast">
<meta name="author" content="Blake Williford">
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">
<link rel="stylesheet" href="./css/style.css" >
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body class="darkbody">
<ul id="toolbar">
<li id="nightMode" onclick="toggleLoader('night')" class="active"></li>
<li id="dayMode" onclick="toggleLoader('day')"></li>
</ul>
<div id="loader">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<!--Import jQuery before materialize.js-->
<!--JS Frameworks-->
<script src="./js/paper-full.min.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
<script src="./js/chalkboard.js"></script>
<script>
function toggleLoader(mode) {
if (mode === 'day') {
document.body.className = 'lightbody';
document.getElementById('dayMode').className = 'active';
document.getElementById('nightMode').className = '';
document.getElementById('loader').className = 'light';
}
else {
document.body.className = 'darkbody';
document.getElementById('dayMode').className = '';
document.getElementById('nightMode').className = 'active';
document.getElementById('loader').className = '';
}
}
</script>
</body>
</html>