-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
executable file
·348 lines (302 loc) · 19.9 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
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name=viewport content="width=device-width, initial-scale=1">
<title>Organismo</title>
<link rel="stylesheet" type="text/css" href="assets/css/style.css"/>
<link rel="stylesheet" type="text/css" href="assets/css/navigator-bar.css"/>
<link rel="stylesheet" type="text/css" href="assets/css/map.css"/>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="node_modules/bootstrap/dist/css/bootstrap-theme.min.css">
<link rel="stylesheet" type="text/css" href="node_modules/jquery-contextmenu/dist/jquery.contextMenu.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap-override.css"/>
<link rel="stylesheet" type="text/css" href="assets/css/tooltips2.css"/>
<link rel='stylesheet' type="text/css" href='node_modules/bootstrap-slider/dist/css/bootstrap-slider.min.css'/>
<link rel="stylesheet" type="text/css" href="src/third-party/patternfly-bootstrap-treeview/dist/bootstrap-treeview.min.css"/>
</head>
<body>
<nav class='mynavbar navbar-inverse'>
<div class='mynavbar-container'>
<div class='mynavbar-header'>
<span class='nav-text'>
Device URL:
</span>
<input type="text" id="device-url" style='width:8em' placeholder="localhost">
<input type="text" id="device-port" style='width:4em' value="8100">
<button id="connect-button" class="btn btn-default">Connect</button>
</div>
<div class='mynavbar-header'>
<span class='nav-text'>
Driver:
</span>
</div>
<div class='mynavbar-header'>
<div class="btn-group">
<button id="drivers-menu" type="button" class="btn btn-default">WDA</button>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a href="#" id="wda">WDA</a></li>
<li><a href="#" id="organismo">Organismo</a></li>
</ul>
</div>
</div>
<div class='mynavbar-header'>
<div class="input-group">
<span id='device-name-label' class="label label-success"></span>
<span id='device-system-version-label' class="label label-success"></span>
<span id='device-model-label' class="label label-success"></span>
<span id='testapp-name-label' class="label label-primary"></span>
<span id='testapp-version-label' class="label label-primary"></span>
<span id='testapp-bundleid-label' class="label label-primary"></span>
</div>
</div>
</div>
<div>
<ul class='mynavbar-table'>
<li class='navbar-button-up'>
<div class='nav-text'>Organismo</div>
</li>
</ul>
</div>
</nav>
<main class='background'>
<div class="container-fluid" id="content-wrapper">
<div class="row" id="content-wrapper-row">
<div id="3d-canvas-col" class="col-md-9">
<div id="threejs-canvas"></div>
<div id="org-splitter" class="org-splitter">
<span class="org-splitter-handle"></span>
</div>
</div>
<div id="right-tabs" class="col-md-3">
<div id="right-container">
<ul class="nav nav-tabs">
<li class="active">
<a href="#tab-settings" data-toggle="tab">Control</a>
</li>
<li>
<a href="#tab-tree" data-toggle="tab">UI Tree</a>
</li>
<li>
<a href="#tab-lab" data-toggle="tab">Lab (Demo)</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab-settings">
<div class="container-fluid">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Scene</h3>
</div>
<div class="panel-body">
<div class='smallCheckboxDiv'>
<input type='checkbox' id="show-device" value="true" title="show-device" checked/>
<div class='inlineCheckboxLabel'>Device Body</div>
</div>
<br>
<div class='smallCheckboxDiv'>
<input type='checkbox' id="show-floor" value="true" title="show-floor" checked/>
<div class='inlineCheckboxLabel'>Floor</div>
</div>
<br>
<div class='smallCheckboxDiv'>
<input type='checkbox' id="show-location" value="true" title="show-location" checked/>
<div class='inlineCheckboxLabel'>Location</div>
</div>
<br>
<div class='smallCheckboxDiv'>
<input type='checkbox' id="show-system-info" value="false" title="show-system-info"/>
<div class='inlineCheckboxLabel'>System Info</div>
</div>
<br>
<div class='smallCheckboxDiv'>
<input type="checkbox" id="live-screen" value="true" title="live-screen" checked/>
<div class='inlineCheckboxLabel'>Continuos Update</div>
</div>
</br>
<!--<button id='reset-camera-button' class="ui-button ui-widget ui-corner-all not-focusable">Reset Camera</button>
<button id='rotate-device-button' class="ui-button ui-widget ui-corner-all not-focusable">Rotate Device</button>
<button id='translate-device-button' class="ui-button ui-widget ui-corner-all not-focusable">Translate Device</button>
<button id='button-add-beacon' class="ui-button ui-widget ui-corner-all not-focusable">Add Beacon</button>-->
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Explore UI</h3>
</div>
<div class="panel-body">
<!--<div class="container-fluid">-->
<button id='expand-button' class="btn btn-primary btn-sm not-focusable">Expand</button>
<br/>
<div class='smallCheckboxDiv'>
<input type="checkbox" id="show-tooltips" value="false" title="show-tooltips"/>
<div class='inlineCheckboxLabel'>Tooltips</div>
</div>
<br/>
<div class='smallCheckboxDiv'>
<input type="checkbox" id="show-textures" value="true" title="textures" checked/>
<div class='inlineCheckboxLabel'>Screenshots</div>
</div>
<br/>
<div class='smallCheckboxDiv'>
<input type="checkbox" id="show-public-classes" title="show-public-classes" checked/>
<div class='inlineCheckboxLabel'>Public Classes</div>
</div>
<br/>
<div class='smallCheckboxDiv'>
<input type="checkbox" id="show-private" value="true" title="show-private" checked/>
<div class='inlineCheckboxLabel'>Private Classes</div>
</div>
<br/>
<div class='smallCheckboxDiv'>
<input type="checkbox" id="show-interactive" value="true" title="show-interactive" checked/>
<div class='inlineCheckboxLabel'>Interactive Cntrls</div>
</div>
<br/>
<div class='smallCheckboxDiv'>
<input type="checkbox" id="show-non-interactive" value="true" title="show-non-interactive" checked/>
<div class='inlineCheckboxLabel'>Non-Interactive Cntrls</div>
</div>
<br/>
<div class='smallCheckboxDiv'>
<input type="checkbox" id="show-segues" value="true" title="show-segues" checked/>
<div class='inlineCheckboxLabel'>Segues</div>
</div>
<br/>
<div class='smallCheckboxDiv'>
<input type="checkbox" id="show-gestures" value="true" title="show-gestures" checked/>
<div class='inlineCheckboxLabel'>Gestures</div>
</div>
<br/>
<div class='smallCheckboxDiv'>
<input type="checkbox" id="show-hidden-views" title="show-hidden-views"/>
<div class='inlineCheckboxLabel'>Hidden Views</div>
</div>
<br/>
<!--<div class='smallCheckboxDiv'>-->
<!--<input type="checkbox" id="show-normal-window" title="show-normal-window"/>-->
<!--<div class='inlineCheckboxLabel'>Normal Window</div>-->
<!--</div>-->
<div class='smallCheckboxDiv'>
<input type="checkbox" id="show-keyboard-window" title="show-keyboard-window" checked/>
<div class='inlineCheckboxLabel'>Keyboard Window</div>
</div>
<!--<div class='smallCheckboxDiv'>-->
<!--<input type="checkbox" id="show-alert-window" title="show-alert-window"/>-->
<!--<div class='inlineCheckboxLabel'>Alert Window</div>-->
<!--</div>-->
<div>
<span>Layers Dist:</span> <input id="ex1" data-slider-id='ex1Slider' type="text" data-slider-min="0" data-slider-max="100" data-slider-step="1" data-slider-value="0" data-slider-tooltip="hide"/>
<br/>
<span>Layers Range:</span> <input id="ex2" data-slider-id='ex1Slider' type="text" data-slider-min="0" data-slider-max="100" data-slider-step="1" data-slider-value="0" data-slider-tooltip="hide"/>
</div>
<button id='show-actors-button' class="btn btn-primary btn-sm not-focusable">Show UI Actors</button>
<br/>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="tab-tree">
<div class="container-fluid" style="padding-right: 2px; padding-left: 2px;">
<div class="row">
<div class="col-sm-8" >
<div class="panel " style="height: 44px; padding:2px; " >
<div class="panel-body" style="height: 44px; padding:2px; " >
<label type="button" class="btn btn-primary btn-sm" id='ui-tree-refresh'>Refresh</label>
</div>
</div>
<div id="ui-json-tree" style="overflow-y: auto; overflow-x: auto"></div>
</div>
<div class="col-sm-4" >
<div class="panel " style="" >
<div class="panel-body" style="padding:2px;" >
<div id="ui-json-tree-node" style="overflow-x: auto;" ></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="tab-lab">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Devices</h3>
</div>
<div class="panel-body">
<label type="button" class="btn btn-primary btn-sm" id='show-lab-devices'>Show</label>
<div class="btn-group">
<button class="btn btn-default btn-sm" type="button">Table</button>
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a href="#" id='lab-mode-table'>Table</a></li>
<li><a href="#" id='lab-mode-sphere'>Sphere</a></li>
<li><a href="#" id='lab-mode-helix'>Helix</a></li>
<li><a href="#" id='lab-mode-grid'>Grid</a></li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Lab</h3>
</div>
<div class="panel-body">
<label type="button" class="btn btn-primary btn-sm" id='show-lab-racks'>Show</label>
<!-- Small button group -->
<div class="btn-group">
<button class="btn btn-default btn-sm dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
New York <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">New York</a></li>
<li><a href="#">London</a></li>
<li><a href="#">Tokyo</a></li>
<li><a href="#">Melbourne</a></li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">World View</h3>
</div>
<div class="panel-body">
<label type="button" class="btn btn-primary btn-sm" id='show-lab-world'>Show</label>
</div>
</div>
<!-- <div class="panel-body" style="height: 44px; padding:4px; " >-->
<!-- <label type="button" class="btn btn-primary btn-sm" id='enter-lab-mode'>Devices</label>-->
<!-- </div>-->
<!-- <div class="panel-body" style="height: 44px; padding:4px; " >-->
<!-- <label type="button" class="btn btn-primary btn-sm" id='enter-lab-mode'>Racks Lab</label>-->
<!-- </div>-->
<!-- <div class="panel-body" style="height: 44px; padding:4px; " >-->
<!-- <label type="button" class="btn btn-primary btn-sm" id='enter-lab-mode'>World View</label>-->
<!-- </div>-->
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<script type="text/javascript" src="https://cdn.rawgit.com/lingtalfi/simpledrag/master/simpledrag.js"></script>
<script type="text/javascript" src='src/third-party/KeyboardState.js'></script>
<script type="text/javascript" src='src/third-party/math.min.js'></script>
<script type="text/javascript" src='src/third-party/dist.js'></script>
<script type="text/javascript" src="src/organismo/ORGMain.js"></script>
<!--<script type="text/javascript" src="node_modules/three/examples/js/loaders/OBJLoader.js"></script>-->
<!--<script type="text/javascript" src="node_modules/three/examples/js/loaders/MTLLoader.js"></script>-->
<script type="text/javascript" src='src/third-party/patternfly-bootstrap-treeview/dist/bootstrap-treeview.min.js'></script>
<script type="text/javascript" src="src/organismo/ORGSettingsControls.js"></script>
<script type="text/javascript" src="src/organismo/ORGDeviceConnectionControls.js"></script>
</body>
</html>