-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (97 loc) · 1.87 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script type="text/javascript" src="assets/js/tosocket.js"></script>
<title>2Maze</title>
<style>
body
{
padding: 0;
margin: 0;
}
canvas
{
padding: 0;
margin: auto;
display: block;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.container
{
margin: 15%;
}
#menu
{
z-index: 15;
width: 256px;
height: 384px;
margin: auto;
position: relative;
/*display: none;*/
background-color: #ccc;
}
.difficulty
{
display: block;
opacity: 1;
position: relative;
font-family: sans-serif;
font-size: 32px;
width: 128px;
height: 48px;
margin: 0 auto;
background-color: #fff
}
.difficulty p
{
color: #333
}
#easyc
{
padding: 1em;
}
#mediumc
{
padding: 1em;
}
#hardc
{
padding: 1em;
}
#time
{
position:relative;
font-family: sans-serif;
font-size: 64px;
z-index: 10;
color: #f00;
padding-left: 45%;
}
</style>
</head>
<body>
<div style="margin: 0 auto">
<span id="time"></span>
</div>
<div class = "container">
<div id = "menu">
<div id = "easyc">
<div class = "difficulty" id = "easy" style = "background-color: #0f0"><p>Easy</p></div>
</div>
<div id = "mediumc">
<div class = "difficulty" id = "medium" style = "background-color: #ff0"><p>Medium</p></div>
</div>
<div id = "hardc">
<div class = "difficulty" id = "hard" style = "background-color: #f00"><p>Hard</p></div>
</div>
</div>
</div>
<canvas id = "canvas" width="1024" height="1024" style="z-index: 1; border:1px solid #000000;">Get a better browser</canvas>
<script src="assets/js/gamerun.js"></script>
</body>
</html>