-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (96 loc) · 3.99 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
<!doctype html>
<html lang="en">
<head>
<title>Parking Mapper</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="./logo.svg" />
</head>
<body>
<div class="main">
<div id="map"></div>
<div id="bottom-bar">
<div id="start-here" class="toolbar toolbar-flex">
<button id="btn-start-here">Start here</button>
</div>
<div id="selection" class="toolbar toolbar-flex" style="display: none;">
<p>Move the map to desired location, then press</p>
<button id="query-parking">Get parkings</button>
</div>
<div id="loading" class="toolbar toolbar-flex" style="display: none;">
Loading parkings...
</div>
<div id="challenge" class="toolbar toolbar-two-row" style="display: none;">
<div class="toolbar-action">
<button class="action type" value="surface">surface</button>
<button class="action type" value="street_side">street side</button>
<button id="more" class="action">more …</button>
<button class="action next">next ▶</button>
</div>
<div class="toolbar-stats center">
<span id="index"></span>/<span id="total"></span>
(<span id="solved"></span> done,
<span id="skipped"></span> skipped)
</div>
</div>
</div>
</div>
<div class="remodal" data-remodal-id="modal">
<div id="welcome" class="panel">
<h2>Welcome to<br>Parking Mapper</h2>
<p>
Use this app to identify
<a href="https://wiki.openstreetmap.org/wiki/Key:parking">parking types</a>
from aerial imagery.
</p>
<div id="connected" class="div-authent" style="display: none;">
<p>Logged as: <span id="pseudo"></span></p>
<button id="start">Start</button>
<button id="logout">Logout</button>
<button class="btn-about">About</button>
</div>
<div id="disconnected" class="div-authent" style="display: none;">
<button id="connect">Connect</button>
<button class="btn-about">About</button>
</div>
</div>
<div id="about" class="panel" style="display: none;">
<div class="title">Parking Mapper</div>
<div>Version: 1.2.0</div>
<p>
<a href="https://github.com/Binnette/parking-mapper">Code source on Github</a>
</p>
<button id="back">◀ Back</button>
</div>
<div id="done" class="panel" style="display: none;">
<h2>Congratulation!</h2>
<p>You solved <span id="solved-done"></span> on <span id="total-done"></span> task(s) in this area.</p>
<button class="continue">Continue</button>
</div>
<div id="end-error" style="display: none;">
<h2>Error while sending change to server</h2>
<p id="closing-error"></p>
<button class="continue">Continue</button>
</div>
</div>
<div class="remodal" data-remodal-id="modal-more">
<div class="more-actions">
<button class="action type" value="lane">lane</button>
<button class="action type" value="underground">underground</button>
<button class="action type" value="multi-storey">multi-storey</button>
<button class="action type" value="carports">carports</button>
<button class="action type" value="rooftop">rooftop</button>
<button class="action type" value="garage_boxes">garage_boxes</button>
<hr />
<button id="fixme" class="action button">fixme=split to set type</button>
<hr />
<div class="vertical-flex">
<button id="ideditor" class="action button">✏️ in iD</button>
<button id="josmeditor" class="action button">✏️ in JOSM</button>
<button class="action next">next ▶</button>
</div>
</div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>