-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (51 loc) · 1.88 KB
/
index.html
File metadata and controls
58 lines (51 loc) · 1.88 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
<html>
<head>
<link rel="stylesheet" href="./css/index.css">
</head>
<body>
<div id="content">
</div>
<div id='controls'>
<div>Directions</div>
<p>The object is to get planets to orbit the Sun</p>
<p> Click and drag in space to create a planet (drag to make it larger)</p>
<p> Click and drag to set a velocity (speed and direction) </p>
<p> Release the mouse button to launch the planet</p>
<p> Launch as many planets as you like.</p>
<div class='buttons'>
<div class='row'>
<button id='random-btn'>Random Planets</button>
</div>
<div class='row'>
<span>Show Trails</span><input id='show-trails-input' type='checkbox' checked='false' />
<button id='clear-trails-btn'>Clear Trails</button>
</div>
<div class='row'>
<span>Sun Mass</span>
<div id='sun-mass-slider'></div>
<span>Fixed Sun</span>
<input id='fixed-sun-input' type='checkbox' checked='false' />
</div>
<div class='row'>
<span>Gravitational Constant</span>
<div id='g-constant-input'></div>
</div>
<div class='row'>
<span>Scale</span>
<div id='scale-input'></div>
<div>
<button id='auto-scale-btn'>Auto Scale</button>
</div>
</div>
<div class='row'>
<span>Time Scale</span>
<div id='time-scale-input'></div>
</div>
</div>
<pre id='data'></pre>
</div>
</body>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script src="./js/orbits.js"></script>
</html>