-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
73 lines (59 loc) · 1.74 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="main.css">
<title>Loading screen [ doxtery#3135 ]</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>
<body>
<div class="background-tint"></div>
<div id="background">
<div class='center'>
<div class='title'><span style='color:#00b7ff;'>db</span >Scripts</div>
<div style='width: 99%;'>
</div>
<div class='songstop'>Press<span style='color:#00b7ff;'> SPACE</span> to pause music</div>
</div>
<div class="loadanim">
<div class="obj"></div>
<div class="obj"></div>
<div class="obj"></div>
<div class="obj"></div>
<div class="obj"></div>
<div class="obj"></div>
<div class="obj"></div>
<div class="obj"></div>
</div>
<main>
<h1 id="title"></h1>
<p id="message"></p>
<p id="percent"><span id="progress-bar-value">0</span>%</p>
<progress id="progress" min="0" max="100" value="0"></progress>
</main>
<audio id="audio_loading" src="music/song.mp3" autoplay hidden="true" loop="true"/>
<script>
var play = true;
var myAudio = document.getElementById("audio_loading");
myAudio.volume = 0.5;
function onKeyDown(event) {
switch (event.keyCode) {
case 32: //SpaceBar
if (play) {
myAudio.pause();
play = false;
} else {
myAudio.play();
play = true;
}
break;
}
return false;
}
window.addEventListener("keydown", onKeyDown, false);
</script>
<script src="config.js"></script>
<script src="assets/main.js"></script>
</body>
</html>