-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
62 lines (62 loc) · 1.05 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>GlitchCube</title>
<script src="./cube.js"></script>
<style>
@CHARSET "UTF-8";
html, body {
overflow: hidden;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#gameCanvas {
width: 100%;
height: 100%;
touch-action: none;
}
#stats {
position: fixed;
right: 0px;
bottom: 0px;
color: red;
z-index: 1;
}
#hud, #menu {
position: fixed;
top: 0px;
right: 0px;
color: #00e7ff;
z-index: 1;
font-size: 40px;
white-space: nowrap;
text-shadow: 5px 5px 5px rgba(0,231,255,0.8);
}
#hud span {
padding: 0 20px 0 0px;
}
#menu {
right: auto;
left: 0px;
}
#menu button {
background-color: transparent;
color: inherit;
font-size: inherit;
border: none;
outline: none;
text-shadow: 5px 5px 5px rgba(0,231,255,0.8);
}
#menu button:hover {
text-shadow: none;
font-weight: bold;
}
</style>
</head>
<body>
<canvas id="gameCanvas" oncontextmenu="return false;">Browser not supported</canvas>
</body>
</html>