-
Notifications
You must be signed in to change notification settings - Fork 24
/
index.html
33 lines (33 loc) · 923 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
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"/>
<title>Gauzilla</title>
<style>
html,
body {
/* Allow canvas to fill entire web page: */
overflow: hidden;
margin: 0 !important;
padding: 0 !important;
height: 100%;
width: 100%;
}
#render_canvas {
/* Make the canvas fill the entire viewport: */
display: block;
width: 100vw;
height: 100vh;
}
</style>
</head>
<body>
<script type="module">
import init, { run } from "./pkg/gauzilla.js";
init().then(() => {
run();
});
</script>
<canvas id="render_canvas"></canvas>
</body>
</html>