-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
73 lines (67 loc) · 1.85 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Pool Game</title>
<style>
/* Reset Padding */
* { padding: 0; margin: 0 }
html, body {
/* Make body full size */
height: 100%;
/* Center game */
display: flex;
align-items: center;
justify-content: center;
}
body, #game {
width: 100%;
}
canvas {
background-color: black;
display: block;
}
#menu {
list-style-type: none;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
#menu li {
width: 300px;
background: deepskyblue;
color: #111;
font-family: "Helvetica Neue", sans-serif;
font-weight: bold;
border-radius: 3px;
padding: 10px 0;
text-align: center;
margin: 10px 0;
cursor: pointer;
}
#menu li:hover {
background: lightskyblue;
}
</style>
</head>
<body>
<div id="game"></div>
<ul id="menu">
<li data-option="pool">Pool Game</li>
<li data-option="snooker">Snooker Game</li>
<li data-option="sandbox">DEMO: Sandbox</li>
<li data-option="demopool">DEMO: Pool (Near Game End)</li>
</ul>
<script type="text/javascript" src="app.js"></script>
</body>
</html>