-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
447 lines (407 loc) · 15.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>OHDM</title>
<meta http-equiv="content-type" content="text/html" charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="OpenHistoricalDataMap Webmapping">
<meta name="author" content="Sebastian Jüngling">
<meta name="keywords"
content="OpenHistoricalDataMap, OHDM, HTW, HTW-Berlin, Webmapping, Webmap, map">
<!-- replace favicon icon here! -->
<link rel="shortcut icon" href="ressources/favicon.ico"
type="image/x-icon">
<link rel="icon" href="ressources/favicon.ico" type="image/x-icon">
<!-- CSS FILES -->
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="css/ol.css" type="text/css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!--
top navbar
-->
<div class="navbar-container">
<nav class="navbar navbar-expand-md navbar-light top-nav">
<nav class="navbar navbar-light">
<!-- replace OHDM LOGO here !-->
<span class="navbar-brand navbar-brand-long"> <a href="/index.html"><img
src="https://dummyimage.com/30x30/76B90/fff.png&text=LOGO"
width="30" height="30" class="d-inline-block align-top" alt=""></a>
OpenHistoricalDataMap
</span> <span class="navbar-brand navbar-brand-short"> <img
src="https://dummyimage.com/30x30/76B90/fff.png&text=LOGO"
width="30" height="30" class="d-inline-block align-top" alt="">
OHDM
</span>
</nav>
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<form class="form-inline mobile-hidden">
<div class="btn-group" role="group">
<button type="button" class="btn btn-light">Bearbeiten</button>
<!-- <div class="dropdown">
<button class="btn btn-light dropdown-toggle edit-dropdown" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</div> -->
<button type="button" class="btn btn-light">Chronik</button>
<button type="button" class="btn btn-light">Export</button>
</div>
</form>
<ul class="navbar-nav ml-auto">
<!-- <li class="nav-item"><a class="nav-link" href="#">Home</a></li>
<li class="nav-item"><a class="nav-link" href="#">Link</a></li> -->
<li class="nav-item dropdown"><a
class="nav-link dropdown-toggle" href="#" id="navbarDropdown"
role="button" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false"> mehr </a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Hilfe</a> <a
class="dropdown-item" href="#">Über</a>
<!-- <div class="dropdown-divider"></div> -->
<a class="dropdown-item" href="#">Urheberrecht</a>
</div></li>
</ul>
<form class="form-inline">
<div class="btn-group LoginRegisterGroup" role="group">
<button type="button" class="btn btn-light" data-toggle="modal"
data-target="#loginModal">Anmelden</button>
<button type="button" class="btn btn-light" data-toggle="modal"
data-target="#registerModal">Registrieren</button>
</div>
</form>
</div>
</nav>
</div>
<!--
modals
-->
<!-- login modal -->
<div class="modal fade" id="loginModal" tabindex="-1" role="dialog"
aria-labelledby="loginModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="loginModalLabel">Anmelden</h5>
<button type="button" class="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="inputLoginEmail">E-Mail Adresse oder Benutzername</label> <input
type="email" class="form-control" id="inputLoginEmail"
aria-describedby="emailHelp" placeholder="E-Mail oder Benutzername">
</div>
<div class="form-group">
<label for="inputLoginPassword">Passwort</label> <input
type="password" class="form-control" id="inputLoginPassword"
placeholder="Passwort">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light">Anmelden</button>
</div>
</div>
</div>
</div>
<!-- register modal -->
<div class="modal fade" id="registerModal" tabindex="-1" role="dialog"
aria-labelledby="registerModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="registerModalLabel">Registrieren</h5>
<button type="button" class="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="inputRegisterEmail">E-Mail</label> <input
type="email" class="form-control" id="inputRegisterEmail"
aria-describedby="emailHelp" placeholder="E-Mail">
</div>
<div class="form-group">
<label for="inputRegisterEmail2">E-Mail wiederholen</label> <input
type="email" class="form-control" id="inputRegisterEmail2"
aria-describedby="emailHelp" placeholder="E-Mail wiederholen">
</div>
<div class="form-group">
<label for="inputUserName">Benutzername</label> <input
type="email" class="form-control" id="inputUserName"
aria-describedby="emailHelp" placeholder="Benutzername">
</div>
<div class="form-group">
<label for="inputRegisterPassword">Passwort</label> <input
type="password" class="form-control" id="inputRegisterPassword"
placeholder="Passwort">
</div>
<div class="form-group">
<label for="inputRegisterPassword2">Passwort wiederholen</label> <input
type="password" class="form-control" id="inputRegisterPassword2"
placeholder="Passwort wiederholen">
</div>
</form>
<div>
<div>
<label id="privacy"><input type="checkbox" checked="checked">
Hiermit bestätige ich, dass ich die <a id="privacylink" href="/privacy.html" target="_blank">
Datenschutzerklärung</a>(nicht fertig, nur zur Veranschaulichung) gelesen und
meine personenbezogenen Daten (Name, Vorname, Emailadresse) zum Zwecke der
Bearbeitung meiner Anfrage durch die Plattform OpenHistoricalDataMap gespeichert und
weiterverarbeitet werden.
</label>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light">Registrieren</button>
</div>
</div>
</div>
</div>
<div id="map-container">
<!--
map
-->
<div id="map"></div>
<!-- <div class="side-menu left-side-menu left-side-menu-open">
<div class="input-group" id="search-controll-container">
<input type="text" class="form-control" placeholder="Suchen"
id="search-controll-input">
<button type="button" class="btn btn-light"
id="search-controll-button">Los</button>
</div>
<div class="left-menu-content">
<div class="search">
<div class="side-menu-heading">Suchergebnisse:</div>
<div class="search-controll-results">
<ul class="search-controll-results-list">
</ul>
</div>
</div>
</div>
</div> -->
<!--
right buttons
-->
<div class="controll-container">
<div class="side-menu-button" title="Suche">
<a href="#" id="search"> <img class="icon"
src="ressources/icons/search.svg" alt="Suche">
</a>
</div>
<div class="side-menu-button" title="Zeit einstellen">
<!-- <a href="#" id="settings"> <img class="icon"
src="ressources/icons/cog.svg" alt="Einstellungen">
</a> -->
<a href="#" id="settings"> <img class="icon"
src="ressources/icons/clock.svg" alt="Einstellungen">
</a>
</div>
<div class="side-menu-button" title="Layer-Auswahl">
<a href="#" id="layer"> <img class="icon"
src="ressources/icons/layers.svg" alt="Layer">
</a>
</div>
<div class="side-menu-button" title="Legende">
<a href="#" id="legend"> <img class="icon"
src="ressources/icons/info-with-circle.svg" alt="Legende">
</a>
</div>
<div class="side-menu-button" title="Routenplaner">
<a href="#" id="routes" ><img class="icon"
src="ressources/icons/route.svg" alt="Routenplaner">
</a>
</div>
<div class="side-menu-button" title="Karte Exportieren">
<a href="#" id="export" ><img class="icon"
src="ressources/icons/export.svg" alt="Karte Exportieren">
</a>
</div>
</div>
<!--
right menu
-->
<div class="side-menu right-side-menu right-side-menu-closed">
<!-- search menu -->
<div id="search-menu">
<div class="side-menu-heading">
<span class="close-menu"><img class="close-icon"
src="ressources/icons/cross.svg" alt="Schließen"></span>
<h5>Suche</h5>
</div>
<div class="side-menu-content">
<div class="input-group" id="search-controll-container">
<input type="text" class="form-control" placeholder="Suchen"
id="search-controll-input">
<button type="button" class="btn btn-light"
id="search-controll-button">Los</button>
</div>
<div class="search">
<div class="search-controll-results">
<ul class="search-controll-results-list">
<!--gets filled by geocoding.js-->
</ul>
</div>
</div>
</div>
</div>
<!-- layer menu -->
<div id="layer-menu">
<div class="side-menu-heading">
<span class="close-menu"><img class="close-icon"
src="ressources/icons/cross.svg" alt="Schließen"></span>
<h5>Layers</h5>
</div>
<div class="side-menu-content">Hier könnte es verschiedene
Basemaps zur Auswahl geben, wenn es evtl. bald mehrere Styles
gibt.</div>
</div>
<!-- layer menu -->
<div id="legend-menu">
<div class="side-menu-heading">
<span class="close-menu"><img class="close-icon"
src="ressources/icons/cross.svg" alt="Schließen"></span>
<h5>Legende</h5>
</div>
<div class="side-menu-content">Hier würde die Legende stehen,
abhängig vom Style der aktuellen Basemap</div>
</div>
<!-- settings menu -->
<div id="settings-menu">
<div class="side-menu-heading">
<span class="close-menu"><img class="close-icon"
src="ressources/icons/cross.svg" alt="Schließen"></span>
<h5>Einstellungen</h5>
</div>
<div class="side-menu-content">
<div class="container">
<div class="row">
<label for="year-select" class="side-menu-label col-6 ">Jahr</label>
<select id="year-select" class="custom-select col-6 "></select>
<script src="/js/date.js"></script>
<label for="month-select" class="side-menu-label col-6 ">Monat</label>
<select id="month-select" class="custom-select col-6 select-month"></select>
<label for="day-select" class="side-menu-label col-6 ">Tag</label>
<select id="day-select" class="custom-select col-6 select-day"></select>
</div>
<div class="row">
<button id="getTime" type="button" class="btn btn-light apply-time col-12">übernehmen</button>
</div>
</div>
</div>
</div>
<!-- routes menu -->
<div id="routes-menu">
<div class="side-menu-heading">
<span class="close-menu"><img class="close-icon"
src="ressources/icons/cross.svg" alt="Schließen"></span>
<h5>Routenplaner</h5>
</div>
<div class="side-menu-content">
<form method="post" action="PlanRoute">
<div class="container">
<div class="row">
<input style="margin-bottom: 10px;" type="number" class="form-control col-6" name="start-lat" placeholder="Latitude" id="route-start-control-lat-input">
<input style="margin-bottom: 10px;" type="number" class="form-control col-6" name="start-lon" placeholder="Longitude" id="route-start-control-lon-input">
<input style="margin-bottom: 10px;" type="number" class="form-control col-6" name="ziel-lat" placeholder="Latitude" id="route-target-control-lat-input">
<input style="margin-bottom: 10px;" type="number" class="form-control col-6" name="ziel-lon" placeholder="Longitude" id="route-target-control-lon-input">
<select style="margin-bottom: 10px;" id="class-of-person" name="class-of-person" class="custom-select col-12 custom-select">
<option value="farmer">Bauer</option>
<option value="noble">Adliger</option>
</select>
<select style="margin-bottom: 10px;" id="transport-type" name="transport-type" class="custom-select col-12 custom-select">
<option value="walking">Wandern</option>
<option value="horse">Reiten</option>
<option value="carriage">Pferdekutsche</option>
<option value="boat">Schiff</option>
<option value="bycicle">Fahrrad</option>
<option value="car">Auto</option>
</select>
<div class="waterwayincl-container">
<label for="waterwayincl" class="checkbox-label">Wasserweg erlauben
<input type="checkbox" name="waterwayincl" id="waterwayincl">
<span class="checkmark"></span>
</label>
</div>
</div>
<div class="row">
<input type="submit" class="btn btn-light apply-time col-12" value="übernehmen"></input>
</div>
<div class="row">
<p id="route-time"></p>
</div>
</div>
</form>
</div>
</div>
<div id="export-menu">
<div class="side-menu-heading">
<span class="close-menu"><img class="close-icon"
src="ressources/icons/cross.svg" alt="Schließen"></span>
<h5>Karte exportieren</h5>
</div>
<div class="side-menu-content">
<div class="container">
<div class="row">
<div class="form-export-container">
<form id="form-export" action="">
<input type="text" name="max-lat" class="form-control col-5 form-export-entry " id="max-lat">
<br style="height: 2rem;">
<input type="text" name="min-lon" class="form-control col-5 form-export-entry " id="min-lon">
<input type="text" name="max-lon" class="form-control col-5 form-export-entry " id="max-lon">
<br style="height: 2rem;">
<br style="height: 2rem;">
<br style="height: 2rem;">
<input type="text" name="min-lat" class="form-control col-5 form-export-entry" id="min-lat">
</form>
</div>
</div>
<div class="row">
<button onclick="exportMap()" type="button" class="btn btn-light apply-time col-12">übernehmen</button>
</div>
<div class="side-menu-content">
Hier können Sie Karten exportieren,
diese stehen dann auch für den <a href="">Android Offline Viewer</a> verfügbar.
</div>
<div class="row">
<a href="/export.html" type="button" class="btn btn-light apply-time col-12">Bereits exportierte Karten</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- JS FILES -->
<script src="js/libs/jquery-3.2.1.min.js"></script>
<!-- this requires bootstrap; its for layovers -->
<script src="js/libs/popper.min.js"></script>
<script src="js/libs/bootstrap.min.js"></script>
<script src="js/libs/ol.js"></script>
<script src="js/setup.js"></script>
<script src="js/layers.js"></script>
<script src="js/map.js"></script>
<script src="js/updateTime.js"></script>
<script src="js/menu.js"></script>
<script src="js/geocoding.js"></script>
<script src="js/route.js"></script>
<script src="js/date.js"></script>
</body>
</html>