-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
302 lines (191 loc) · 7.24 KB
/
index.html
File metadata and controls
302 lines (191 loc) · 7.24 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline';style-src 'self' 'unsafe-inline'">
<meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<link rel="stylesheet" href="style.css">
<title>Hello World!</title>
</head>
<body>
<div id="overlay-calibration">
<div id="clarknet">
Overlay_1 <img id="mdss" src="res/spinner5.png" width="128px" height="128px">
</div>
</div>
<!-- Top status bar-->
<div id="topBarContainer">
<div id="topBar1">
<img class="logo-center" src="res/logo/logo_msmithdev.png" height="30" width="143">
</div>
<div id="topBar2">
</div>
<div id="topBarIcoContainer">
<div id="topBarIco1">
<svg id="topBarIco1svg" class="icon icon-power-red" height="30px" width="30px"><use xlink:href="res/symbol-defs.svg#icon-power"></use></svg>
</div>
<div id="topBarIco2">
<svg id="topBarIco2svg" class="icon icon-terminal" height="30px" width="30px"><use xlink:href="res/symbol-defs.svg#icon-terminal"></use></svg>
</div>
<div id="topBarIco3">
<svg id="topBarIco3svg" class="icon icon-tree" height="30px" width="30px"><use xlink:href="res/symbol-defs.svg#icon-tree"></use></svg>
</div>
<div id="topBarIco4">
<svg id="topBarIco4svg" class="icon icon-tree" height="30px" width="30px"><use xlink:href="res/symbol-defs.svg#icon-tree"></use></svg>
</div>
</div>
<div id="topBarStatus">
Status
</div>
</div>
<!-- Top status bar-->
<!-- main container-->
<div id="mainContainer">
<!-- main tabs container-->
<div id="mainTabsContainer">
<div class="tab">
<button class="tablinks" id="mainTabButton">Home</button>
<button class="tablinks" id="moveTabButton">Preset</button>
<button class="tablinks" id="gcodeTabButton">Auto Height</button>
<button class="tablinks" id="monitorTabButton">NA</button>
<button class="tablinks" id="visionTabButton">NA</button>
<button class="tablinks" id="optionsTabButton">NA</button>
<button class="tablinks" id="exitTabButton">X</button>
</div>
<!-- main tab -->
<div id="mainTab" class="tabcontent">
<div class="measureDiv">
<span class="readout">Measurement: </span>
<span id=curPos class="readout"></span>
<br>
<span class="subReadout">Last: </span>
<span id=lastPos class="subReadout"></span>
<br>
<span class="subReadout">Difference: </span>
<span id=diffPos class="subReadout"></span>
</div>
<br>
<div class="modeDiv">
<span class="subReadout">Mode: </span><span id=curMode class="subReadout">N/A</span>
<br>
<div class="modeButtons" >
<button class="functionButton" id="setModeNormal"> Normal </button>
<div class="minMaxButtons">
<button class="functionButton" id="setModeMin">Min</button>
<button class="functionButton" id="setModeMax">Max</button>
<button class="functionButton" id="setModeDelta">Delta</button>
</div>
<button class="roundFunctionButton" id="setModeDiameter">Diameter</button>
</div>
<button class="functionButton" id="setUnitMM" style="background-color:rgb(233, 153, 4);">Unit MM</button>
<button class="functionButton" id="setUnitIN" style="background-color:rgb(233, 153, 4);">Unit IN</button>
</div>
</div>
<!-- main tab -->
<!-- Move tab -->
<div id="moveTab" class="tabcontent">
<div style="display:block;">
<div style="display:flex;">
<button class="refrenceButton" id="reference">Refrence</button>
<button class="heightButton" id="presetP1">0.250"</button>
<button class="heightButton" id="presetP2">0.500"</button>
<button class="heightButton" id="presetP3">1.000"</button>
<button class="heightButton" id="presetP4">1.250"</button>
<button class="heightButton" id="presetP5">1.437"</button>
</div>
<br>
<div style="display:block;">
<input type="text" id="demo-numpad-1" class="numInput" placeholder="Custom"/><button class="heightButton" id="setPresetToVal">Set</button>
<!-- <input type="number" id="demo-numpad-2"/> -->
<!-- [3 : ATTACH THE NUMPAD TO THE HTML FIELDS] -->
<script>
window.addEventListener("load", function(){
// Bare minimum - provide the ID
numpad.attach({
id : "demo-numpad-1"
});
// The options
//numpad.attach({
//id : "demo-numpad-2",
// The target field will be set to "readonly" by default
// This is to prevent the default onscreen keyboard from showing up on mobiles
// Use this with extra care
//readonly : false,
// Allow decimal points? True by default
//decimal : false,
// Maximum allowed characters, 16 by default
// Feel free to modify the script to set a maximum allowed number instead
//max : 5
//});
});
</script>
</div>
</div>
<!-- <div id="moveLeftContainer">
<input id="testme1">
<input id="testme2">
</div>
<div id="moveRightContainer"> -->
<!-- Numeric input
<div id="moveNumericInputContainer">
<button id="numericInput7" class="numericInputButton">7</button>
<button id="numericInput8" class="numericInputButton">8</button>
<button id="numericInput9" class="numericInputButton">9</button>
<button id="numericInput4" class="numericInputButton">4</button>
<button id="numericInput5" class="numericInputButton">5</button>
<button id="numericInput6" class="numericInputButton">6</button>
<button id="numericInput1" class="numericInputButton">1</button>
<button id="numericInput2" class="numericInputButton">2</button>
<button id="numericInput3" class="numericInputButton">3</button>
<button id="numericInput0" class="numericInputButton">0</button>
<button id="numericInputDot" class="numericInputButtonDot">.</button>
<button id="numericInputBSP" class="numericInputButtonBSP">BSP</button>
</div>
Numeric input -->
</div>
</div>
<!-- Move tab -->
<!-- GCode tab -->
<div id="gcodeTab" class="tabcontent">
<button class="heightButton" id="moveHeightZero">0.000"</button>
<button class="heightButton" id="moveHeight1">1.000"</button>
<button class="heightButton" id="moveHeight2">2.000"</button>
<button class="heightButton" id="moveHeight3">3.000"</button>
<button class="heightButton" id="moveHeight4">4.000"</button>
<!-- [2 : DEFINE YOUR TEXT OR NUMBER FIELDS] -->
</div>
<!-- GCode tab -->
<!-- Monitor tab -->
<div id="monitorTab" class="tabcontent">
monitor content
</div>
<!-- Monitor tab -->
<!-- Vision tab -->
<div id="visionTab" class="tabcontent">
Vision content
</div>
<!-- Vision tab -->
<!-- Options tab -->
<div id="optionsTab" class="tabcontent">
options content
</div>
<!-- Options tab -->
<!-- Exit tab -->
<div id="exitTab" class="tabcontent">
<button id="exitApp" class="exitButton">Exit</button>
</div>
<!-- Exit tab -->
</div>
<!-- main tabs container-->
</div>
<!-- main container-->
<!-- You can also require other files to run in this process -->
<script src="res/svgxuse.js"></script>
<!-- <script src="./adeptMonitor.js"></script> -->
<!-- <script src="./adeptUtils.js"></script> -->
<script src="./sylvacUtils.js"></script>
<script src="./ui.js"></script>
<script src="./renderer.js"></script>
</body>
</html>