This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
95 lines (84 loc) · 2.21 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
body {
margin: 0;
background: black;
color: white;
width: 100vw;
height: 100vh;
font-family: monospace;
}
header {
user-select: none;
box-sizing: border-box;
height: 3.2rem;
padding: 0.4rem;
font-weight: bold;
font-size: 1rem;
border-bottom: solid white 1px;
display: flex;
justify-content: space-between;
text-transform: uppercase;
}
header div {
max-width: 30%;
height: 100%;
}
header div ul {
margin: 0;
font-size: 0.7em;
list-style: none;
}
header button {
background: black;
border: 1px solid red;
width: 100px;
height: 20px;
color: white;
font-family: monospace;
}
header input {
background: black;
color: white;
border: 0;
font-family: monospace;
}
canvas {
background: black;
display: block;
/*padding:0 20% 0 20%;*/
width: 100%;
height: calc(100% - 3.2rem);
}
</style>
</head>
<body>
<header>
<div>The Maze</div>
<div>
<ul>
<li>FPS <input id="ActualFPS" value="60"></li>
<li>
<button id="pause">Pause</button>
<button id="restart">Restart</button>
<button id="showTheBest">Show best</button>
</li>
</ul>
</div>
<div>
<ul>
<li>Generation number : <span id="nbGen">1</span></li>
<li>Nb step : <span id="nbStep">-</span></li>
</ul>
</div>
</header>
<canvas></canvas>
</body>
<script src="dist/bundle.js"></script>
</html>