-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
48 lines (45 loc) · 1.14 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Wowser</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
html, body {
margin: 0;
}
body {
background: black;
}
.container {
position: absolute;
top: 50%;
left: 0;
transform: translate(0, -50%);
width: 100%;
padding-top: calc(100% / (1024 / 768));
background-image:
linear-gradient(45deg, #222 25%, transparent 25%),
linear-gradient(-45deg, #222 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #222 75%),
linear-gradient(-45deg, transparent 75%, #222 75%);
background-size: 20px 20px;
background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}
canvas {
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div class="container">
<canvas></canvas>
</div>
<script type="module" src="/src/index.ts"></script>
</body>
</html>