-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
102 lines (90 loc) · 1.91 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>N-Body WASM Simulation</title>
<style>
html,
body {
font-size: .8rem;
}
html {
min-height: 100%;
position: relative;
}
body {
height: 100%;
color: white;
background-color: blue;
padding: 0;
margin: 0;
}
#i {
position: absolute;
top: 0;
right: 0;
margin: 10px;
text-align: right;
}
#f {
position: absolute;
top: 0;
left: 0;
margin: 10px;
}
#container {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
overflow: hidden;
}
#c {
width: 100% !important;
height: 100% !important;
}
#e {
position: absolute;
margin-left: 10px;
bottom: 0;
left: 0;
}
#l {
overflow: hidden;
line-height: 1rem;
height: 5rem;
}
</style>
<link rel=rust data-trunk />
</head>
<body>
<div id="container">
<h2 id="f">FPS: --</h2>
<div id="i">
<b>Instructions</b>
</br>
<small>
WASD: Move Camera
</br>
↕: Scale Camera
</br>
↔: Rotate Camera
</br>
[SPACE]: Pause
</br>
Q: Wireframe
</br>
E: Rave
</small>
</div>
<canvas id="c"></canvas>
<div id="e">
<h2>Event Log</h2>
<ul id="l">
...
</ul>
</div>
</div>
</body>
</html>