-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
56 lines (52 loc) · 1.56 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
<!DOCTYPE html>
<html>
<head>
<title> Space Survival </title>
<script type = "text/javascript" src = "game.js"> </script>
<style>
html, body {
padding: 0;
margin: 0;
background-color : black;
}
#background, #canvas, #overlay, #overlay2 {
margin: auto auto;
padding: 0;
display: block;
position: absolute;
left: 0; top: 0;
}
#background {
z-index: 19;
background-color: black;
}
#canvas {z-index: 20;}
#overlay {z-index: 21;}
#overlay2 {z-index: 22;}
#container {
position: relative;
cursor: none;
width: 100vw;
height: 100vh;
overflow-x: hidden;
overflow-y: hidden;
}
span {
font-family: sans-serif;
color: white;
font-size: 16px;
text-align: center;
}
</style>
</head>
<body onload = "main()">
<div id = "container">
<canvas id = "background"> </canvas>
<canvas id = "canvas">
<span> Please install Google Chrome. </span>
</canvas>
<canvas id = "overlay"> </canvas>
<canvas id = "overlay2"> </canvas>
</div>
</body>
</html>