-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
45 lines (39 loc) · 933 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
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en" style="height: 100%">
<head>
<meta charset="utf-8" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link data-trunk rel="rust" href="Cargo.toml" data-wasm-opt="z" data-bin="polyblade" />
<title>Polyblade</title>
<base data-trunk-public-url />
<style>
:focus {
outline: none;
}
body {
margin: 0px;
background: #fff;
font-family: "Calibri", "Arial", sans-serif;
width: 100%;
height: 100%;
}
.root {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.main-canvas {
margin: 0;
/* This allows the flexbox to grow to max size, this is needed for WebGPU */
flex: 1;
/* This forces CSS to ignore the width/height of the canvas, this is needed for WebGL */
contain: size;
}
</style>
</head>
<body>
<div id="polyblade" class="root">
</div>
</body>
</html>