forked from emlid/ReachView
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
277 lines (258 loc) · 16.2 KB
/
index.html
File metadata and controls
277 lines (258 loc) · 16.2 KB
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
<!-- ReachView code is placed under the GPL license.
Written by Egor Fedorov (egor.fedorov@emlid.com)
Copyright (c) 2015, Emlid Limited
All rights reserved.
If you are interested in using ReachView code as a part of a
closed source project, please contact Emlid Limited (info@emlid.com).
This file is part of ReachView.
ReachView is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ReachView is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ReachView. If not, see <http://www.gnu.org/licenses/>. -->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
<title>ReachViewApp</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='jquery.mobile-1.4.5.min.css') }}">
<script type="text/javascript" src="{{ url_for('static', filename='jquery-1.11.2.min.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='jquery.mobile-1.4.5.min.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='d3.v3.min.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='socket.io.min.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='configs.js') }}" charset="utf-8"></script>
<script type="text/javascript" src="{{ url_for('static', filename='graph.js') }}" charset="utf-8"></script>
<script type="text/javascript" src="{{ url_for('static', filename='handlers.js') }}" charset="utf-8"></script>
<script type="text/javascript" src="{{ url_for('static', filename='main.js') }}" charset="utf-8"></script>
</head>
<body>
<!-- Status page here:-->
<div data-role="page" id="status_page">
<div data-role="header">
<div data-role="navbar" id="navbar1">
<ul>
<li><a href="#" class="tab ui-btn-active ui-state-persist">Status</a></li>
<li><a href="#config_page" class="tab">Config</a></li>
<li style="position:relative;padding-right:33.5px"><a href="#logs_page" class="tab">Logs</a><a href="#settings" data-role="button" data-icon="gear" data-iconpos="notext" style="position:absolute;right:0;top:0;width:33.5px;height:33.5px;padding:0px;"></a></li>
</ul>
</div>
</div>
<div class="ui-grid-a">
<div class="ui-block-a" id="mode_block">
<div class="ui-bar">
<b>Mode: </b><span id="mode_value"></span>
</div>
</div>
<div class="ui-block-b" id="status_block">
<div class="ui-bar">
<b>Status: </b><span id="status_value"></span>
</div>
</div>
</div>
<div class="ui-grid-b">
<div class="ui-block-a" id="lat_block">
<div class="ui-bar">
<b>Lat: </b><span id="lat_value"></span>
</div>
</div>
<div class="ui-block-b" id="lon_block">
<div class="ui-bar">
<b>Lon: </b><span id="lon_value"></span>
</div>
</div>
<div class="ui-block-c" id="height_block">
<div class="ui-bar">
<b>H: </b><span id="height_value"></span>
</div>
</div>
</div>
<!-- Canvases for the graphs!!!!!!!!!!!!!!!!!! -->
<!-- <canvas id="sat_chart_canvas"></canvas> -->
<div id="bar-chart"></div>
<!-- <div data-role="footer" data-position="fixed">
<h1>Status Footer, more information later</h1>
</div> -->
</div>
<!-- Config page here:-->
<div data-role="page" id="config_page">
<div class="loader" style='text-align:center;position:absolute;top:33.5px;width:100%;height:100%;z-index:1000;background:rgba(0,0,0,0.3);'><img src="static/images/ajax-loader.gif" alt="" style="position:relative;top:10%;"></div>
<div data-role="header">
<div data-role="navbar" id="navbar2">
<ul>
<li><a href="#status_page" class="tab">Status</a></li>
<li><a href="#" class="tab ui-btn-active ui-state-persist">Config</a></li>
<li style="position:relative;padding-right:33.5px"><a href="#logs_page" class="tab">Logs</a><a href="#settings" data-role="button" data-icon="gear" data-iconpos="notext" style="position:absolute;right:0;top:0;width:33.5px;height:33.5px;padding:0px;"></a></li>
</ul>
</div>
</div>
<div data-role="main" class="ui-content">
<form id="config_form">
<div class="ui-field-contain">
<div class="ui-body ui-field-contain" data-role="controlgroup" data-type="horizontal">
<input type="radio" name="radio_base_rover" id="radio_base" value="base">
<label for="radio_base">Base</label>
<input type="radio" name="radio_base_rover" id="radio_rover" value="rover">
<label for="radio_rover">Rover</label>
</div>
<div class="ui-field-contain" id="control_buttons">
<a href="#" class="ui-btn ui-corner-all ui-btn-inline" id="start_button">Start</a>
<a href="#" class="ui-btn ui-corner-all ui-btn-inline" id="stop_button">Stop</a>
<!-- <a href="#" class="ui-btn ui-corner-all ui-btn-inline save_configs_button" id="load_and_restart_button">Save & Load</a> -->
<a href="#" class="ui-btn ui-corner-all ui-btn-inline save_configs_button" id="save_button">Save</a>
<!-- Extra buttons are hidden in this div -->
<div class="hidden_buttons" style="display:inline-block">
<ul style="padding-left: 0;">
<li style="list-style:none;position:relative">
<a href="#" class="ui-btn ui-corner-all ui-btn-inline" id="hide_buttons_button">⋮</a>
<ul style="list-style:none;position:absolute;left:-200%;z-index:2000;display:none;background:#F9F9F9;border: 1px solid #ddd;padding-left:5px;" class="hidden_list">
<li><a href="#" class="ui-btn ui-corner-all ui-btn-inline save_configs_button" id="save_as_button" style="width:calc( 100% - 39px);">Save As...</a></li>
<li><a href="#" class="ui-btn ui-corner-all ui-btn-inline" id="delete_config_button" style="width:calc( 100% - 39px);">Delete сonfig...</a></li>
<li><a href="#" class="ui-btn ui-corner-all ui-btn-inline" id="reset_config_button" style="width:calc( 100% - 39px);z-index:999;">Reset to default</a></li>
</ul>
</li>
</ul>
</div>
<!-- end of extra buttons div -->
<!-- Popup for config delete -->
<div data-role="popup" id="popupDelete" data-theme="a" class="ui-corner-all">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div style="padding:0px 10px;width:200px;">
<label for="un" class="ui-hidden-accessible">Config title:</label>
<select name="config_delete" id="config_delete_hidden" class='available_configs'>
<option value="">...</option>
</select>
<button type="submit" class="ui-btn ui-corner-all ui-shadow ui-btn-a ui-btn-icon-left ui-icon-check" id="config-delete-submit">Delete config</button>
</div>
</div>
<!-- end of popup -->
<!-- Popup for config save as -->
<div data-role="popup" id="popupLogin" data-theme="a" class="ui-corner-all">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div style="padding:0px 10px;width:200px;">
<label for="un" class="ui-hidden-accessible">Config title:</label>
<select name="config_select" id="config_select_hidden" class='available_configs'>
<option value="">...</option>
</select>
<input type="text" name="config-title" id="un" value="" placeholder="Enter new title" data-theme="a">
<span class='conf_tail' style="position:relative;top:15px;font-weight: bold;width:15px;">.conf</span>
<span class="space_alert" style='color:red;display:none;'>Config title can contain only latin symbols, numbers and "_", "-".</span>
<button type="submit" class="ui-btn ui-corner-all ui-shadow ui-btn-a ui-btn-icon-left ui-icon-check" id="config-title-submit">Save</button>
</div>
</div>
<!-- end of popup -->
<!-- Popup for config save -->
<div data-role="popup" id="popupSave">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div data-role="header">
<h1>Save config</h1>
</div>
<div data-role="main" class="ui-content">
<p>Do you want to load current config after save?</p>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a" data-transition="flow" id="config-save-load-submit">Yes</a>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a" id="config-save-submit">No</a>
</div>
<div data-role="footer">
<h1> </h1>
</div>
</div>
<!-- Popup for input change-->
<div data-role="popup" id="popupDialog">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div data-role="header">
<h1>Warning</h1>
</div>
<div data-role="main" class="ui-content">
<p>Changing this input will make onboard receiver inaccessible to RTKLIB.</p>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a" data-rel="back" data-transition="flow" id="acceptChange">OK</a>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a" data-rel="back" id="denyChange">Cancel</a>
</div>
<div data-role="footer">
<h1> </h1>
</div>
</div>
<!-- end of popup-->
<!-- Popup for empty base position-->
<div data-role="popup" id="popupPos">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<div data-role="header">
<h1>Warning</h1>
</div>
<div data-role="main" class="ui-content">
<p>All base coordinates must be entered to achieve float or fixed solution</p>
<a href="#" class="ui-btn ui-corner-all ui-shadow ui-btn-inline ui-btn-a" data-rel="back" data-transition="flow" id="acceptChange">OK</a>
</div>
<div data-role="footer">
<h1> </h1>
</div>
</div>
<!-- end of popup-->
</div>
<div class="ui-body ui-field-contain" data-role="controlgroup" data-type="horizontal">
<select name="config_select" id="config_select" class='available_configs'>
<option value="">...</option>
</select>
</div>
<div class="ui-field-contain" id="config_buttons"></div>
<div id="config_form_column_space"></div>
</div>
</form>
</div>
</div>
<!-- Logs page here:-->
<div data-role="page" id="logs_page">
<div data-role="header">
<div data-role="navbar" id="navbar3">
<ul>
<li><a href="#status_page" class="tab">Status</a></li>
<li><a href="#config_page" class="tab">Config</a></li>
<li style="position:relative;padding-right:33.5px"><a href="#logs_page" class="tab ui-btn-active ui-state-persist">Logs</a><a href="#settings" data-role="button" data-icon="gear" data-iconpos="notext" style="position:absolute;right:0;top:0;width:33.5px;height:33.5px;padding:0px;"></a></li>
</ul>
</div>
</div>
<div data-role="main" class="ui-content">
<div id="ui-bar-test" class="ui-bar ui-bar-a ui-corner-all empty_logs" style="display:none;">
<p>There are currently no logs available</p>
</div>
<ol data-role="listview" data-inset="true" id="logs_list">
{% for log in logs %}
<li><a href="/logs/{{ log.name }}" target="_blank" class="log_string">{{ log.name }},{{ log.size }}</a><a href="#" data-role="button" data-icon="delete" data-iconpos="notext" class='delete-log-button'>Delete</a></li>
{% endfor %}
</ol>
</div>
</div>
<div data-role="page" id="settings">
<div data-role="header">
<div data-role="navbar" id="navbar3">
<ul>
<li><a href="#status_page" class="tab">Status</a></li>
<li><a href="#config_page" class="tab">Config</a></li>
<li style="position:relative;padding-right:33.5px"><a href="#logs_page" class="tab">Logs</a><a href="#settings" data-role="button" class="tab ui-btn-active ui-state-persist" data-icon="gear" data-iconpos="notext" style="position:absolute;right:0;top:0;width:33.5px;height:33.5px;padding:0px;"></a></li>
</ul>
</div>
</div>
<div data-role="main" class="ui-content">
<div id="ui-bar-test" class="ui-bar ui-bar-a ui-corner-all" style="margin-bottom:1em;">
<p>Network: {{ network_status.ssid }}</p>
<p>IP: {{ network_status.ip_address }}</p>
<a href="http://reach.local:5000" class="ui-btn ui-corner-all ui-btn-inline" target="_blank" id="wifi_link">Wi-Fi setup</a>
</div>
<div class="ui-field-contain" id="update_buttons">
<div id="ui-bar-test" class="ui-bar ui-bar-a ui-corner-all" style="margin-bottom:1em;">
<p>Current version: {{ app_version }}</p>
<a href="#" class="ui-btn ui-corner-all ui-btn-inline" id="update_button" style="float:left">Update</a><span class='connect' style="color:red;font-size:12px;"></span>
<div class="load_update" style="height:44px;float:left;position:relative;display:none;">
<img src="static/images/update_loader.gif" style="height:54px;">
<p style="position:absolute;top:0px;left:0px;color:red;width:54px;text-align:center;">120</p>
</div>
<p style="clear:both">During update ReachView will go inactive for about a minute. Wait for the LED to start blinking again, then reconnect.</p>
</div>
</div>
</div>
</div>
</body>
</html>