-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
258 lines (252 loc) · 10.7 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
<!DOCTYPE html>
<html>
<head>
<title>SunTime beta</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Rubik:light,normal,medium,semibold,bold">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Gloock:normal">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined">
<!--<link rel="stylesheet" href="//code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css">-->
<link rel="stylesheet" href="style/style.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"
defer></script>
<script src="https://code.jquery.com/jquery-3.6.1.min.js"
integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous" defer></script>
<!--<script src="lib/bootstrap-autocomplete/bootstrap-autocomplete.min.js" defer></script>-->
<script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js" defer></script>
<script src="lib/suncalc/suncalc.js" defer></script>
<script src="lib/luxon/luxon.min.js" defer></script>
<script src="js/timecalc.js" defer></script>
<script src="js/caltools.js" defer></script>
<script src="js/geotools.js" defer></script>
<script src="js/display.js" defer></script>
<script src="js/workhours.js" defer></script>
<script src="js/core.js" defer></script>
</head>
<body>
<div class="container-lg">
<div class="row">
<div class="col-7">
<h1 id="title"></h1>
</div>
<div class="col-2">
<div class="title-coord-block">
<div class="title-region" id="region"></div>
<div class="title-coord" id="latitude"></div>
<div class="title-coord" id="longitude"></div>
</div>
</div>
<div class="col-3" id="parameters">
<div class="input-basic">Set</div>
<button type="button" class="btn btn-outline-secondary mt-2 input-special" data-bs-toggle="modal"
data-bs-target="#workHoursModal">
Work & Sleep
</button>
<button type="button" class="btn btn-outline-secondary mt-2 input-special" data-bs-toggle="modal"
data-bs-target="#localityModal">
City & Year
</button>
<input type="text" value="Paris" id="locality-field" class="form-control" hidden>
<input type="text" value="Paris" id="region-field" class="form-control" hidden>
<input type="number" value="48.853651" id="latitude-field" class="form-control" hidden>
<input type="number" value="2.349028" id="longitude-field" class="form-control" hidden>
<input type="number" value="35" id="elevation-field" class="form-control" hidden>
<input type="text" value="Europe/Paris" id="timezone-field" class="form-control" hidden>
<input type="number" value="2023" id="year-field" class="form-control" hidden>
<select class="form-select mt-2 input-special" id="repartition-select">
<option value="full" selected>Full</option>
<option value="simple">Simple</option>
<option value="photo">Photo</option>
<option value="geek">Geek</option>
</select>
</div>
</div>
<div class="row">
<div class="col-9">
<div class="sun-detail md-3" style="font-size: 90%;" id="sun-year-detail">
<div class="title" id="sun-year-period">Daylight</div>
<div class="subtitle"></div>
<svg xmlns="http://www.w3.org/2000/svg" width="100%" viewBox="-10 0 376 56" id="sun-year-plot"
preserveAspectRatio="none" style="float: left;">
</svg>
<div id="sun-year-conclusion"></div>
</div>
<div id="field" class="mt-3">
<svg xmlns="http://www.w3.org/2000/svg" width="100%" viewBox="-10 0 376 248" id="sun-diagram"
style="border: solid 0px #808080;" preserveAspectRatio="none"></svg>
</div>
<div class="sun-detail mt-3 md-3" style="font-size: 90%;" id="sun-daily-detail">
<div class="title" id="sun-daily-date"></div>
<div class="subtitle" id="sun-daily-date-desc"></div>
<svg xmlns="http://www.w3.org/2000/svg" width="100%" viewBox="-20 0 300 55" id="sun-daily-path"
preserveAspectRatio="none" style="float: left;">
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="100%" viewBox="-5 -10 250 20" id="sun-daily-stripe"
preserveAspectRatio="none" style="float: left;">
</svg>
<div id="sun-daily-periods"></div>
</div>
</div>
<div class="col-3">
<div class="row">
<div class="row sun-pie" id="sun-pie">
<div class="time-title md-2">Sun periods distribution</div>
<svg xmlns="http://www.w3.org/2000/svg" width="100%" viewBox="-21 -25 92 50"
id="sun-pie-diagram" preserveAspectRatio="none" style="float: left;">
</svg>
</div>
</div>
<div class="row" id="sun-durations"></div>
</div>
</div>
<div class="modal fade" id="localityModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">Choose city and year</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="input-group">
<input type="text" class="form-control w-50" placeholder="Start to type city name"
aria-label="City name for search" id="city-search">
<input type="number" class="form-control" placeholder="Year" aria-label="Year"
id="select-year" value="2023">
</div>
</form>
<div class="row mt-3">
<div class="col-1"></div>
<div class="col-6">
<div class="img-overlay-wrap" id="world-map-block">
<img src="images/service/Blue_Marble_2002.png" id="world-map-image" width="100%">
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"
id="world-map-canvas" style="border: solid 0px #808080;"></svg>
</div>
</div>
<div class="col-4" id="Coordinates">
<div class="row">
<div class="col">
<span style="font-weight: 500; font-size: 140%;" id="select-city"></span>
</div>
</div>
<div class="row">
<div class="col">
<span style="font-size: 90%;" id="select-region"></span>
</div>
</div>
<div class="row mt-2">
<div class="col-5" style="font-weight: 400;">Latitude:</div>
<div class="col-7" style="font-weight: 500;" id="select-lat"></div>
<input id="select-lat-field" type="number" val="0" hidden>
</div>
<div class="row">
<div class="col-5">Longitude:</div>
<div class="col-7" style="font-weight: 500;" id="select-lon"></div>
<input id="select-lon-field" type="number" val="0" hidden>
</div>
<div class="row">
<div class="col-5">Elevation:</div>
<div class="col-7" style="font-weight: 500;" id="select-elev"></div>
<input id="select-elev-field" type="number" val="0" hidden>
</div>
<div class="row">
<div class="col-5">Time zone:</div>
<div class="col-7" style="font-weight: 500;" id="select-zone"></div>
<input id="select-zone-field" type="text" val="Europe/Paris" hidden>
</div>
<!--<div class="row">
<div class="col">
<div class="form-check">
<input class="form-check-input" type="checkbox" value=""
id="flexCheckDefault" checked>
<label class="form-check-label" for="flexCheckDefault">Load elevation automatically</label>
</div>
</div>
</div>-->
</div>
<div class="col-1"></div>
</div>
</div>
<div class="modal-footer">
<button id="apply-location" type="button" class="btn btn-secondary"
data-bs-dismiss="modal">Choose
city</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="workHoursModal" tabindex="-1" aria-labelledby="work hours modal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">Working and sleeping hours</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-1"></div>
<div class="col"><strong>Work regime</strong></div>
<div class="col align-right">
<div class="input-group mb-3">
<input type="radio" name="work-regime" class="btn-check" id="work52" value="5/2">
<label class="btn btn-outline-secondary" for="work52" checked>5/2</label>
<input type="radio" name="work-regime" class="btn-check" id="work61" value="6/1">
<label class="btn btn-outline-secondary" for="work61">6/1</label>
<input type="radio" name="work-regime" class="btn-check" id="work22" value="2/2">
<label class="btn btn-outline-secondary" for="work22">2/2</label>
</div>
</div>
</div>
<div class="row mt-3">
<div class="col-1"></div>
<div class="col"><strong>Working hours</strong></div>
<div class="col-2">
<button type="button" class="btn btn-secondary" style="padding: 6px 6px 0 6px;"
id="work-add">
<span class="material-symbols-outlined">add</span>
</button>
</div>
</div>
<div id="work">
</div>
<div class="row mt-3">
<div class="col-1"></div>
<div class="col"><strong>Vacations</strong></div>
<div class="col-2">
<button type="button" class="btn btn-secondary" style="padding: 6px 6px 0 6px;"
id="vacation-add">
<span class="material-symbols-outlined">add</span>
</button>
</div>
</div>
<div id="vacation">
</div>
</div>
<div class="modal-body">
<div class="row mt-3">
<div class="col-1"></div>
<div class="col"><strong>Sleeping hours</strong></div>
<div class="col-2">
<button type="button" class="btn btn-secondary" style="padding: 6px 6px 0 6px;"
id="sleep-add">
<span class="material-symbols-outlined">add</span>
</button>
</div>
</div>
<div id="sleep">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-bs-dismiss="modal" id="apply-work-hours">Save
changes</button>
</div>
</div>
</div>
</div>
</body>
</html>