Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (58 loc) · 1.47 KB
/
Copy pathindex.html
File metadata and controls
59 lines (58 loc) · 1.47 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Three-Body Problem Simulation</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="ui">
<div class="control-group">
<label for="speedSlider"
>Speed: <span id="speedValue">1.5x</span></label
>
<input
type="range"
id="speedSlider"
min="0.1"
max="5"
step="0.1"
value="1.5"
/>
</div>
<div class="control-group">
<label for="trailSlider"
>Trail Length: <span id="trailValue">800</span></label
>
<input
type="range"
id="trailSlider"
min="0"
max="2000"
step="50"
value="800"
/>
</div>
<div class="control-group">
<label for="bodiesSlider"
>Bodies: <span id="bodiesValue">3</span></label
>
<input
type="range"
id="bodiesSlider"
min="2"
max="10"
step="1"
value="3"
/>
</div>
<div class="control-group" style="margin-top: 16px; margin-bottom: 0">
<button id="restartBtn">Restart Simulation</button>
</div>
<div class="hints">Space: Pause / Resume</div>
</div>
<canvas id="canvas"></canvas>
<script src="main.js"></script>
</body>
</html>