-
Notifications
You must be signed in to change notification settings - Fork 6
/
mobile.html
337 lines (314 loc) · 15.7 KB
/
mobile.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
<!DOCTYPE html>
<html>
<head>
<title>Oculus Prime</title>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" Content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<style type="text/css">
html, body {height: 100%; width: 100%;}
body { background-color: #151515; touch-action: manipulation; }
body, p, ol, ul, td, tr {
font-family: verdana, arial, helvetica, sans-serif;
font-size: 3vh;
color: #aaaaaa;
padding: 0px; margin: 0px;}
input, select { font-size: 100% }
.adsfTABLE { border: 0px; border-collapse: collapse; padding: 0px }
TABLE { border: none; padding: 0px; }
TR { border: 0px; }
TD { border: 1px solid black; border-style: hidden; }
a { color: #ffffff; background-color: transparent; text-decoration: none; }
a:link { color: #ffffff; background-color: transparent; text-decoration: none; }
a:visited { color: #ffffff; background-color: transparent; text-decoration: none; }
a:active { color: #000000; background-color: #ffffff; text-decoration: none; }
.status_title { text-transform: uppercase; color: #f5b219; }
.status { color: yellow; text-transform: lowercase; } /* 28872f 45F239 */
.status_info { color: #28872f; } /* 28872f 45F239 */
.overlay { background-color: #000000; filter:alpha(opacity=75); opacity: 0.75; -moz-opacity:0.75; }
.steering_button { cursor: pointer; -webkit-user-select: none; -webkit-touch-callout: none;
-moz-user-select: none; -ms-user-select: none; user-select: none; }
.boxcolor { background-color: #1b1b1b; }
.boxbg { color: #cccccc; background-color: transparent; text-decoration: none; }
.boxbg:link { color: #cccccc; background-color: transparent; text-decoration: none; }
.boxbg:visited { color: #cccccc; background-color: transparent; text-decoration: none; }
.boxbg:hover { color: #ffffff; background-color: transparent; text-decoration: none; } /* #0711AF */
.dkbluelink:link { color: #484fcd; background-color: transparent; text-decoration: none; }
.dkbluelink:visited { color: #484fcd; background-color: transparent; text-decoration: none; }
.dkbluelink:hover { color: #ffffff; background-color: transparent; text-decoration: none; } /* #0711AF */
.inputbox { background-color: #151515; color: #ffffff; border: 1px solid #666666; }
.cancelbox { color: #000000; background-color: #cccccc; padding-left: 2%; padding-right: 2%; }
.zoombutton { color: #cccccc; background-color: transparent; text-decoration: none; }
.zoombutton:hover { color: #ffffff; background-color: #666666; text-decoration: none; } /* #0711AF */
.menu { background-color: #151515; padding-left: 5%; padding-right: 5%; padding-top: 5%; padding-bottom: 0%; font-size: 3.5vh; line-height: 150%; z-index: 5; }
#messagebox { word-wrap: break-word; z-index: -1; overflow: hidden; }
#statusbox { z-index: -1; }
#mousecontrolshighlitebox { background-color: #666666; z-index: -2; }
#forwardhighlitebox { background-color: #666666; z-index: -2; }
.grey { color: #666666; }
</style>
<script src="javascript/mobile.js" type="text/javascript"></script>
<script src="javascript/map.js" type="text/javascript"></script>
<script src="javascript/comm_client.js" type="text/javascript"></script>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script src="javascript/webrtc.js" type="text/javascript"></script>
</head>
<body id="thebody" onload="mobileloaded();" onunload="driverexit();">
<div id="pagediv" style="width: 100%; height: 100%;">
<!-- VIDEO -->
<video id="stream" style="width: 100%; height: auto;" autoplay playsinline controls>Your browser doesn't support video</video>
<!-- STEERING CONTROLS -->
<table id="steeringcontrols" style="background-image: url('images/steering_icons_nospeed.png');
width: 100%; background-position: center center;
background-repeat: no-repeat; background-size: 100% 100%; background-color: transparent;
filter:alpha(opacity=60); opacity: 0.60; -moz-opacity:0.60;">
<tr>
<td class="steering_button" id="camera up"
ontouchstart="steeringmousedown(this.id);" ontouchend="steeringmouseup(this.id);"
onmousedown="steeringmousedown(this.id);" onmouseup="steeringmouseup(this.id);"> </td>
<td class="steering_button"> </td>
<td class="steering_button" id="camera horizontal"
ontouchstart="steeringmousedown(this.id);" ontouchend="steeringmouseup(this.id);"
onmousedown="steeringmousedown(this.id);" onmouseup="steeringmouseup(this.id);"> </td>
<td class="steering_button"> </td>
<td class="steering_button" id="camera down"
ontouchstart="steeringmousedown(this.id);" ontouchend="steeringmouseup(this.id);"
onmousedown="steeringmousedown(this.id);" onmouseup="steeringmouseup(this.id);"> </td>
</tr><tr>
<td class="steering_button"> </td>
<td class="steering_button"> </td>
<td class="steering_button" id="forward"
ontouchstart="steeringmousedown(this.id);" ontouchend="steeringmouseup(this.id);"
onmousedown="steeringmousedown(this.id);" onmouseup="steeringmouseup(this.id);"> </td>
<td class="steering_button" id="nudge forward"
ontouchstart="steeringmousedown(this.id);" ontouchend="steeringmouseup(this.id);"
onmousedown="steeringmousedown(this.id);" onmouseup="steeringmouseup(this.id);"> </td>
<td class="steering_button"> </td>
</tr><tr>
<td class="steering_button" id="nudge left"
ontouchstart="steeringmousedown(this.id);" ontouchend="steeringmouseup(this.id);"
onmousedown="steeringmousedown(this.id);" onmouseup="steeringmouseup(this.id);"> </td>
<td class="steering_button" id="rotate left"
ontouchstart="steeringmousedown(this.id);" ontouchend="steeringmouseup(this.id);"
onmousedown="steeringmousedown(this.id);" onmouseup="steeringmouseup(this.id);"> </td>
<td class="steering_button" id="stop"
ontouchstart="steeringmousedown(this.id);" ontouchend="steeringmouseup(this.id);"
onmousedown="steeringmousedown(this.id);" onmouseup="steeringmouseup(this.id);"> </td>
<td class="steering_button" id="rotate right"
ontouchstart="steeringmousedown(this.id);" ontouchend="steeringmouseup(this.id);"
onmousedown="steeringmousedown(this.id);" onmouseup="steeringmouseup(this.id);"> </td>
<td class="steering_button" id="nudge right"
ontouchstart="steeringmousedown(this.id);" ontouchend="steeringmouseup(this.id);"
onmousedown="steeringmousedown(this.id);" onmouseup="steeringmouseup(this.id);"> </td>
</tr><tr>
<td class="steering_button"> </td>
<td class="steering_button"> </td>
<td class="steering_button" id="backward"
ontouchstart="steeringmousedown(this.id);" ontouchend="steeringmouseup(this.id);"
onmousedown="steeringmousedown(this.id);" onmouseup="steeringmouseup(this.id);"> </td>
<td class="steering_button" id="nudge backward"
ontouchstart="steeringmousedown(this.id);" ontouchend="steeringmouseup(this.id);"
onmousedown="steeringmousedown(this.id);" onmouseup="steeringmouseup(this.id);"> </td>
<td> </td>
</tr>
</table><!-- end of mainvideoandcontrols table -->
<div id="controlsdivider" style="height: 2%"> </div>
<!-- MORE CONTROLS -->
<table id="morecontrols" style="width: 80%; margin-left: 10%; margin-right: 10%; margin-bottom: 5%; height: 6%;">
<tr>
<td id="menu button" class="steering_button"
style="background-image: url('images/menu_hamburger.png'); background-position: center center;
background-repeat: no-repeat; background-size: 100% 100%; background-color: transparent"
ontouchstart="steeringmousedown(this.id);" ontouchend="steeringmouseup(this.id);"
onmousedown="steeringmousedown(this.id);" onmouseup="steeringmouseup(this.id);"> </td>
<td class="steering_button"> </td>
<td id="publish camera" class="steering_button"
style="background-image: url('images/cam_icon.png'); background-position: center center;
background-repeat: no-repeat; background-size: 100% 100%; background-color: transparent"
ontouchstart="steeringmousedown(this.id);" ontouchend="steeringmouseup(this.id);"
onmousedown="steeringmousedown(this.id);" onmouseup="steeringmouseup(this.id);"> </td>
<td class="steering_button"> </td>
<td id="publish stop" class="steering_button"
style="background-image: url('images/cammicoff.png'); background-position: center center;
background-repeat: no-repeat; background-size: 100% 100%; background-color: transparent"
ontouchstart="steeringmousedown(this.id);" ontouchend="steeringmouseup(this.id);"
onmousedown="steeringmousedown(this.id);" onmouseup="steeringmouseup(this.id);"> </td>
<td class="steering_button"> </td>
<td id="autodock go" class="steering_button"
style="background-image: url('images/charge.png'); background-position: center center;
background-repeat: no-repeat; background-size: 100% 100%; background-color: transparent"
ontouchstart="steeringmousedown(this.id);" ontouchend="steeringmouseup(this.id);"
onmousedown="steeringmousedown(this.id);" onmouseup="steeringmouseup(this.id);"> </td>
</tr></table>
</div> <!-- end of pagediv>
<!--status box-->
<div id="statusbox" style="position: absolute;">
<span class="status_title">uplink:</span>
<span class="status" id="connection_status"> </span>
<br>
<span class="status_title">video:</span>
<span class="status" id="stream_status"> </span>
<br>
<span class="status_title">motion:</span>
<span class="status" id="motion_status"> </span>
<br>
<span class="status_title">camera tilt:</span>
<span class="status" id="cameratilt_status"> </span>
<br>
<span class="status_title">battery:</span>
<span class="status" id="battery_status"> </span>
<br>
<span class="status_title">dock:</span>
<span class="status" id="dock_status"> </span>
<br><br>
</div>
<!-- MAIN MENU -->
<div id="main_menu" class="menu" style="position: absolute; display: none;" >
<a href="javascript: closemenus();" >
<span class="cancelbox"><b>X</b></span> CLOSE</a>
<div style="height: 2%"> </div>
spotlight:
<a href="javascript: callServer('spotlight','0');">off</a>
<a href="javascript: callServer('spotlight','50');">med</a>
<a href="javascript: callServer('spotlight','100');">high</a>
<br>
video:
<a href="javascript: callServer('streamsettingsset','low');">low</a>
<a href="javascript: callServer('streamsettingsset','med');">med</a>
<a href="javascript: callServer('streamsettingsset','high');">high</a>
<br>
<a href="javascript: callServer('publish','camera');">camera</a>
<a href="javascript: callServer('publish','camandmic');">camandmic</a><br>
<a href="javascript: callServer('publish','mic');">mic</a>
<a href="javascript: callServer('publish','stop');">all off</a><br>
speed:
<a href="javascript: callServer('speed','slow');">slow</a>
<a href="javascript: callServer('speed','med');">med</a>
<a href="javascript: callServer('speed','fast');">fast</a>
<br>
text commmand:<br>
<input id="telnetcommand" type="text" size="6" class="inputbox"
onKeyPress="if (keypress(event)==13) { telnetsend(); }" >
<a href="javascript: telnetclear();">
<span class="cancelbox"><b>X</b></span></a> 
<a href="javascript: telnetsend();">
<span class="cancelbox">✔</span></a>
<br>
<a href="javascript: navigationmenu();">navigation ></a>
<br>
<a href="javascript: menu('advanced_menu')">more ></a>
<div style="height: 2%"> </div>
<div style="text-align: right">
<a href="javascript: logout();">logout</a>
</div>
</div>
<!-- ADVANCED/MORE MENU -->
<div id="advanced_menu" class="menu" style="position: absolute; display: none;" >
<a href="javascript: menu('main_menu');" >
<span class="cancelbox"><b><</b></span> BACK</a>
<a href="javascript: closemenus();" >
<span class="cancelbox"><b>X</b></span> CLOSE</a>
<div style="height: 2%"> </div>
<a href="network" target="_blank">network ↗</a>
<br>
<a href="javascript: showcommandlog();">command log ></a>
<br>
<a href="javascript: if (confirm("restart server app\nare you sure?")) {
callServer('reboot',''); }">restart server app</a>
<br>
<a href="javascript: if (confirm("reboot OS\nare you sure?")) {
callServer('reboot',''); }">reboot</a>
<br>
<a href="javascript: if (confirm("power down\nare you sure?")) {
callServer('powershutdown',''); }">power down</a>
<br>
<a href="/oculusPrime">desktop controls</a>
<div id="developermenu" style="display: none">
<a href="javascript: menu('developer_menu');">developer ></a>
</div>
</div>
<!-- COMMAND LOG MENU -->
<div id="command_log_menu" class="menu" style="position: absolute; display: none;" >
<a href="javascript: menu('advanced_menu');" >
<span class="cancelbox"><b><</b></span> BACK</a>
<a href="javascript: closemenus();" >
<span class="cancelbox"><b>X</b></span> CLOSE</a>
<br>
<a href="javascript: showcommandlog();">refresh ↻</a>
<br>
<div id="command_log_box" style="word-wrap: break-word;"> </div>
</div>
<!-- NAVIGATION MENU -->
<div id="navigation_menu" class="menu" style="position: absolute; display: none;" >
<a href="javascript: menu('main_menu');" >
<span class="cancelbox"><b><</b></span> BACK</a>
<a href="javascript: closemenus();" >
<span class="cancelbox"><b>X</b></span> CLOSE</a>
<div style="height: 2%"> </div>
Nav System <span id="navsystemstatus" class="status_info">STOPPED</span><br>
<div id="activeroutediv" class="status_info" style="display: none"> </div>
<div style="height: 2%"> </div>
<a href="javascript: callServer('startnav','');">start navigation</a><br>
<a href="javascript: callServer('stopnav','');">stop navigation</a><br>
<a href="javascript: waypointsmenu();">waypoints</a> ><br>
<a href="javascript: routesmenu();">routes</a> ><br>
<a href="navigationlog/index.html" target="_blank">navigation log ↗</a><br>
</div>
<!-- WAYPOINTS MENU -->
<div id="waypoints_menu" class="menu" style="position: absolute; display: none;" >
<a href="javascript: menu('navigation_menu');" >
<span class="cancelbox"><b><</b></span> BACK</a>
<a href="javascript: closemenus();" >
<span class="cancelbox"><b>X</b></span> CLOSE</a>
<div style="height: 2%"> </div>
<div id="waypointslist">loading...</div>
</div>
<!-- ROUTES MENU -->
<div id="routes_menu" class="menu" style="position: absolute; display: none;" >
<a href="javascript: menu('navigation_menu');" >
<span class="cancelbox"><b><</b></span> BACK</a>
<a href="javascript: closemenus();" >
<span class="cancelbox"><b>X</b></span> CLOSE</a>
<div style="height: 2%"> </div>
<div id="routeslist">loading...</div>
</div>
<!-- DEVELOPER MENU -->
<div id="developer_menu" class="menu" style="position: absolute; display: none;" >
<a href="javascript: menu('advanced_menu');" >
<span class="cancelbox"><b><</b></span> BACK</a>
<a href="javascript: closemenus();" >
<span class="cancelbox"><b>X</b></span> CLOSE</a>
<div style="height: 2%"> </div>
<!-- developer stuff here -->
</div>
<!-- LOGIN -->
<div id="login" style="display: none; background-color: #151515;
padding-left: 5%; padding-right: 5%; padding-top: 5%; padding-bottom: 0%;
font-size: 4vh; line-height: 150%; "
Login:<br>
username:
<input id="user" type="text" size="6" onKeyPress="if (keypress(event)==13) { loginsend(); }"
class="inputbox" onfocus="this.style.backgroundColor='#000000';" >
<br>
password:
<input id="pass" type="password" name="password" size="6" onKeyPress="if (keypress(event)==13) { loginsend(); }"
class="inputbox" onfocus="this.style.backgroundColor='#000000';">
<br>
<input type="checkbox" id="user_remember" name="user_remember" value="remember" checked="checked"> remember me
<br><br>
<a href="javascript: loginsend();">LOGIN</a>
</div>
<!--message box-->
<div id="messagebox" style="position: absolute;"> </div>
<!-- button highlight boxes-->
<div id="mousecontrolshighlitebox" style="display: none;
position: absolute; "> </div>
<div id="forwardhighlitebox" style="display: none; position: absolute;"> </div>
<!-- video overlay logo -->
<img id="videologo" src="images/eye.gif"
style="position: absolute; display: none; z-index: 4" alt="">
<!-- debugbox -->
<div id="debugbox" style="position: absolute; z-index: 100; left: 10px; top: 10px; display: none; "></div>
</body>
</html>