-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
sim_2.html
61 lines (52 loc) · 1.49 KB
/
sim_2.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>PVFS 2.1 - Spatial Hash Neighbor Search</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<canvas id="simCanvas"></canvas>
<div id="overlay">
<div id="controls">
<p id="fps">FPS: 0</p>
<p>
<label for="numParticles"># Particles:</label>
<select name="numParticles" id="numParticles">
<option value="1000">1K</option>
<option value="2000" selected="true">2K</option>
<option value="5000">5K</option>
<option value="10000">10K</option>
</select>
</p>
<p>
<label for="useSpatialHash">Use Spatial Hash:</label>
<input type="checkbox" name="useSpatialHash" id="useSpatialHash" checked="true">
</p>
<p>
<button id="startButton">Start</button>
<button id="pauseButton">Pause</button>
<button id="stepButton">Step</button>
<button id="resetButton">Reset</button>
</p>
<p>
<small>
You can drag window around.
</small>
</p>
<p>
<a href="sim_1.html">Prev</a>
|
<a href="sim_3.html">Next</a>
</p>
</div>
<p>
<button id="collapseButton">Collapse</button>
</p>
</div>
<script src="fpsMonitor.js"></script>
<script src="sim_2.js"></script>
<script src="run_0.js"></script>
</body>
</html>