-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
253 lines (235 loc) · 8.38 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>FabMo Test App</title>
<link rel="stylesheet" href="node_modules/font-awesome/css/font-awesome.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" type="text/css" href="node_modules/bulma/css/bulma.css">
<style type="text/css">
body {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}
</style>
</head>
<body>
<div class="modal" id="modal">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title" id="txt-modal-title"></p>
<button class="delete"></button>
</header>
<section class="modal-card-body">
<div class="card-image" id="modal-image" style="display: none;">
<figure class="image">
<img id="img-modal">
</figure>
</div>
<p id="txt-modal-message" style="font-size: 1.0rem">
</p>
</section>
<footer class="modal-card-foot">
<a class="button is-danger is-large is-pulled-left" id="btn-modal-cancel">Cancel</a>
<a class="button is-success is-large is-pulled-right" id="btn-modal-ok">Ok</a>
</footer>
</div>
</div>
<nav class="nav">
<div class="nav-left">
<div class="nav-item">
<p class="control">
<a class="button is-danger" id="btn-nav-left" style="visibility: hidden">
<span class="icon">
<i class="fa fa-arrow-left"></i>
</span>
<span class="text">Left</span>
</a>
</p>
</div>
</div>
<div class="nav-center">
<div class="nav-item has-text-centered" id="txt-nav">
</div>
</div>
<div class="nav-right">
<div class="nav-item">
<div class="field is-grouped">
<p class="control">
<a class="button is-success" id="btn-nav-right" style="visibility: hidden">
<span class="text">Right</span>
<span class="icon">
<i class="fa fa-arrow-right" id="icon-btn-nav-right"></i>
</span>
</a>
</p>
</div>
</div>
</div>
</nav>
<div id="screen-home" class="screen" style="display:none;">
<section class="hero is-fullheight">
<div class="hero-body">
<div class="container">
<div class="columns is-vcentered">
<div class="column is-6 is-offset-3">
<div class="has-text-centered">
<img src="images/shopbot-logo.png" class="logo">
</div>
<div class="box">
<label class="label is-large">Work Order Number:</label>
<div class="field is-grouped">
<p class="control is-expanded has-icons-right">
<input class="input is-large" placeholder="Work Order #" id="txt-wo-number">
<span class="icon is-right" style="display:none;" id="txt-wo-number-icon">
<i class="fa fa-warning"></i>
</span>
</p>
<p class="control">
<button class="button is-large" id="btn-wo-list">
<span class="icon">
<i class="fa fa-list"></i>
</span>
</button>
</p>
</div>
<p class="control is-expanded">
<button class="button is-large is-success" style="width: 100%" id="btn-wo-go">
<span>Run Test</span>
<span class="icon">
<i class="fa fa-cube"></i>
</span>
</button>
</p>
<p class="control is-expanded">
<button class="button is-large" style="width: 100%; margin-top: 10px" id="btn-settings-go">
<span>Settings</span>
<span class="icon">
<i class="fa fa-cog"></i>
</span>
</button>
</p>
</div>
<!--
<p class="has-text-centered">
<a href="#">Help Link Maybe?</a>
</p>
-->
</div>
</div>
</div>
</div>
</div>
<div id="screen-settings" class="screen">
<section class="hero is-fullheight">
<div class="hero-body">
<div class="container">
<div class="columns is-vcentered">
<div class="column is-8 is-offset-2">
<nav class="panel is-large">
<p class="panel-heading">
Settings
</p>
<div class="panel-block">
<div class="field is-horizontal">
<div class="field-label">
<label class="label" style="white-space: nowrap;">Test Selection</label>
</div>
<div class="field-body">
<div class="control">
<div class="select">
<select id="test-select">
<option value="gantry">Gantry Assembly</option>
<option value="indexer">Indexer</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="panel-block">
<button class="button is-large is-success" style="width: 100%;" id="btn-settings-ok">
<span>Ok</span>
<span class="icon">
<i class="fa fa-check"></i>
</span>
</button>
</div>
</nav>
</div>
</div>
</div>
</div>
</section>
</div>
<div id="screen-workorder-select" class="screen" style="display: none; ">
<!--
<table class="table is-bordered">
<thead>
<tr>
<th>Work Order #</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>WO-1234</td>
<td>96x48 Gantry Beam</td>
</tr>
</tbody>
</table>
-->
<p class="title has-text-centered" style="margin-top:100px;">Work order selection is unavailable.</p>
</div>
<div id="screen-test-menu" class="screen" style="display: none;">
<section class="hero is-fullheight">
<div class="hero-body">
<div class="container">
<div class="columns is-vcentered">
<div class="column is-6 is-offset-3">
<nav class="panel is-large">
<p class="panel-heading" id="txt-test-title">
</p>
<div id="test-menu-list">
</div>
<a class="panel-block">
<p class="control">
<button class="button is-medium is-success is-outlined" style="width: 100%" id="btn-test-done">
<span class="icon">
<i class="fa fa-check"></i>
</span>
<span class="text">Done</span>
</button>
</p>
</a>
</nav>
</div>
</div>
</div>
</div>
</section>
</div>
<script type="text/javascript" src="js/lib/kinto.min.js"></script>
<script type="text/javascript">;
var kinto = new Kinto({remote: "192.168.33.91:8888/v1", bucket : 'tests'});
var gantry = kinto.collection('gantry');
var indexer = kinto.collection('indexer');
</script>
<script type="text/javascript" src="js/lib/fabmo.js"></script>
<script type="text/javascript" src="js/ui.js"></script>
<script type="text/javascript" src="js/util.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<!-- Load the tests for this installation -->
<script type="text/javascript" src="tests/tests.js"></script>
<script type="text/javascript">
(function() {
init();
})();
</script>
</body>
</html>