-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
149 lines (143 loc) · 6.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Solar System Ephemeris</title>
<link rel="stylesheet" href="styles.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/global/luxon.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/tz.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/astronomy.browser.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/flatpickr.min.js"></script>
<link id="flatpickr-light-theme" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/flatpickr.min.css" rel="stylesheet">
<link id="flatpickr-dark-theme" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/themes/dark.min.css" rel="stylesheet" disabled>
<script src="script.js" defer></script>
<link rel="manifest" href="manifest.json">
</head>
<body>
<div id="page">
<div class="title">
<div class="settings-selector">
<select id="languageDropdown" title="Language">
<option value="en">🇬🇧</option>
<option value="fr">🇫🇷</option>
</select>
<br/>
<div class="menu-icon" id="settings-icon" title="Settings">
⚙ <!-- Unicode character for the gear icon -->
</div>
</div>
<div class="title-text">
<h1 id="title">Ephemeris</h1>
<br/>
<h4 id="stitle">Solar System</h4>
</div>
<div class="navbar">
<div class="menu-icon" id="nav-icon" title="Menu">
≡ <!-- Unicode character for the hamburger icon -->
</div>
</div>
</div>
<div class="nav-overlay" id="nav-overlay">
<ul class="nav-links">
<li><a id="doc" href="https://github.com/cyril42e/ephemeris?tab=readme-ov-file#definitions">Documentation</a><br/></li>
<li><a id="code" href="https://github.com/cyril42e/ephemeris">Source Code</a><br/></li>
<li><a id="bugs" href="https://github.com/cyril42e/ephemeris/issues">Bug Reports</a><br/></li>
<li><a id="privacy" href="./privacy.html">Privacy Policy</a><br/></li>
</ul>
</div>
<div class="settings-overlay" id="settings-overlay">
<ul class="settings">
<li>
<label for="sciLanguageCheckbox" id="sciLanguageLabel">Show scientific constellations names</label>
<input type="checkbox" id="sciLanguageCheckbox"></input>
</li>
<li>
<label for="themeDropdown" id="themeLabel">Theme</label>
<select id="themeDropdown" title="Theme">
<option value="light">Light</option>
<option value="dark">Dark</option>
<option value="default">Default</option>
<option value="auto">Auto</option>
</select>
</li>
</ul>
</div>
<div class="controls-wrapper static">
<div class="controls">
<div class="position-controls">
<div class="address-container">
<input type="text" id="address" autocomplete="off" value="Paris, France">
<div id="suggestions"></div>
</div>
<div class="coords-container">
<input type="number" id="latitude" step="1.0" value="48.8566">
<input type="number" id="longitude" step="1.0" value="2.3522">
<button id="current-location">Here</button>
</div>
</div>
<div class="date-controls">
<div class="date-container">
<button id="decrease-date"><</button>
<input type="text" id="date">
<script>flatpickr("#date", {dateFormat: "Y-m-d", disableMobile: "true"});</script>
<button id="increase-date">></button>
<button id="current-date">Now</button>
</div>
<div class="timezone-container">
<label for="timezone" id="timezone"></label>
</div>
</div>
</div>
</div>
<div class="timeline">
<div class="timeline-container">
<div class="timeline-points top" id="morning-points-top"></div>
<div class="timeline-periods-top" id="morning-periods-top"></div>
<div class="timeline-periods-bottom" id="morning-periods-bottom"></div>
<div class="timeline-points bottom" id="morning-points-bottom"></div>
<!-- Populated here by JavaScript -->
</div>
<div class="timeline-container">
<div class="timeline-points top" id="evening-points-top"></div>
<div class="timeline-periods-top" id="evening-periods-top"></div>
<div class="timeline-periods-bottom" id="evening-periods-bottom"></div>
<div class="timeline-points bottom" id="evening-points-bottom"></div>
<!-- Populated here by JavaScript -->
</div>
</div>
<table id="timeline-table" style="display: none">
<thead>
<tr>
<th>🔭 ↦</th>
<th>🛥 ↦</th>
<th>🏠🔵 ↦</th>
<th>↤ 🔵 🟠 ↦</th>
<th>↤ 🏠 🟡↑</th>
<th>↤ 🟠</th>
</tr>
</thead>
<tbody id="sun-dawn-dusk-row">
<!-- Populated here by JavaScript -->
</tbody>
<thead>
<tr>
<th>🟠 ↦</th>
<th>🟡↓ 🏠 ↦</th>
<th>↤ 🟠 🔵 ↦</th>
<th>↤ 🔵🏠</th>
<th>↤ 🛥</th>
<th>↤ 🔭</th>
</tr>
</thead>
<tbody id="sun-blue-golden-hour-row">
<!-- Populated here by JavaScript -->
</tbody>
</table>
<div id="table">
<!-- Populated here by JavaScript -->
</div>
<div id="controls-scroller"></div>
</div>
</body>
</html>