-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
301 lines (266 loc) · 12.1 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<!--
The MIT License (MIT)
Copyright (c) 2015 Chengxiong Ruan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<title>NavCog Manager</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry&key=AIzaSyD0CesMmqW2GGUrzI-TWTuadmCuVWiM6aQ"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="./vendor/markerwithlabel.js"></script>
<script src="./src/util.js"></script>
<script src="./src/NavCogGlobals.js"></script>
<script src="./src/TabDriver.js"></script>
<script src="./src/edgeInfoWinHtmlString.js"></script>
<script src="./src/nodeInfoWinHtmlString.js"></script>
<script src="./src/beaconInfoWinHtmlString.js"></script>
<script src="./src/poiInfoWinHtmlString.js"></script>
<script src="./src/NavCogManager.js"></script>
<script src="./src/NavDataStructure.js"></script>
<script src="./src/NavCogMapEditorFunction.js"></script>
<script src="./src/NavCogRegionFunction.js"></script>
<script src="./src/NavCogNodeFunction.js"></script>
<script src="./src/NavCogEdgeFunction.js"></script>
<script src="./src/NavCogBeaconFunction.js"></script>
<script src="./src/NavCogLocalization.js"></script>
<script src="./src/NavCogPOIFunction.js"></script>
<script src="./src/NavCogLogFunction.js"></script>
</head>
<body>
<div id="loading"><div id="loading_in">Loading...</div></div>
<ul class='tabs' id="tabs">
<li><a href='#tab0'>$(File)</a></li
><li><a href='#tab1'>$(Map)</a></li
><li><a href='#tab2'>$(Topology)</a></li
><li><a href='#tab4' class="hidden" id="localization-tab">$(Localization)</a></li
><li><a href='#tab3'>$(Beacons)</a></li>
</ul>
<div id="tabs-container">
<div id='tab0' class="tab">
<fieldset class="center">
<legend>$(Import Map Data) </legend>
<label for="map-data-chooser">$(Import) : </label> <input type="file" id="map-data-chooser" style="width: 200px">
</fieldset>
<fieldset class="center">
<legend>$(Export Map Data) </legend>
<label for="export-data">$(For App) </label>
<button type="button" id="export-data" onclick="saveToDowndloadFile()">$(Download)</button>
<br> <label for="export-geojson">$(GeoJSON) </label>
<button type="button" id="export-geojson" onclick="saveToDowndloadGeoJSON()" disabled>$(Download)</button>
</fieldset>
<fieldset class="center">
<legend>$(Unit of Measurement)</legend>
<select id="unit-of-measurement">
<option value="feet" selected>$(Feet)</option>
<option value="meter">$(Meter)</option>
</select>
</fieldset>
<fieldset class="center">
<legend>UI Language Setting</legend>
<!-- Do not internationalize -->
<select id="language-select">
</select>
</fieldset>
<fieldset class="center">
<legend>$(i18n)</legend>
$(Target Language): <select id="i18n-language-selection">
</select>
<button id="i18n-language-delete-button">$(Delete)</button>
<br> <select id="i18n-language-list">
</select>
<button id="i18n-language-add-button">$(Add)</button>
</fieldset>
<fieldset class="center hidden">
<legend>$(Advanced Mode)</legend>
<label for="advanced-mode-check">$(Advanced Mode): </label>
<input type="checkbox" id="advanced-mode-check">
</fieldset>
<fieldset class="center" title="$(Data will be saved in your browser)">
<legend>$(Save Locally)</legend>
<button type="button" onclick="saveLocally()">$(Save)</button>
</fieldset>
<fieldset title="$(Load remote)">
<legend>$(Load)</legend>
<div style="text-align: center">
<button type="button" onclick="loadRemote()">$(Load)</button>
</div>
</fieldset>
<fieldset title="$(Clear data in your browser)">
<legend>$(Clear)</legend>
<div style="text-align: center">
<button type="button" onclick="removeAllData()">$(Clear)</button>
</div>
</fieldset>
<fieldset class="center">
<legend>Import Log Data</legend>
<label for="map-log-chooser">$(Import) : </label> <input type="file" id="log-data-chooser" style="width: 200px">
</fieldset>
</div>
<div id='tab1' class="tab">
<fieldset class="center">
<label for="dont-use-map-check">$(Don't use Map)</label> <input type="checkbox" id="dont-use-map-check" onchange="changeDontUseMap()"><br>
</fieldset>
<fieldset>
<legend>$(Add New Layer)</legend>
$(Z-Index): <input type="text" style="width: 25px" id="map-editor-layer-input">
<button class="rightbutton" type="button" onclick="addNewLayer()">$(Add Layer)</button>
</fieldset>
<fieldset>
<legend>$(Add New Region To Current Layer)</legend>
$(Layer) : <select id="map-editor-layer-chooser"></select><br> <label for="region-image-chooser">$(Image File):</label> <input
type="file" id="region-image-chooser"><br> <label for="region-name-input">$(Region Name):</label> <input type="text"
id="region-name-input"><br> <label for="region-center-latitude">$(Latitude):</label> <input type="text"
id="region-center-latitude"><br> <label for="region-center-longitude">$(Longitude):</label> <input type="text"
id="region-center-longitude"><br> <span class="hint">$(Click the map to get Latitude & Longitude)</span><br>
<button class="rightbutton" type="button" id="region-add-new-region" onclick="addNewRegion()">$(Add New Region)</button>
</fieldset>
<fieldset>
<legend>$(Edit Region)</legend>
$(Region) : <select id="region-chooser"></select>
<button class="rightbutton" type="button" onclick="removeCurrentRegion()">$(delete)</button>
<fieldset class="center" id="region-position-editor">
<legend class="separator">$(Coordinates)</legend>
$[Move (5.0m)]:
<button type="button" id="region-position-left-large" onclick="regionLeftLarge()">←</button>
<button type="button" id="region-position-up-large" onclick="regionUpLarge()">↑</button>
<button type="button" id="region-position-down-large" onclick="regionDownLarge()">↓</button>
<button type="button" id="region-position-right-large" onclick="regionRightLarge()">→</button>
<br> $[Move (0.3m)]:
<button type="button" id="region-position-left-small" onclick="regionLeftSmall()">←</button>
<button type="button" id="region-position-up-small" onclick="regionUpSmall()">↑</button>
<button type="button" id="region-position-down-small" onclick="regionDownSmall()">↓</button>
<button type="button" id="region-position-right-small" onclick="regionRightSmall()">→</button>
</fieldset>
<fieldset class="center" id="region-image-ppm-editor">
<legend class="separator">$(Image Size)</legend>
$(Large Move):
<button type="button" id="region-image-ppm-up-large" onclick="regionSizeUpLarge()">↑</button>
<button type="button" id="region-image-ppm-down-large" onclick="regionSizeDownLarge()">↓</button>
<br> $(Small Move):
<button type="button" id="region-image-ppm-up-small" onclick="regionSizeUpSmall()">↑</button>
<button type="button" id="region-image-ppm-down-small" onclick="regionSizeDownSmall()">↓</button>
</fieldset>
<fieldset class="center" id="region-image-rotation-editor">
<legend class="separator">$(Image Rotation)</legend>
$(Large Move):
<button type="button" id="region-image-rotation-counter-large" onclick="regionCounterLarge()">↺</button>
<button type="button" id="region-image-rotation-clock-large" onclick="regionClockLarge()">↻</button>
<br> $(Small Move):
<button type="button" id="region-image-rotation-counter-small" onclick="regionCounterSmall()">↺</button>
<button type="button" id="region-image-rotation-clock-small" onclick="regionClockSmall()">↻</button>
</fieldset>
</fieldset>
<fieldset>
<legend>$(Save Locally)</legend>
<div style="text-align: center">
<button type="button" onclick="saveLocally()">$(Save)</button>
</div>
</fieldset>
</div>
<div id='tab2' class="tab">
<fieldset class="center">
<legend>$(Choose Layer)</legend>
$(Layer): <select id="topo-layer-chooser"></select>
</fieldset>
<fieldset>
<legend>$(Add Node / Edge)</legend>
<strong>$(Node)</strong>: $(Click on the map with holding "A" key)<br>
<strong>$(Edge)</strong>: $(Click on a node and another node with holding "S" key)<br>
<strong>$(POI)</strong>: $(Click on the map with holding "D" key)<br>
</fieldset>
<fieldset class="center">
<legend>$(Add New Building)</legend>
$(Building Name): <input type="text" id="topo-add-building-input" size="20">
<button type="button" onclick="addNewBuildingName()">$(Add)</button>
</fieldset>
<fieldset class="center">
<legend>$(Edit Building)</legend>
$(Building): <select id="topo-building-chooser"></select>
<button type="button" onclick="removeBuilding()">$(Delete)</button><br>
$(Building Name) <span id="building_lang"></span>:
<input type="text" id="building_lang_name" size="20"></input>
</fieldset>
<fieldset>
<legend>$(Save Locally)</legend>
<div style="text-align: center">
<button type="button" onclick="saveLocally()">$(Save)</button>
</div>
</fieldset>
</div>
<div id='tab4' class="tab">
<fieldset>
<legend>$(Add Localization)</legend>
<label for="localization-name">$(Name): </label><input type="text" id="localization-name"></input><br>
<button class="rightbutton" id="localization-add-button">$(Add)</button>
</fieldset>
<fieldset>
<legend>$(Edit Localization)</legend>
<select id="localization-select"></select><br>
<label for="localization-name-edit">$(Name): </label><input type="text" id="localization-name-edit"></input><br>
<label for="localization-type">$(Type): </label>
<select id="localization-type">
</select><br>
<div id="localization-attributes" style="white-space:nowrap"></div>
<button class="rightbutton" id="localization-delete">$(Delete)</button>
</fieldset>
<fieldset class="center">
<legend>$(Save Locally)</legend>
<div>
<button type="button" onclick="saveLocally()">$(Save)</button>
</div>
</fieldset>
</div>
<div id='tab3' class="tab">
<fieldset class="center">
<legend>$(Choose Layer)</legend>
<div>
$(Layer): <select id="beacon-info-layer-chooser"></select>
</div>
</fieldset>
<fieldset class="center">
<legend>$(Download)</legend>
<div>
$(Edge): <select id="beacon-info-edge-chooser"></select><br>
<button type="button" onclick="saveBeaconCSV()">$(Download)</button>
</div>
</fieldset>
<fieldset class="center">
<legend>$(Download Sweep Data)</legend>
<div>
<button type="button" onclick="saveSweepList()">$(Download Sweep Data)</button>
</div>
</fieldset>
<fieldset>
<legend>$(Add Beacon)</legend>
<strong>$(Beacon)</strong>: $(Click on the map with holding "A" key)<br>
</fieldset>
<fieldset class="center">
<legend>$(Save Locally)</legend>
<div>
<button type="button" onclick="saveLocally()">$(Save)</button>
</div>
</fieldset>
</div>
</div>
<div id="google-map-view" class="google-map-view-hide"></div>
</body>
</html>