-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathindex.html
executable file
·332 lines (254 loc) · 14.8 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
<!--
/**
* @preserve
*
* .,,,;;,'''..
* .'','... ..',,,.
* .,,,,,,',,',;;:;,. .,l,
* .,',. ... ,;, :l.
* ':;. .'.:do;;. .c ol;'.
* ';;' ;.; ', .dkl';, .c :; .'.',::,,'''.
* ',,;;;,. ; .,' .'''. .'. .d;''.''''.
* .oxddl;::,,. ', .'''. .... .'. ,:;..
* .'cOX0OOkdoc. .,'. .. ..... 'lc.
* .:;,,::co0XOko' ....''..'.'''''''.
* .dxk0KKdc:cdOXKl............. .. ..,c....
* .',lxOOxl:'':xkl,',......'.... ,'.
* .';:oo:... .
* .cd, ╔═╗┌┬┐┬┌┬┐┌─┐┬─┐ .
* .l; ║╣ │││ │ │ │├┬┘ '
* 'l. ╚═╝─┴┘┴ ┴ └─┘┴└─ '.
* .o. ...
* .''''','.;:''.........
* .' .l
* .:. l'
* .:. .l.
* .x: :k;,.
* cxlc; cdc,,;;.
* 'l :.. .c ,
* o.
* .,
*
* ╦ ╦┬ ┬┌┐ ┬─┐┬┌┬┐ ╔═╗┌┐ ┬┌─┐┌─┐┌┬┐┌─┐
* ╠═╣└┬┘├┴┐├┬┘│ ││ ║ ║├┴┐ │├┤ │ │ └─┐
* ╩ ╩ ┴ └─┘┴└─┴─┴┘ ╚═╝└─┘└┘└─┘└─┘ ┴ └─┘
*
*
* Created by Valentin on 10/22/14.
*
* Copyright (c) 2015 Valentin Heun
*
* All ascii characters above must be included in any redistribution.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-->
<html>
<head>
<meta http-equiv="cache-control" content="max-age=0"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/>
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT"/>
<meta http-equiv="pragma" content="no-cache"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Hybrid Objects - Editor</title>
<!-- Styles -->
<link rel="stylesheet" type="text/css" href="css/index.css">
<link rel="stylesheet" href="thirdPartyCode/switchery.css" />
<!-- Javascript -->
<script src="thirdPartyCode/switchery.js"></script>
<script src="thirdPartyCode/hand.1.3.8.js"></script>
<script src="js/globalVariables.js"></script>
<script src="js/utilities.js"></script>
<script src="js/index.js"></script>
<script src="js/gui.js"></script>
<script src="js/log.js"></script>
<script src="js/eventHandlers.js"></script>
<script src="js/interactWithLines.js"></script>
<script src="js/onload.js"></script>
</head>
<body text="#ffffff">
<!---<div id="controls" class='Interfaces'
style="position: fixed; left:10px; top: 10px; width: 200px; height: 200px; -webkit-transform-style: preserve-3d;
background-color: #333333; visibility: visible"></div>--->
<!-- This is the console terminal -->
<div class='main' id="GUI"></div>
<!-- This is the div in which all the interaction will be passed
-->
<!-- This is the console terminal -->
<div class='Interfaces' id="preferences">
<div id="content1" class='Interfaces'
style="position: fixed; left: 5%; top: 7%; right: 58%; bottom: 10%; -webkit-transform-style: preserve-3d;
background-color: #a0a0a0;">
<div class='Interfaces'
style='position: relative; float: left; height: 10px; width: 100%; box-sizing: border-box; padding: 5px;
text-align: center; font-family: Helvetica Neue, Helvetica, Arial;
background-color: #aaaaaa; -webkit-transform-style: preserve-3d;'>
</div>
<div id="content11" class='Interfaces'
style='position: relative; float: left; height: 50px; width: 50%; box-sizing: border-box; padding-top: 5px;padding-left: 13px;
text-align: left; font-family: Helvetica Neue, Helvetica, Arial;
background-color: #aaaaaa; -webkit-transform-style: preserve-3d;'>
<b>Authoring: Position UI</b><br>
</div>
<div id="content12" class='Interfaces'
style='position: relative; float: left; height: 50px; width: 50%; box-sizing: border-box; padding: 5px; padding-left: 13px;
text-align: center; font-family: Helvetica Neue, Helvetica, Arial;
background-color: #aaaaaa; -webkit-transform-style: preserve-3d;'>
<input type="checkbox" name="editingModeSwitch" id="editingModeSwitch" class="js-switch"/>
</div>
<div id="content13" class='Interfaces'
style='position: relative; float: left; height: 50px; width: 50%; box-sizing: border-box; padding-top: 5px;padding-left: 13px;
text-align: left; font-family: Helvetica Neue, Helvetica, Arial;
background-color: #aaaaaa; -webkit-transform-style: preserve-3d;'>
<b>Extended Tracking</b><br>
</div>
<div id="content14" class='Interfaces'
style='position: relative; float: left; height: 50px; width: 50%; box-sizing: border-box; padding: 5px; padding-left: 13px;
text-align: center; font-family: Helvetica Neue, Helvetica, Arial;
background-color: #aaaaaa; -webkit-transform-style: preserve-3d;'>
<input type="checkbox" name="extendedTrackingSwitch" id="extendedTrackingSwitch" class="js-switch" oninput='setExtendetTracking()'/>
</div>
<div id="content15" class='Interfaces'
style='position: relative; float: left; height: 50px; width: 50%; box-sizing: border-box; padding-top: 5px;padding-left: 13px;
vertical-align: middle; text-align: left; font-family: Helvetica Neue, Helvetica, Arial;
background-color: #aaaaaa; -webkit-transform-style: preserve-3d;'>
<b>External User Interface</b><br>
</div>
<div id="content16" class='Interfaces'
style='position: relative; float: left; height: 50px; width: 50%; padding-top: 5px; box-sizing: border-box; padding-left: 13px;
text-align: left; font-family: Helvetica Neue, Helvetica, Arial;
background-color: #aaaaaa; -webkit-transform-style: preserve-3d;'><img id="loadNewUI" src="png/load.png" style="width: 99px;height: 40px;"></div>
<div id="content20" class='Interfaces'
style='position: relative; float: left; height: 55px; width: 100%; box-sizing: border-box; padding-left: 13px; padding-top: 5px; padding-bottom: 10px; margin-bottom: 3px; padding-right: 13px;
text-align: left; font-family: Helvetica Neue, Helvetica, Arial;
background-color: #aaaaaa; -webkit-transform-style: preserve-3d;'>
<input id="newURLText" style='text-align: left; font-family: Helvetica Neue, Helvetica, Arial; font-size: large; -webkit-user-select: text;'
type="url" name="newURL" size="15" placeholder="http://..." value="http://" oninput='newURLTextLoad()'><br>
</div>
<div id="content30" class='Interfaces'
style='position: relative; float: left; height: 55px; width: 50%; box-sizing: border-box; padding-top: 5px;padding-left: 13px;
text-align: left; font-family: Helvetica Neue, Helvetica, Arial;
background-color: #aaaaaa; -webkit-transform-style: preserve-3d;'>
<b>Clear Sky<br>(No Buttons)</b><br>
</div>
<div id="content31" class='Interfaces'
style='position: relative; float: left; height: 55px; width: 50%; box-sizing: border-box; right:0px; padding: 5px; padding-left: 0px;
text-align: center; font-family: Helvetica Neue, Helvetica, Arial;
background-color: #aaaaaa; -webkit-transform-style: preserve-3d;'>
<input type="checkbox" name="extendedTrackingSwitch" id="turnOffUISwitch" class="js-switch" oninput='setTurnOffUISwitch()'/>
</div>
<div id="content18" class='Interfaces'
style='position: relative; float: left; height: 320px; width: 100%; box-sizing: border-box; padding-top: 13px;padding-left: 13px; padding-right: 13px;
text-align: left; font-family: Helvetica Neue, Helvetica, Arial;
background-color: #aaaaaa; -webkit-transform-style: preserve-3d;'>
<b>Move & Scale UI</b> activate the ability to move and scale virtual user interfaces on developer objects.
<br><br>
<b>Extended Tracking</b> allows you to interact with virtual interfaces that extend the marker size, even if the marker moves outside the video frame.
<br><br>
<b>External User Interface</b> allows you to load a modified Reality Editor from an external web server.
Learn more about such modifications here: https://github.com/openhybrid/editor.
<br>
</div>
<div class='Interfaces'
style='position: relative; float: left; height: 10px; width: 100%; box-sizing: border-box; padding: 5px;
text-align: center; font-family: Helvetica Neue, Helvetica, Arial;
background-color: #aaaaaa; -webkit-transform-style: preserve-3d;'>
</div>
<!-- <div class='Interfaces'
style='position: relative; float: left; height: 30px; width: 100%; box-sizing: border-box; padding: 5px;padding-left: 13px;
text-align: left; font-family: Helvetica Neue, Helvetica, Arial;
background-color: #3c3c3c; -webkit-transform-style: preserve-3d;'>Interface Source URL
</div>
<div class='Interfaces'
style='position: relative; float: left; height: 30px; width: 100%; box-sizing: border-box; padding: 5px;padding-left: 13px;
text-align: left; font-family: Helvetica Neue, Helvetica, Arial;
background-color: #3c3c3c; -webkit-transform-style: preserve-3d;'>
<form>
<input id="interfaceSourceURL" type="text" name="firstname">
</form>
</div>
-->
</div>
<div id="content1title" class='Interfaces'
style="position: fixed; left: 5%; top: 2%; right: 58%; bottom: 89%;
font-family: Helvetica Neue, Helvetica, Arial; font-size: 18pt;
-webkit-transform-style: preserve-3d;
text-align: center;
">Settings
</div>
<div id="content2" class='Interfaces'
style="position: fixed; left: 47%; top: 7%; right: 17%; bottom: 10%; -webkit-transform-style: preserve-3d;
background-color: #a0a0a0;">
</div>
<div id="content2title" class='Interfaces'
style="position: fixed; left: 47%; top: 2%; right: 17%; bottom: 89%;
font-family: Helvetica Neue, Helvetica, Arial; font-size: 18pt;
-webkit-transform-style: preserve-3d;
text-align: center;
">Found Objects in this Network
</div>
</div>
<!-- This is the Interface frontend GUI part -->
<div class='Interfaces' id="UIButtons" style="
-webkit-transform-style: preserve-3d;
visibility: hidden;
position: fixed;
width: 100%;
height: 100%;
/* right: 18px;
top: 18px;*/
/* this is a hack for adding the interface in front of the transformed web interface */
-webkit-transform: translateZ(1px);
">
<div class='Interfaces'
style="position: fixed; width: 60px;height: 125px;right: 0px; top: 0px; -webkit-transform-style: preserve-3d; visibility: visible;">
<img class='Interfaces' id="guiButtonImage" src="png/intOneSelect.png" width="60" height="125" alt=""></div>
<div class='Interfaces' id="feezeButtonDiv"
style="position: fixed; width: 60px;height: 60px;right: 0px; top: 130px; -webkit-transform-style: preserve-3d; visibility: visible;">
<img class='Interfaces' id="feezeButton" src="png/freeze.png" width="60" height="60" alt=""/></div>
<div class='Interfaces' id="guiButtonImage1"
style="position: fixed; width: 60px;height: 60px;right: 0px; top:0px; -webkit-transform-style: preserve-3d; visibility: visible;">
</div>
<div class='Interfaces' id="guiButtonImage2"
style="position: fixed; width: 60px;height: 60px;right: 0px; top:62px; -webkit-transform-style: preserve-3d; visibility: visible;">
</div>
<div class='Interfaces' id="reloadButtonDiv"
style="position: fixed; width: 60px;height: 60px;right: 0px; top: 260px; -webkit-transform-style: preserve-3d; visibility: visible;">
<img class='Interfaces' id="reloadButton" src="png/reload.png" width="60" height="60" alt=""/></div>
<div id="logButtonDiv" style="position: fixed; width: 60px;height: 60px;right: 0px; bottom: 176px; -webkit-transform-style: preserve-3d; display:none; visibility: hidden;">
<img class='Interfaces' id="logButton" src="png/log.png" width="60" height="60" alt=""/></div>
<div class='Interfaces' id="preferencesButtonDiv"
style="position: fixed; width: 60px;height: 60px;right: 0px; top: 195px; -webkit-transform-style: preserve-3d; visibility: visible;">
<img class='Interfaces' id="preferencesButton" src="png/pref.png" width="60"
height="60" alt=""/></div>
<div class='Interfaces' id="resetButtonDiv"
style="position: fixed; width: 60px;height: 60px;right: 130px; top: 0px; -webkit-transform-style: preserve-3d; visibility: hidden;">
<img class='Interfaces' id="resetButton" src="png/reset.png" width="60"
height="60" alt=""/></div>
<div class='Interfaces' id="unconstButtonDiv"
style="position: fixed; width: 60px;height: 60px;right: 65px; top: 0px; -webkit-transform-style: preserve-3d; visibility: hidden;">
<img class='Interfaces' id="unconstButton" src="png/unconst.png" width="60"
height="60" alt=""/></div>
<!-- ontouchmove='eventTest()'-->
</div>
<canvas class="Canvas" id="canvas"></canvas>
<div class='Interfaces' id="consolelog"></div>
<div class='Interfaces' id="overlay" style="
-webkit-transform-style: preserve-3d;
display: none;
pointer-events: none;
position: fixed;
width: 120px;
height: 120px;
left: 0px;
top: 0px;
/* this is a hack for adding the interface in front of the transformed web interface */
-webkit-transform: translateZ(2px);
">
<img src="png/overlayNormal.png" id="overlayImg" height="120px" width="120px">
</div>
</body>
</html>