-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (38 loc) · 825 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#401">
<title>legendary-mazes.js demo</title>
<style>
html, body { height: 100%; }
body {
background-color: #4a4a4a;
overflow: hidden;
}
:root {
--margin: 10px;
}
.container {
position: absolute;
top: var(--margin);
bottom: var(--margin);
left: var(--margin);
right: var(--margin);
}
canvas {
width: 100%;
height: 100%;
object-fit: contain;
image-rendering: -moz-crisp-edges;
image-rendering: pixelated;
}
</style>
</head>
<body>
<div class=container>
<canvas id="maze-canvas"></canvas>
</div>
<script type=module src="./demo.js"></script>
</body>
</html>