-
Notifications
You must be signed in to change notification settings - Fork 3
/
chandrayaan3.html
363 lines (302 loc) · 19.6 KB
/
chandrayaan3.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
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
<!DOCTYPE html>
<!-- Copyright (c) 2013-2023 Sankaranarayanan Viswanathan. All rights reserved. -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="Chandrayaan 3 Orbit Animation by Sankar Viswanathan">
<meta name="author" content="Sankaranarayanan Viswanathan">
<meta name="keywords" content="chandrayaan, chandrayaan3, moon, isro, india, space, astronomy, animation">
<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://sankara.net/chandrayaan3.html">
<meta property="og:type" content="website">
<meta property="og:title" content="Chandrayaan 3 Orbit Animation">
<meta property="og:description" content="Chandrayaan 3 Orbit Animation in 3D by Sankar Viswanathan">
<meta property="og:image" content="https://sankara.net/w3images/chandrayaan3-screenshot.png">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="sankara.net">
<meta property="twitter:url" content="https://sankara.net/chandrayaan3.html">
<meta name="twitter:title" content="Chandrayaan 3 Orbit Animation">
<meta name="twitter:description" content="Chandrayaan 3 Orbit Animation in 3D by Sankar Viswanathan">
<meta name="twitter:image" content="https://sankara.net/w3images/chandrayaan3-screenshot.png">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.css">
<link rel="stylesheet" href="css/ui-darkness/jquery-ui-1.10.3.custom.min.css">
<link rel="stylesheet" type="text/css" href="cy3.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/[email protected]/build/three.module.js",
"three/addons/": "https://unpkg.com/[email protected]/examples/jsm/",
"swiper": "https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.mjs"
}
}
</script>
<script src="third-party/d3.v3.min.js"></script>
<script src="third-party/jquery-1.9.1.js"></script>
<script src="third-party/jquery-ui-1.10.3.custom.min.js"></script>
<script src="third-party/jquery.dialogextend.min.js"></script>
<script src="third-party/threex.atmospherematerial.js"></script>
<script src="third-party/ephemeris-0.1.0.min.js"></script>
<script type="module" src="astro.js"></script>
<script type="module" src="cy3.js"></script>
<script src="ga.js"></script>
<title>ISRO's Chandrayaan 3 Mission 2023 - An Orbit Animation</title>
</head>
<body>
<div id="wrapper" class="wrapper flex-container">
<div id="header" class="header">
<div class="navbar flex-container">
<button id="settings-panel-button">☰ Settings</button>
<div id="blurb" class="blurb">
<h1><a href="https://www.isro.gov.in/Chandrayaan3_New.html">Chandrayaan 3</a> Orbit Animation.</h1>
<h2>Created by <a href="https://sankara.net/">Sankar Viswanathan</a> using NASA JPL <a href="https://ssd.jpl.nasa.gov/horizons/">HORIZONS</a> Ephemerides.</h2>
<p class="desktoponly">Source code available at <a href="https://github.com/kvsankar/chandrayaan3">Github</a>.
Works best in desktop screens. Chrome works better than Firefox.</p>
</div>
</div>
<div id="settings-panel" class="settings-panel"> <!-- First row buttons -->
<div id="settings-panel-fieldset" class="flex-container">
<!-- <legend>Settings</legend> -->
<fieldset autocomplete="off">
<legend class="config-label config-first-label">Origin/Phase:</legend>
<input id="origin-earth" type="radio" name="mode" value="geo" checked="checked">
<label for="origin-earth">Earth</label>
<input id="origin-moon" type="radio" name="mode" value="lunar">
<label for="origin-moon">Moon</label>
<!-- <input type="radio" name="mode" value="lro" onclick="toggleMode()">Moon/Post Vikram LOS</input> -->
</fieldset>
<fieldset autocomplete="off">
<legend class="config-label">Camera:</legend>
<input type="radio" name="camera" value="default" id="camera-default" checked="checked">
<label for="camera-default">Default</label>
<input type ="radio" name="camera" value="moon" id="camera-moon">
<label for="camera-moon">Moon</label>
</fieldset>
<fieldset autocomplete="off">
<legend class="config-label">Lock On:</legend>
<input type="checkbox" id="checkbox-lock-cy3">
<label for="checkbox-lock-cy3">Chandrayaan 3</label>
<span class="geo"><input type="checkbox" id="checkbox-lock-moon"></span>
<label class="geo" for="checkbox-lock-moon">Moon</label>
<span class="lunar lro"><input type="checkbox" id="checkbox-lock-earth"></span>
<label class="lunar lro" for="checkbox-lock-earth">Earth</label>
</fieldset>
<fieldset autocomplete="off">
<legend class="config-label">Plane</legend>
<input type="radio" name="plane" value="XY" id="checkbox-lock-xy" checked="checked">
<label for="checkbox-lock-xy">XY</label>
<input type="radio" name="plane" value="YZ" id="checkbox-lock-xz">
<label for="checkbox-lock-xy">YZ</label>
<input type="radio" name="plane" value="ZX" id="checkbox-lock-yz">
<label for="checkbox-lock-xy">ZX</label>
<input type="radio" name="plane" value="XY-" id="checkbox-lock-xy-minus">
<label for="checkbox-lock-xy">XY-</label>
<input type="radio" name="plane" value="YZ-" id="checkbox-lock-xz-minus">
<label for="checkbox-lock-xy">YZ-</label>
<input type="radio" name="plane" value="ZX-" id="checkbox-lock-yz-minus">
<label for="checkbox-lock-xy">ZX-</label>
</fieldset>
<fieldset autocomplete="off" class="dimension-3D">
<legend class="config-label">View</legend>
<input id="landing" type="checkbox">
<label for="landing">Landing!</label>
<input id="joyride" type="checkbox">
<label for="joyride">Joy Ride!</label>
<input type="checkbox" name="view" value="orbit" id="view-orbit" checked="checked">
<label for="view-orbit">CY3 Orbit</label>
<input type="checkbox" name="view" value="orbit-descent" id="view-orbit-descent" checked="checked">
<label for="view-orbit-descent">CY3 Descent Orbit</label>
<!-- <input type="checkbox" name="view" value="orbit-vikram" id="view-orbit-vikram" onclick="setView()" checked="checked">Vikram Orbit</input> -->
<!-- <input type="checkbox" name="view" value="orbit-lro" id="view-orbit-lro" onclick="setView()" checked="checked">LRO Orbit</input> -->
<input type="checkbox" name="view" value="craters" id="view-craters" checked="checked">
<label for="view-craters">Locations</label>
<input type="checkbox" name="view" value="xyz" id="view-xyz-axes" checked="checked">
<label for="view-xyz-axes">XYZ Axes</label>
<input type="checkbox" name="view" value="poles" id="view-poles" checked="checked">
<label for="view-poles">Poles</label>
<input type="checkbox" name="view" value="polar-axes" id="view-polar-axes" checked="checked">
<label for="view-polar-axes">Polar Axes</label>
<input type="checkbox" name="view" value="sky" id="view-sky" checked="checked">
<label for="view-sky">Stellar Sky</label>
<input type="checkbox" name="view" value="moonsoi" id="view-moonsoi">
<label for="view-moonsoi">Moon's SOI</label>
<input type="checkbox" name="view" value="eclipticplane" id="view-eclipticplane">
<label for="view-eclipticplane">Ecliptic Plane</label>
<input type="checkbox" name="view" value="equatorialplane" id="view-equatorialplane">
<label for="view-equatorialplane">Equatorial Plane</label>
<!--
<span class="config-label">Camera Placed At:</span>
<input type="radio" name="camera" value="AUTO" id="camerapos-auto" onclick="toggleCameraPos()" checked="checked">Auto</input>
<input type="radio" name="camera" value="CY3" id="camerapos-cy3" onclick="toggleCameraPos()">CY3</input>
<input type="radio" name="camera" value="EARTH" id="camerapos-earth" onclick="toggleCameraPos()">Earth</input>
<input type="radio" name="camera" value="MOON" id="camerapos-moon" onclick="toggleCameraPos()">Moon</input>
<span class="hspace">|</span>
<span class="config-label">Camera Looking At:</span>
<input type="radio" name="look" value="AUTO" id="cameralook-auto" onclick="toggleCameraLook()" checked="checked">Auto</input>
<input type="radio" name="look" value="CY3" id="cameralook-cy3" onclick="toggleCameraLook()">CY3</input>
<input type="radio" name="look" value="EARTH" id="cameralook-earth" onclick="toggleCameraLook()">Earth</input>
<input type="radio" name="look" value="MOON" id="cameralook-moon" onclick="toggleCameraLook()">Moon</input>
-->
</fieldset>
<fieldset autocomplete="off">
<legend class="config-label">Dimension:</legend>
<input type ="radio" name="dimension" value="2D" id="dimension-2D">
<label for="dimension-2D">2D</label>
<input type ="radio" name="dimension" value="3D" id="dimension-3D" checked="checked">
<label for="dimension-3D">3D</label>
</fieldset>
</div>
</div> <!-- settings panel -->
<div id="control-panel" class="control-panel">
<div id="animation-control-panel">
<div class="vspace"></div>
<div id="animationbuttons" class="swiper swiper1">
<div class="swiper-wrapper">
<div class="swiper-slide"><button id="animate" type="button" class="button">Play</button></div>
<div class="swiper-slide"><button id="slower" type="button" class="button">Slower</button></div>
<div class="swiper-slide"><button id="resetspeed" type="button" class="button">Reset</button></div>
<div class="swiper-slide"><button id="faster" type="button" class="button">Faster</button></div>
<div class="swiper-slide"><button id="realtime" type="button" class="button">Realtime</button></div>
<!-- <div class="swiper-slide"><span id="animspeed"></span></div> -->
<div class="swiper-slide"><span class="hspace">|</span></div>
<div class="swiper-slide"><button id="landingbutton" type="button" class="button" title="Landing!">✈ Landing!</button></div>
<div class="swiper-slide"><button id="joyridebutton" type="button" class="button" title="🎢 Joy Ride!">🎢 Joy Ride!</button></div>
<div class="swiper-slide"><span class="hspace">|</span></div>
<div class="swiper-slide"><button id="fastbackward" type="button" class="button" title="Fast rewind"><<</button></div> <!-- ◁ -->
<div class="swiper-slide"><button id="backward" type="button" class="button" title="Rewind"><</button></div> <!-- ◃ -->
<div class="swiper-slide"><button id="forward" type="button" class="button" title="Forward">></button></div> <!-- ▹ -->
<div class="swiper-slide"><button id="fastforward" type="button" class="button" title="Fast forward">>></button></div> <!-- ▷ -->
</div>
</div>
<div class="vspace"></div>
<!-- <span class="config-label config-first-label">Timeline:</span> -->
<!-- <span id="burnbuttons"></span> -->
<div class="swiper swiper2">
<div id="burnbuttons" class="swiper-wrapper">
<!-- burn buttons will get added here dynamically -->
</div>
</div>
<div class="vspace"></div>
<div id="eventinfo" class="eventinfo"></div>
</div> <!-- First row buttons -->
</div> <!-- control panel -->
</div>
<div id="content-wrapper" class="content-wrapper flex-container">
<div id="svg-top-baseline"></div>
<div id="banner" class="banner" title="Some quick info before you start...">
</div>
<div id="progressbar" class="progressbar">
<div id="progressbar-label" class="progressbar-label"></div>
</div>
<div id="zoom-panel" class="zoom-panel dimension-2D desktoponly">
<table class="desktoponly">
<tr>
<td></td>
<td><button id="panup" type="button" class="navbutton">▲</button></td>
<td></td>
</tr>
<tr>
<td><button id="panleft" type="button" class="navbutton" title="Pan left">◀</button></td>
<td><button id="reset" type="button" class="navbutton" title="Reset zoom/pan settings">◈</button></td>
<td><button id="panright" type="button" class="navbutton" title="Pan right">▶</button></td>
</tr>
<tr>
<td></td>
<td><button id="pandown" type="button" class="navbutton" title="Pan down">▼</button></td>
<td></td>
</tr>
<tr><td></td><td></td><td></td></tr>
<tr>
<td></td>
<td><button id="zoomin" type="button" class="navbutton" title="Zoom in"><b>+</b></button></td>
<td></td>
</tr>
<tr>
<td></td>
<td><button id="zoomout" type="button" class="navbutton" title="Zoom out"><b>-</b></button></td>
<td></td>
</tr>
</table>
</div> <!-- zoom panel -->
<div id="svg-wrapper" class="svg-wrapper dimension-2D">
</div>
<div id="canvas-wrapper" class="canvas-wrapper dimension-3D">
</div>
</div> <!-- content-wrapper -->
<div id="footer-wrapper" class="footer-wrapper">
<div id="stats" class="stats prevent-select">
<div> <!-- extended statistics / Relative to Earth -->
<table>
<tr>
<th colspan="2"><b>Relative to Earth</b></th>
</tr>
<!-- <tr>
<td>Vehicle</td>
<td><label class="cy3">Chandrayaan 3</label></td>
</tr> -->
<tr>
<td>Distance (km): </td>
<td><label id="distance-CY3-EARTH" class="cy3"></label></td>
</tr>
<tr>
<td>Altitude (km): </td>
<td><label id="altitude-CY3-EARTH" class="cy3"></label></td>
</tr>
<tr>
<td>Velocity (km/s): </td>
<td><label id="velocity-CY3-EARTH" class="cy3"></label></td>
</tr>
</table>
</div>
<div class="vspace"></div>
<div> <!-- extended statistics / Relative to Moon -->
<table>
<tr>
<th colspan="2"><b>Relative to Moon</b></th>
</tr>
<!-- <tr>
<td>Vehicle</td>
<td><label class="cy3">Chandrayaan 3</label></td>
</tr> -->
<tr>
<td>Distance (km): </td>
<td><label id="distance-CY3-MOON" class="cy3"></label></td>
</tr>
<tr>
<td>Altitude (km): </td>
<td><label id="altitude-CY3-MOON" class="cy3"></label></td>
</tr>
<tr>
<td>Velocity (km/s): </td>
<td><label id="velocity-CY3-MOON" class="cy3"></label></td>
</tr>
</table>
</div>
</div> <!-- stats wrapper -->
<button id="info-button" type="button" class="button">Info</button>
<div id="date" class="date"></div>
<div class="info desktoponly">
<table>
<tr>
<!-- <td>Orbit data epoch: JD = <label id="epochjd"></label> | UTC = <label id="epochdate"></label></td> -->
<td>CY3 phase:
<label id="phase-1"></label> |
<label id="phase-2"></label> |
<label id="phase-3"></label>
</td>
</tr>
</table>
</div> <!-- info -->
<div class="copyright desktoponly">
Copyright © 2013-2024 Sankaranarayanan Viswanathan. All rights reserved.
</div> <!-- copyright -->
</div> <!-- footer-wrapper -->
</div> <!-- wrapper -->
</body>
</html>
<!-- end of file -->