-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
69 lines (67 loc) · 2.73 KB
/
Copy pathindex.html
File metadata and controls
69 lines (67 loc) · 2.73 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Loading...</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<meta name="description" content="Therapy MOD player, an audio player for the MOD music format">
<style>
@keyframes spin {
0% {
transform: rotate(45deg);
}
50% {
transform: rotate(225deg);
}
100% {
transform: rotate(405deg);
}
}
@keyframes flash {
0% {
opacity: 1;
}
50% {
opacity: .6;
}
100% {
opacity: 1;
}
}
body {
background: rgb(0, 0, 0);
}
</style>
</head>
<body>
<div class="main"></div>
<div id="loading" style="position: fixed; top: 50%; left: 50%;">
<div style="position: absolute; margin: -25px 0 0 -25px; border: 5px solid rgb(8, 64, 88); border-top-color: rgb(12, 144, 204); width: 40px; height: 40px; border-radius: 100px; animation: 1.2s linear infinite spin;"></div>
<div style="animation: .8s ease-in-out infinite flash;">
<div style="position: absolute; margin: -10px 0 0 -10px; border: 2px solid rgb(220, 212, 200); width: 16px; height: 16px; border-radius: 100px;"></div>
<div style="position: absolute; margin: -14px 0 0 -3px; border: 2px solid rgb(0, 0, 0); background: rgb(220, 212, 200); width: 2px; height: 10px;"></div>
</div>
</div>
<script>
function preloadFont(url) {
const link = document.createElement("link")
link.setAttribute("rel", "preload")
link.setAttribute("as", "font")
link.setAttribute("type", `font/${url.substring(url.lastIndexOf(".") + 1)}`)
link.setAttribute("crossorigin", "")
link.setAttribute("href", url)
document.head.appendChild(link)
}
preloadFont("ui/fonts/chicagoflf.ttf")
preloadFont("ui/fonts/naturalmono.ttf")
preloadFont("ui/fonts/metropolis.woff2")
const css = document.createElement("link")
css.setAttribute("rel", "stylesheet")
css.setAttribute("type", "text/css")
css.setAttribute("media", "screen")
css.setAttribute("href", "ui/tmodplay.css")
document.head.appendChild(css)
</script>
<script src="ui/tmodplay.js" type="module"></script>
</body>
</html>