-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
119 lines (92 loc) · 3.13 KB
/
Copy pathindex.html
File metadata and controls
119 lines (92 loc) · 3.13 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="description" content="Play creative mode Minecraft right from your browser!">
<meta name="keywords" content="Khan Academy, Programs, Search">
<meta property="og:title" content="MineKhan"/>
<meta property="og:description" content="Play creative mode Minecraft right from your browser!"/>
<meta property="og:image" content="https://www.khanacademy.org/computer-programming/minekhan/5647155001376768/5308848032661504.png"/>
<title>MineKhan</title>
<!-- Icon -->
<link rel="shortcut icon" type="image/ico" href="minekhan.ico">
<!-- CSS Styles -->
<link rel="stylesheet" href="src/css/main.css">
</head>
<body>
<!-- Text so that Lighthouse believes the page is loaded and to provide search terms. -->
<div id="meta-content">
<h1>MineKhan</h1>
<p>Play MineKhan online! This game is a free Minecraft clone developed on <a href="https://www.khanacademy.org/computer-programming/minekhan/5647155001376768">Khan Academy</a>, and later moved to my own website so that I could take advantage of multiplayer servers. The front-end code is completely open source and maintained on <a href="https://github.com/Willard21/MineKhan">GitHub</a>, where contributions are welcome.</p>
</div>
<div class="container">
<canvas id="webgl"></canvas>
<canvas id="overlay"></canvas>
</div>
<div id="loading">
<!-- There's no time to load external files so styles are here -->
<style>
#loading {
--loading-background: #121212;
--loading-color: #d8d8d8;
box-sizing: border-box;
position: fixed;
inset: 0;
background-color: var(--loading-background);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2rem;
padding: 2rem;
}
#loading img {
image-rendering: pixelated;
filter: invert() brightness(80%);
width: 24rem;
}
#loading .loader {
position: relative;
aspect-ratio: 1 / 1;
width: 2rem;
border-radius: 50%;
overflow: hidden;
}
#loading .loader::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: conic-gradient(transparent 25%, var(--loading-color));
animation: spiningLoader 1s infinite linear;
}
@keyframes spiningLoader {
0% {
rotate: 0deg;
}
100% {
rotate: 360deg;
}
}
#loading .loader::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
translate: -50% -50%;
aspect-ratio: 1 / 1;
width: 60%;
border-radius: 50%;
background-color: var(--loading-background);
}
</style>
<img src="src/assets/images/minekhan-logo.png" alt="MINEKHAN">
<div class="loader"></div>
</div>
<!-- JavaScript -->
<script type="module" src="src/js/main.js"></script>
</body>
</html>