-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
57 lines (48 loc) · 1.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>201flaviosilva</title>
<link href="https://fonts.googleapis.com/css?family=Press Start 2P" rel="stylesheet">
</head>
<body>
<!-- Loader -->
<style>
#loader {
width: 60px;
height: 60px;
position: fixed;
bottom: 10px;
right: 10px;
border: 10px solid #383838;
border-top: 10px solid #d00;
border-radius: 50%;
z-index: 10;
color: #000;
animation: spin 2s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
<div id="loader">.</div>
<div id="GameContainer"></div>
<script>
window.onload = () => {
const loader = document.getElementById("loader");
loader.remove();
loader.style.top = -1000;
loader.style.left = -1000;
loader.style.zIndex = -1000;
};
</script>
<script type="module" src="./src/index.js"></script>
</body>
</html>