-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
455 lines (368 loc) · 22 KB
/
index.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
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="./img/icon/star.png">
<title>VerseTime</title>
<meta name="description" content="Check the local time at your favorite Star Citizen landing zone!">
<meta property="og:description" content="Check the local time at your favorite Star Citizen landing zone!" />
<meta property="og:image" content="img/icon/star.png.jpg">
<meta property="og:image:alt" content="A white, four-spoked star" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Roboto+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/location.css">
<link rel="stylesheet" type="text/css" href="css/map.css">
<link rel="stylesheet" type="text/css" href="css/atlas.css">
<link rel="stylesheet" type="text/css" href="css/info.css">
</head>
<body>
<section id="selected-location-card">
<div id="selected-location-container">
<div id="selected-location-bg-image"></div>
<p class="selected-location-time" id="local-time"></p>
<div id="BUTTON-open-settings">
<p class="selected-location-label"><span id="location-name"></span>, <span id="location-body-type"></span> <span id="location-body-name"></span></p>
<p class="selected-location-sublabel">local synodic time</p>
</div>
<div>
<p id="chosen-time"></p>
<p class="selected-location-sublabel" id="chosen-time-sublabel"></p>
</div>
<div class="riseset-container" id="next-rise-container">
<div class="riseset-group">
<p class="riseset-label">Next starrise</p>
<p class="riseset-time-label" id="next-rise-countdown"></p>
</div>
<div class="riseset-group">
<p class="riseset-label">Verse time</p>
<p class="riseset-time-label" id="local-rise-time"></p>
</div>
<div class="riseset-group">
<p class="riseset-label">Real Time</p>
<p class="riseset-time-label"><span id="next-rise-time"></span></p>
</div>
</div>
<div class="riseset-container" id="next-set-container">
<div class="riseset-group">
<p class="riseset-label">Next starset</p>
<p class="riseset-time-label" id="next-set-countdown"></p>
</div>
<div class="riseset-group">
<p class="riseset-label">Verse time</p>
<p class="riseset-time-label" id="local-set-time"></p>
</div>
<div class="riseset-group">
<p class="riseset-label">Real Time</p>
<p class="riseset-time-label"><span id="next-set-time"></span></p>
</div>
</div>
</div>
</section>
<div id="illumination-status"></div>
<button id="BUTTON-toggle-atlas-window" class="button">
<img src="img/icon/astro-atlas.png" />
Astro Atlas
<div id="atlas-alpha-tag">Alpha</div>
</button>
<button id="BUTTON-toggle-map-window" class="button">
<img src="img/ui/globe.png" />
Local Map
</button>
<button id="BUTTON-toggle-credits-window" class="button">
<img src="img/ui/question.png" />
Help/About
</button>
<button id="BUTTON-share-location" class="button">
<img src="img/ui/share.png" />
Share
</button>
<div id="share-location-message">
URL copied to clipboard
</div>
<section class="modal" id="modal-settings">
<div id="settings-window">
<button id="BUTTON-close-settings"></button>
<div id="settings-change-time-container">
<p id="change-time-label">Choose custom time (optional):</p>
<input id="time-selection-input" type="datetime-local" name="time-selection-input">
</div>
<div id="settings-change-location-container">
<input id="location-selection-input" type="text" name="location-selection-input" placeholder="Search locations..." spellcheck="false">
<div id="available-locations-container">
<div class="fade-top"></div>
<div id="available-locations-list" class="hide-scroll"></div>
<div class="fade-bottom"></div>
</div>
</div>
</div>
</section>
<section class="modal" id="modal-credits">
<div id="credits-window">
<button id="BUTTON-close-credits" class="closeButton"></button>
<section>
<h2>Key bindings</h2>
<div id="credits-keybinds">
<kbd>/</kbd><p>Search locations</p>
<kbd>Enter</kbd><p>Switch to first location in filtered list</p>
<kbd>Up/Down</kbd><p>Select location in filtered list</p>
<kbd>A</kbd><p>Toggle Astro Atlas</p>
<kbd>M</kbd><p>Toggle Local Map</p>
<kbd>T</kbd><p>Toggle 24 / 12-hour time</p>
<kbd>H</kbd><p>Toggle HD textures</p>
<kbd>D</kbd><p>Toggle debug window</p>
<kbd>Esc</kbd><p>Close open windows</p>
</div>
</section>
<section>
<h2>Credits</h2>
<div id="credits-credits">
<div class="credit-group">
<div>
<img src="img/ui/database.png" />
<h6>Data</h6>
</div>
<p><a href="https://docs.google.com/spreadsheets/d/1aGJ0_49ve1NKf0GvSteSt3-a4jSxnj2snHmTDwKTBgs" target="_blank" rel="noreferrer noopener">Murphy Exploration Group</a></p>
</div>
<div class="credit-group">
<div>
<img src="img/ui/map.png" />
<h6>Maps</h6>
</div>
<p><a href="https://bitbucket.org/Cpt_BA/scexplorer_releases/downloads/" target="_blank" rel="noreferrer noopener">SCExplorer by Cpt_BA</a> and <a href="https://starmap.space/surface-textures/" target="_blank" rel="noreferrer noopener">Graupunkt</a> from VerseGuide</p>
</div>
<div class="credit-group">
<div>
<img src="img/ui/image.png" />
<h6>Imagery</h6>
</div>
<p><a href="https://starcitizen.tools/Star_Citizen_Wiki" target="_blank" rel="noreferrer noopener">Star Citizen Wiki</a></p>
</div>
<div class="credit-group">
<div>
<img src="img/ui/github.png" />
<h6>GitHub</h6>
</div>
<p><a href="https://github.com/dydrmr/VerseTime" target="_blank" rel="noreferrer noopener">Project page</a></p>
</div>
<div class="credit-group">
<div>
<img src="img/ui/heart.png" />
<h6>Creator</h6>
</div>
<p>
<a href="https://www.paypal.me/dydrm" target="_blank" rel="noreferrer noopener">DYDRM</a>
</p>
</div>
<br />
<div>
<p>
<a href="https://robertsspaceindustries.com/" target="_blank">Sign up for Star Citizen</a> with referral code <b id="referral-code">STAR-SFLC-PRPQ</b> and get 5,000 in-game credits!
</p>
<script>
document.getElementById('referral-code').addEventListener('click', () => {
navigator.clipboard.writeText('STAR-SFLC-PRPQ');
});
</script>
</div>
</div>
</section>
</div>
</section>
<section class="modal" id="modal-map">
<div id="map-window">
<button id="BUTTON-close-map" class="closeButton"></button>
<div id="map-spinner" data-visible="false">
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z" class="map-spinner-circle" />
<path d="M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z" class="map-spinner-segment" />
</svg>
</div>
<div id="map-body-name"></div>
<div id="map-bodyinfo-window" class="map-window">
<div class="info-group-table">
<p class="info-group-label">Type</p><p class="info-group-data"><span id="map-info-type">XXXX</span></p>
<p class="info-group-label">System</p><p class="info-group-data"><span id="map-info-system">XXXX</span></p>
<p class="info-group-label">Orbits</p><p class="info-group-data"><span id="map-info-orbits">XXXX</span></p>
<p class="info-group-label">Orbital distance</p><p class="info-group-data"><span id="map-info-orbitdistance">X,XXX</span> km</p>
<p class="info-group-label">Natural satellites</p><p class="info-group-data"><span id="map-info-naturalsatellites">X</span></p>
<p class="info-group-label">Radius</p><p class="info-group-data"><span id="map-info-radius">X,XXX</span> km</p>
<p class="info-group-label">Circumference</p><p class="info-group-data"><span id="map-info-circumference">X,XXX</span> km</p>
<p class="info-group-label">Rotation rate</p><p class="info-group-data"><span id="map-info-rotationrate">X.X</span></p>
<p class="info-group-label">Length of day</p><p class="info-group-data"><span id="map-info-lengthofday">XX:XX:XX</span></p>
</div>
</div>
<div id="map-locationinfo-window" class="map-window">
<div class="info-group-table">
<p class="info-group-label">Name</p><p class="info-group-data"><span id="map-info-locationname"></span></p>
<p class="info-group-label">Type</p><p class="info-group-data"><span id="map-info-locationtype"></span></p>
<p class="info-group-label">Elevation</p><p class="info-group-data"><span id="map-info-elevation"></span> m</p>
<p class="info-group-label">Phase</p><p class="info-group-data"><span id="map-info-phase"></span></p>
<p class="info-group-label">Next starrise</p><p class="info-group-data"><span id="map-info-nextstarrise"></span></p>
<p class="info-group-label">Next starset</p><p class="info-group-data"><span id="map-info-nextstarset"></span></p>
</div>
</div>
<div id="map-settings-window" class="map-window">
<h3>Map settings</h3>
<div id="map-settings-container">
<p>Opacity</p>
<input type="range" min="0" max="100" value="20" class="slider" style="width:80px;" id="map-settings-planet-transparency">
<p>Label Size</p>
<input type="range" min="0.8" max="2" value="1" step="0.05" class="slider" style="width:80px;" id="map-settings-text-size">
<p>Times</p>
<input type="checkbox" id="map-settings-show-times" checked>
<p>Shadow</p>
<input type="checkbox" id="map-settings-show-terminator" checked>
<p>OMs</p>
<input type="checkbox" id="map-settings-show-orbitalmarkers" checked>
<p>Grid</p>
<input type="checkbox" id="map-settings-show-grid" checked>
<p>Stars</p>
<input type="checkbox" id="map-settings-show-starfield" checked>
</div>
</div>
</div>
</section>
<section class="modal" id="modal-atlas">
<div id="atlas-loading-screen">
<div>
<p>Loading</p>
<div class="la-ball-newton-cradle">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<progress id="atlas-loading-bar" value="0" max="100"> </progress>
</div>
</div>
<button id="BUTTON-close-atlas" class="closeButton"></button>
<div id="atlas-container">
<div id="atlas-debug-info" style="display:none;">
<p class="atlas-debug-header">DEBUG DATA</p>
<p class="atlas-debug-header">CAMERA</p>
<p>X <span id="atlas-debug-x"></span></p>
<p>Y <span id="atlas-debug-y"></span></p>
<p>Z <span id="atlas-debug-z"></span></p>
<p>Zoom: <span id="atlas-zoom"></span></p>
<p>Min : <span id="atlas-min-zoom"></span></p>
<p>Scale: <span id="atlas-scale"></span><br />= <span id="atlas-scale-units"></span></p>
<p>Rotate speed: <span id="atlas-rotate-speed"></span></p>
<br />
<p class="atlas-debug-header">FOCUS</p>
<p>System: <span id="atlas-focus-system"></span></p>
<p>Object: <span id="atlas-focus-object"></span></p>
<p>Class: <span id="atlas-focus-object-class"></span></p>
<p>Radius: <span id="atlas-focus-object-radius"></span></p>
</div>
<div id="atlas-sidebar" class="map-window">
<h2>System Overview</h2>
<ul id="atlas-treelist" class="treelist">
</ul>
</div>
<div id="atlas-hierarchy">
SYSTEM ▸ BODY ▸ CHILDBODY ▸ LOCATION
</div>
<div id="atlas-hoverinfo" class="atlas-ui-window"></div>
<div id="atlas-settings-window" class="map-window">
<h3>Settings</h3>
<div id="atlas-settings-container">
<p>Lollipops</p>
<input type="checkbox" id="atlas-settings-show-lollipops" checked>
<p>Wormholes</p>
<input type="checkbox" id="atlas-settings-show-wormholes" checked>
<p>Affliation</p>
<input type="checkbox" id="atlas-settings-show-affiliation" checked>
<p>Polar Grid</p>
<input type="checkbox" id="atlas-settings-show-grid" checked>
<p>Starfield</p>
<input type="checkbox" id="atlas-settings-show-starfield" checked>
</div>
</div>
</div>
</section>
<section id="detailed-info">
<div class="detailed-info-group">
<h3>GENERAL</h3>
<div class="info-group-table">
<p class="info-group-label">HASH</p><p id="db-hash" class="info-group-data"></p>
</div>
</div>
<div class="detailed-info-group">
<h3>TIME</h3>
<div class="info-group-table">
<p class="info-group-label">UNIX</p><p id="db-unix-time" class="info-group-data"></p>
<p class="info-group-label">CHOSEN</p><p id="db-chosen-time" class="info-group-data"></p>
<p class="info-group-label">GMT</p><p id="db-gmt-time" class="info-group-data"></p>
<p class="info-group-label">VERSE</p><p id="db-universe-time" class="info-group-data"></p>
</div>
</div>
<div class="detailed-info-group">
<h3>Body: <span id="body-name">[BODY NAME]</span></h3>
<div class="info-group-table">
<p class="info-group-label">Type</p><p class="info-group-data"><span id="body-type"></span></p>
<p class="info-group-label">System</p><p class="info-group-data"><span id="body-system"></span></p>
<p class="info-group-label">Orbits</p><p class="info-group-data"><span id="body-parent-name"></span></p>
<p class="info-group-label">Radius</p><p class="info-group-data"><span id="body-radius"></span> km</p>
<p class="info-group-label">Time to spin 360°</p><p class="info-group-data"><span id="day-length"></span> sec</p>
<p class="info-group-label">Real length of day</p><p class="info-group-data">= <span id="day-length-readable"></span></p>
<p class="info-group-label">Real length of 1 hour</p><p class="info-group-data">= <span id="hour-length-readable"></span></p>
<p class="info-group-label">Star declination</p><p class="info-group-data"><span id="declination"></span>°</p>
<p class="info-group-label">Current cycle</p><p id="current-cycle" class="info-group-data"></p>
<p class="info-group-label">Hour angle</p><p class="info-group-data"><span id="hour-angle"></span>°</p>
<p class="info-group-label">Stationary noon longitude</p><p class="info-group-data"><span id="meridian"></span>°</p>
<p class="info-group-label">Rotating noon longitude</p><p class="info-group-data"><span id="noon-longitude"></span>°</p>
</div>
</div>
<div class="detailed-info-group">
<h3>Location: <span id="db-local-name">[LOCATION NAME]</span></h3>
<div class="info-group-table">
<p class="info-group-label">Latitude</p><p class="info-group-data"><span id="latitude"></span>°</p>
<p class="info-group-label">Longitude</p><p class="info-group-data"><span id="longitude"></span>°</p>
<p class="info-group-label">Longitude-360</p><p class="info-group-data"><span id="longitude-360"></span>°</p>
<p class="info-group-label">Elevation</p><p class="info-group-data"><span id="elevation"></span> meters</p>
<p class="info-group-label"></p><p class="info-group-data">= <span id="elevation-degrees"></span>°</p>
<p class="info-group-label">Local time</p><p class="info-group-data"><span id="db-local-time"></span></p>
<p class="info-group-label">Phase</p><p class="info-group-data"><span id="db-illumination-status"></span></p>
<p class="info-group-label">Length of daylight</p><p class="info-group-data"><span id="length-of-daylight"></span></p>
<p class="info-group-label">Length of night</p><p class="info-group-data"><span id="length-of-night"></span></p>
<p class="info-group-label">Local starrise time</p><p class="info-group-data"><span id="starrise-time"></span></p>
<p class="info-group-label">Local starset time</p><p class="info-group-data"><span id="starset-time"></span></p>
<p class="info-group-label">Next starrise</p><p class="info-group-data"><span id="next-starrise-countdown"></span> d</p>
<p class="info-group-label">Next starset</p><p class="info-group-data"><span id="next-starset-countdown"></span> d</p>
<p class="info-group-label">Hour angle</p><p class="info-group-data"><span id="hour-angle-location"></span>°</p>
<p class="info-group-label">Star azimuth</p><p class="info-group-data"><span id="star-azimuth"></span>°</p>
<p class="info-group-label">Star rise/set angle</p><p class="info-group-data"><span id="sunriseset-angle"></span>° from N</p>
<p class="info-group-label">Star altitude</p><p class="info-group-data"><span id="star-altitude"></span></p>
<p class="info-group-label">Star max altitude</p><p class="info-group-data"><span id="max-star-altitude"></span></p>
</div>
</div>
<div style="display:none">
<h3>Next Star Rise:</h3>
<p>Value: <span id="db-next-starrise"></span> sec (= <span id="db-next-starrise-countdown"></span>)</p>
<p>Date: <span id="db-next-starrise-date"></span></p>
<br>
<h3>Next Noon:</h3>
<p>Value: <span id="next-noon"></span> sec (= <span id="next-noon-countdown"></span>)</p>
<p>Date: <span id="next-noon-date"></span></p>
<br>
<h3>Next Star Set:</h3>
<p>Value: <span id="db-next-starset"></span> sec (= <span id="db-next-starset-countdown"></span>)</p>
<p>Date: <span id="db-next-starset-date"></span></p>
</div>
</section>
</body>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.157.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.157.0/examples/jsm/"
}
}
</script>
<script src="main.js" type="module"></script>
<script src="map.js" type="module"></script>
<script src="atlas.js" type="module"></script>
</html>