-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (45 loc) · 873 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">
<head>
<meta charset="UTF-8" />
<link rel="shortcut icon" href="#" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WebGPU Loong Sample</title>
</head>
<style>
html,
body {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
display: flex;
justify-content: center;
overflow: hidden;
}
#app {
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
#render {
height: 100%;
width: 100%;
display: block;
margin: auto;
}
#controler {
z-index: 1;
max-height: 10px;
}
</style>
<body>
<div id="app">
<div id="controler"><div id="joystick"></div></div>
<canvas id="render" width="100%" height="100%"></canvas>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>