forked from chinchang/js13k-2015
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (56 loc) · 979 Bytes
/
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
<html>
<head>
<style>
.hidden {
display: none;
}
body {
margin: 0;
padding: 0;
font-family: Arial;
}
.canvas-game {
/*background-color: #222;*/
}
canvas {
position: absolute;
top: 0;
left: 0;
}
#message-box {
position: fixed;
padding: 20px;
top: 30%;
left: 50%;
width: 300px;
margin-left: -150px;
box-sizing: border-box;
background: white;
text-align: center;
opacity: 0.9;
border: 10px solid #F3F3F3;
border-radius: 15px;
z-index: 1000;
}
button {
background: hsl(85, 70%, 31%);
border: none;
padding: 15px 30px;
color: white;
cursor: pointer;
}
button:HOVER {
background: hsl(85, 70%, 40%);
}
</style>
</head>
<body>
<canvas class="canvas-bg1" id="bg1"></canvas>
<canvas class="canvas-game" id="c"></canvas>
<canvas class="canvas-fg1" id="fg1"></canvas>
<div id="lost" class="hidden">
You lost. Refresh to play again.
</div>
<script type="text/javascript" src="script.min.js"></script>
</body>
</html>