-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (34 loc) · 1.69 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
<html>
<head>
<title>Gravity: A WebGL Simulation</title>
<script src="lib/sylvester.js" type="text/javascript"></script>
<script src="lib/glUtils.js" type="text/javascript"></script>
<script src="lib/matrixutil.js" type="text/javascript"></script>
<script src="gravity/gravity.js" type="text/javascript"></script>
<script src="gravity/config.js" type="text/javascript"></script>
<script src="gravity/shaders.js" type="text/javascript"></script>
<script src="gravity/sim.js" type="text/javascript"></script>
<script src="gravity/renderer.js" type="text/javascript"></script>
<script src="gravity/glcontext.js" type="text/javascript"></script>
<script src="gravity/app.js" type="text/javascript"></script>
<script src="gravity/presets.js" type="text/javascript"></script>
<script src="gravity/main.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body onload="gravity_start()">
<div id="controls">
<div><button id="button-reset">Clear</button></div>
<div>Mass: <input type="text" id="input-mass" value="10"/></div>
<div>Presets: <select id="select-preset"></select></div>
<div>Draw trails: <input type="checkbox" id="checkbox-trails" value="enable"/></div>
</div>
<canvas id="glcanvas" width="1000" height="700">
WebGL is required to display this content.
</canvas>
<div id="info-container">
<div><span>FPS:</span> <span id="fps-value">0</span><div>
<div><span>Stars:</span> <span id="n-stars-value">0</span></div>
<div><span>Zoom:</span> <span id="zoom-value">1.00</span></div>
</div>
</body>
</html>