-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.html
More file actions
159 lines (147 loc) · 4.93 KB
/
Copy pathindex.html
File metadata and controls
159 lines (147 loc) · 4.93 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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<html>
<head>
<script type="text/javascript" src="lib/three.min.js"></script>
<script type="text/javascript" src="lib/OrbitControls.js"></script>
<script type="text/javascript" src="lib/stats.js"></script>
</head>
<body>
<div id="input">
<form id="form">
<h2>Create a star and some planets:</h2>
<fieldset id="star">
<legend>Star</legend>
<label for="star-radius">Radius: </label>
<input type="text" id="star-radius" name="star-radius" placeholder="0.6955" /> Gm
<br />
<label for="star-mass">Mass: </label>
<input type="text" id="star-mass" name="star-mass" placeholder="1.988435e30" /> kg
<br />
</fieldset>
<div id="planets">
<fieldset id="planet-1">
<legend>Planet #1</legend>
<label for="planet-radius-1">Radius: </label>
<input type="text" id="planet-radius-1" name="planet-radius-1" placeholder="0.0063674447" /> Gm
<br />
<label for="planet-mass-1">Mass: </label>
<input type="text" id="planet-mass-1" name="planet-mass-1" placeholder="5.9721986e24" /> kg
<br />
<label for="planet-distance-1">Distance: </label>
<input type="text" id="planet-distance-1" name="planet-distance-1" placeholder="150" /> Gm
<br />
<label for="planet-speed-1">Speed: </label>
<input type="text" id="planet-speed-1" name="planet-speed-1" placeholder="5.449e-6" /> Gm
<br />
<label for="planet-speed-1">Inclination: </label>
<input type="text" id="planet-incl-1" name="planet-incl-1" placeholder="0" /> deg
<br />
</fieldset>
</div>
<br />
<input type="Submit" value="Create solar system" />
<a id="new-planet" href="#">Add a new planet</a>
<br /><br />
or
<select id="preload">
<option disabled selected>Choose a solar system</option>
<option value="home">Our solar system</option>
<option value="jupiter">Jupiter at Mars' distance</option>
<option value="mercury">Mercury at Mars' distance</option>
<option value="slow-mercury">Mercury at Mars' distance at 75% its actual speed</option>
<option value="slowest-mercury">Mercury at Mars' distance at 50% speed</option>
</select>
</form>
Reference:
<table cellspacing="0" border="1">
<tr>
<th></th>
<th>Radius (Gm)</th>
<th>Mass (kg)</th>
<th>Distance (Gm)</th>
<th>Speed (Gm/s)</th>
</tr>
<tr>
<td>Sun</td>
<td>0.6955</td>
<td>1.988435e30</td>
<td>--</td>
<td>--</td>
</tr>
<tr>
<td>Mercury</td>
<td>0.0024397</td>
<td>3.30104e23</td>
<td>50.32</td>
<td>4.74e-5</td>
</tr>
<tr>
<td>Venus</td>
<td>0.0060519</td>
<td>4.86732e24</td>
<td>108.8</td>
<td>3.5e-5</td>
</tr>
<tr>
<td>Earth</td>
<td>0.0063674447</td>
<td>5.9721986e24</td>
<td>150</td>
<td>2.963e-5</td>
</tr>
<tr>
<td>Mars</td>
<td>0.003386</td>
<td>6.41693e23</td>
<td>227.94</td>
<td>0.0000228175</td>
</tr>
<tr>
<td>Jupiter</td>
<td>0.069173</td>
<td>1.89813e27</td>
<td>778.33</td>
<td>0.0000129824</td>
</tr>
<tr>
<td>Saturn</td>
<td>0.057316</td>
<td>5.68319e26</td>
<td>1429.4</td>
<td>9.280e-6</td>
</tr>
<tr>
<td>Uranus</td>
<td>0.025266</td>
<td>8.68103e25</td>
<td>2870.99</td>
<td>6.509e-6</td>
</tr>
<tr>
<td>Neptune</td>
<td>0.024553</td>
<td>1.0241e26</td>
<td>4504</td>
<td>5.449e-6</td>
</tr>
</table>
</div>
<div id="model" style="display: none;">
<div id="canvas" style="position: absolute; left: 0px; top: 0px; z-index: 1;"></div>
<div id="speed" style="z-index: 1; position: absolute; color: red; font-family: Helvetica, sans-serif;">
<label for="speedSlider">Speed</label>
<input id="speedSlider" type="range" min="1000" max="50000" value="10000" />
<br>
<a href="#" style="color: #f00;" id="pauseButton">Pause</a>
<br>
<a href="#" style="color: #f00;" id="resetButton">Change Parameters</a>
<br>
<label for="focus" style="color: #f00;">Focus camera on:</label>
<select id="focus">
<option selected value="-1">Sun</option>
</select>
</div>
</div>
</body>
<script src="app/animation.js"></script>
<script src="app/kepler.js"></script>
</html>