-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodel.html
More file actions
398 lines (367 loc) · 39.5 KB
/
Copy pathmodel.html
File metadata and controls
398 lines (367 loc) · 39.5 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
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
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
<html>
<head>
<title>Dexto</title>
<!-- Bootstrap Core CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
<link href="css/material-fullpalette.min.css" rel="stylesheet">
<link href="css/ripples.min.css" rel="stylesheet">
<!-- Plugin CSS -->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,300,100,500' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/animate.min.css" type="text/css">
<!-- Custom CSS -->
<link rel="stylesheet" href="style/model.css" type="text/css">
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="57x57" href="favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="favicons/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="favicons/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="favicons/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="favicons/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="favicons/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="favicons/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="favicons/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="favicons/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="favicons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="favicons/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="favicons/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="favicons/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="favicons/manifest.json">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-TileImage" content="favicons/mstile-144x144.png">
<meta name="theme-color" content="#ffffff">
</head>
<body>
<nav class="navbar navbar-fixed-top navbar-material-grey-50" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">
<svg class="logo "width="1300" height="700" xmlns="http://www.w3.org/2000/svg">
<g style="pointer-events:all">
<title style="pointer-events: none" opacity="0.33">Layer 1</title>
<g transform="scale(1) translate(-700, -10)">
<path id="svg_1" stroke-width="28" fill="none" transform="rotate(19.972639083862305 976.6520080566406,386.00401306152344)" stroke="#000" stroke-dasharray="none" d="M 863.881 451.986 C 907.695 534.924 996.002 522.891 1040.07 502.327 C 1084.12 481.763 1109.77 438.09 1112.87 395.911 C 1115.99 353.732 1098.48 311.887 1073.8 286.776 C 1049.12 261.665 1002.56 237.084 944.583 251.283 C 886.607 265.482 837.314 319.212 849.753 397.519"></path>
<rect fill="#000000" stroke-width="34.5" fill-opacity="null" x="833.8118204488372" y="393.1437904488373" width="28.51998" height="29.90532" id="svg_12" rx="100" stroke="null" stroke-dasharray="none"></rect>
<rect fill="#000000" stroke-width="34.5" fill-opacity="null" x="838.0596331698608" y="343.741813211441" width="29.28924" height="27.13573" id="svg_15" rx="100" stroke="null" stroke-dasharray="none" transform="rotate(-21.811731338500977 852.7042236328127,357.3096923828123) "></rect>
<path fill="none" stroke-width="37" id="svg_20" d="M1062.64404,276.11649C1071.87402,179.19489 1075.7218,46.11769 1077.95129,25.34825" transform="rotate(-19.12784194946289 1062.6440429687502,276.1164855957031) " stroke="#000000"></path>
<path fill="#000000" stroke-width="34.5" fill-opacity="null" id="svg_22" transform="rotate(-4.6022257804870605 1115.7620849609384,223.44752502441662) " d="M1090.07483,345.52222C1139.65735,152.79982 1139.91919,146.29593 1141.3197,128.37047C1142.72058,110.44506 1132.48645,103.0109 1124.94543,101.66435C1117.4043,100.31773 1105.97363,102.8904 1101.91992,125.68921L1090.07483,345.52222z" stroke="null"></path>
<path fill="#000000" stroke-width="34.5" fill-opacity="null" id="svg_23" transform="rotate(-16.22279167175293 1083.4732666015625,188.13410949707043) " d="M1056.44128,322.93054C1061.03247,309.26697 1098.82678,157.08517 1103.75842,132.89906C1108.69006,108.71293 1111.18469,101.87424 1110.34485,83.17556C1109.505,64.47782 1100.56714,55.53632 1093.46765,53.66569C1086.36755,51.795 1074.17139,57.56998 1069.84607,80.28957L1056.44128,322.93054z" stroke="null"></path>
<rect fill="#000000" stroke-width="34.5" fill-opacity="null" x="977.44415" y="19.73813" width="38.19279" height="40.82145" id="svg_24" rx="100" transform="rotate(-13.443306922912598 996.5410766601562,40.148872375488594) " stroke="null"></rect>
</g>
</g>
</svg>
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="model">Start</a></li>
<li><a href="dashboard">Dashboard</a></li>
<li><a href="/" class="home">
<svg class="logo "width="1300" height="700" xmlns="http://www.w3.org/2000/svg">
<g style="pointer-events:all">
<title style="pointer-events: none" opacity="0.33">Layer 1</title>
<g transform="scale(1) translate(-700, -10)">
<path id="svg_1" stroke-width="28" fill="none" transform="rotate(19.972639083862305 976.6520080566406,386.00401306152344)" stroke="#000" stroke-dasharray="none" d="M 863.881 451.986 C 907.695 534.924 996.002 522.891 1040.07 502.327 C 1084.12 481.763 1109.77 438.09 1112.87 395.911 C 1115.99 353.732 1098.48 311.887 1073.8 286.776 C 1049.12 261.665 1002.56 237.084 944.583 251.283 C 886.607 265.482 837.314 319.212 849.753 397.519"></path>
<rect fill="#000000" stroke-width="34.5" fill-opacity="null" x="833.8118204488372" y="393.1437904488373" width="28.51998" height="29.90532" id="svg_12" rx="100" stroke="null" stroke-dasharray="none"></rect>
<rect fill="#000000" stroke-width="34.5" fill-opacity="null" x="838.0596331698608" y="343.741813211441" width="29.28924" height="27.13573" id="svg_15" rx="100" stroke="null" stroke-dasharray="none" transform="rotate(-21.811731338500977 852.7042236328127,357.3096923828123) "></rect>
<path fill="none" stroke-width="37" id="svg_20" d="M1062.64404,276.11649C1071.87402,179.19489 1075.7218,46.11769 1077.95129,25.34825" transform="rotate(-19.12784194946289 1062.6440429687502,276.1164855957031) " stroke="#000000"></path>
<path fill="#000000" stroke-width="34.5" fill-opacity="null" id="svg_22" transform="rotate(-4.6022257804870605 1115.7620849609384,223.44752502441662) " d="M1090.07483,345.52222C1139.65735,152.79982 1139.91919,146.29593 1141.3197,128.37047C1142.72058,110.44506 1132.48645,103.0109 1124.94543,101.66435C1117.4043,100.31773 1105.97363,102.8904 1101.91992,125.68921L1090.07483,345.52222z" stroke="null"></path>
<path fill="#000000" stroke-width="34.5" fill-opacity="null" id="svg_23" transform="rotate(-16.22279167175293 1083.4732666015625,188.13410949707043) " d="M1056.44128,322.93054C1061.03247,309.26697 1098.82678,157.08517 1103.75842,132.89906C1108.69006,108.71293 1111.18469,101.87424 1110.34485,83.17556C1109.505,64.47782 1100.56714,55.53632 1093.46765,53.66569C1086.36755,51.795 1074.17139,57.56998 1069.84607,80.28957L1056.44128,322.93054z" stroke="null"></path>
<rect fill="#000000" stroke-width="34.5" fill-opacity="null" x="977.44415" y="19.73813" width="38.19279" height="40.82145" id="svg_24" rx="100" transform="rotate(-13.443306922912598 996.5410766601562,40.148872375488594) " stroke="null"></rect>
</g>
</g>
</svg>
</a></li>
<li><a href="developer"> Developer </a></li>
<li><a href="contact"> Contact </a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<div class="modal fade" id="startModal" tabindex="-1" role="dialog" aria-labelledby="startModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="startModalLabel">Calibration</h4>
</div>
<div class="modal-body">
<div id="totalProg" class="progress">
<div id="progress" class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 0%;">
<span class="sr-only">0% Complete</span>
</div>
</div>
<div class="alert alert-info shadow-z-1" role="alert">
<span class="glyphicon glyphicon-check" aria-hidden="true"></span>
<span class="sr-only">Error:</span> In order to use the 3D Viewer you need to calibrate your Myo.
</div>
<div id="myo-connect" class="alert alert-danger shadow-z-1" role="alert">
<span id="myo-connect-icon" class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span class="sr-only">Error:</span>
<span class="myo-connect-desc">Make sure to connect your Myo</span>
</div>
<center>
<svg width="343" height="254" xmlns="http://www.w3.org/2000/svg">
<!-- Created with Method Draw - http://github.com/duopixel/Method-Draw/ -->
<g>
<title>background</title>
<rect x="-1" y="-1" width="345" height="256" id="canvas_background" fill="none"/>
</g>
<g>
<title>Layer 1</title>
<path id="svg_28" d="m182.83943,111.42042c-5.5,-2.6 -5.79999,-10.1 -6.40002,-16.1c-1.79999,-16.9 -12.29999,-31.40003 -19.09998,-46.90002c-2.90002,-6.5 -5,-13.20001 -7.20001,-20c-2,-5.89999 -4.39996,-16.70001 -6,-21.80002c-0.70001,-2 -1.59998,-2.39999 -1.59998,-2.39999c-4.20001,-2 -9.40002,0.39999 -12,4.30002c-2.60004,3.89999 -3.00002,8.79999 -2.7,13.5c0.49998,8.89999 2.99999,17.5 3.40002,26.29999c0.39995,10.1 -2.40001,20.1 -7.70004,28.79998" stroke-miterlimit="10" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="#00BBDE" fill="none"/>
<path id="svg_29" d="m84.83942,70.02042c-16.2,-9.10001 -32.8,-19.10001 -48.39999,-29.29999c-3.9,-2.60001 -9.10001,-6.30002 -8,-11.5c1.29999,-5.20001 6,-5.40002 10.19998,-3.5c8.60001,3.79999 17.10001,8.19998 25.5,13.19998c9,5.4 16.5,9.30002 27.30001,14.9c11.19997,5.80001 29.89999,17.40002 36.59999,11.80001" stroke-miterlimit="10" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="#00BBDE" fill="none"/>
<path id="svg_30" d="m84.83942,70.02042c-0.8,2.20001 -2.5,8.10001 -3.3,10.20001" stroke-miterlimit="10" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="#00BBDE" fill="none"/>
<path id="svg_31" d="m81.13942,80.22044c-22.10002,-4.8 -41.7,-15.8 -63.8,-22.10001c-3.30002,-0.89999 -9.40002,-2.69998 -12,0.10001c-4.70001,5.20001 0.5,9.70002 5.59998,11.79999c20.70001,8.40002 41.20001,15.80003 62.5,22.5" stroke-miterlimit="10" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="#00BBDE" fill="none"/>
<path id="svg_32" d="m73.73944,92.62041c0.1,1.30003 0.29996,4.10001 0.39999,5.4c-8.39996,0.80002 -16.7,0.70001 -24.79999,1.20001c-10.20001,0.70001 -25.79999,1.39999 -30.79999,1.60001c-7.30001,0.29998 -14.40002,-0.5 -14,6.89999c0.29999,4.39999 4.79999,6.29999 9,6.5c20.5,1.29999 38.3,0.89999 55.7,0.89999l1.6,0c1,2.20002 3.3,6.5 4.3,8.80003c-15.79999,6.39999 -43.5,12.39999 -49.09998,13.89999c-8.40002,2 -5.40002,12.19998 3.4,11.19998c13.6,-1.3 23.79999,-2.19998 37.4,-4.8c8.10001,-1.60001 21.29998,-1 25.20002,0c2.09998,0.5 15.3,7.5 31.5,9.5c16.20004,2.10002 28.39995,-1 32.89999,-3.5" stroke-miterlimit="10" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="#00BBDE" fill="none"/>
<path id="svg_33" d="m199.43941,110.52042c-9.5,-3.89999 -18.59998,-8.10001 -22.5,-10.5" stroke-miterlimit="10" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" fill="none" stroke="#00BBDE"/>
<path id="svg_34" d="m147.53944,153.92041c3.29999,0.89999 11.40001,5.10001 18.20001,8.60001" stroke-miterlimit="10" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="#00BBDE" fill="none"/>
<path id="svg_35" d="m122.03944,89.62041c0,0 -5.89999,16.60001 7.70005,27.30003" stroke-miterlimit="10" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="#00BBDE" fill="none"/>
<line transform="rotate(-0.802534282207489 236.3394317626969,204.5204162597661) " stroke-linecap="round" stroke-linejoin="round" id="svg_44" y2="248.64771" x2="308.90782" y1="160.39314" x1="163.77102" fill-opacity="null" stroke-opacity="null" stroke-width="3" fill="none" stroke="#00BBDE"/>
<line transform="rotate(-0.802534282207489 270.3394165039063,137.5204162597644) " stroke-linecap="round" stroke-linejoin="round" id="svg_46" y2="166.6492" x2="343.11791" y1="108.39166" x1="197.56093" fill-opacity="null" stroke-opacity="null" stroke-width="3" fill="none" stroke="#00BBDE"/>
<path id="svg_3" d="m306.52655,245.20975c4,3 13,9 17,8c4,-1 6.84818,-2.21956 13.5,-7" fill-opacity="null" stroke-opacity="null" stroke-width="3" stroke="#00BBDE" fill="none" transform="rotate(-1.7782862186431885 315.0265502929663,249.26528930663994) "/>
</g>
<g class="myoStart">
<title>Layer 2</title>
<g transform="rotate(-22.668537139892578 266.3624572753907,171.6850738525391) " id="svg_1" stroke="null">
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m260.72644,169.74007c5.55014,1.07527 5.07462,8.33253 -0.57489,8.77373c-5.55008,-1.07532 -5.132,-8.28145 0.57489,-8.77373z" id="svg_2" stroke="#00BBDE"/>
<g transform="matrix(0.9310254768758562,0.30341844876503754,-0.30578573629166794,0.9238177992872552,68.87476159977444,-73.25795158138024) " id="svg_4" stroke="null">
<g transform="matrix(0.39240928503939787,-0.6821318691779974,0.6712029906920159,0.3987986984544735,46.77552171978908,299.9677520991358) " id="svg_5" stroke="null">
<g id="svg_6" stroke="null">
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m290.27402,206.70255c-1.60004,0 -11.29999,0 -15.89996,0l-4.60004,0" id="svg_7" stroke="#0e0e0e"/>
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m313.27402,202.10254c0,3.39996 1.20001,4.10001 3.39996,4.10001s13.30005,-0.5 16,-0.60001c2.60004,-0.10004 3.10004,-2.40002 2.90002,-4.89999c-0.10001,-2.50003 -1.90002,-22.40001 -1.90002,-22.40001l0,-16.89996c0,0 2,-21.90009 2,-25.00008c0,-3.10005 -1.49994,-4 -2.79999,-4.10005c-1.20001,-0.10001 -14.69995,-0.7 -17.09998,-0.79999c-2.39996,-0.09998 -2.70001,1.40002 -2.70001,2.79999l0.20001,67.80008l0,0l0,0.00003l0,-0.00002z" id="svg_8" stroke="#0e0e0e"/>
<line fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="290.87395" y1="131.00255" x2="290.87395" y2="206.70255" id="svg_9" stroke="#0e0e0e"/>
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m315.47403,131.60243c0,0 -8.89996,0.20004 -9.79999,0.20004c-0.90002,0 -2.40002,0 -2.5,3.60001l-3,7.79999c0,0 -3.20001,0.70004 -5.40002,-3.2c-0.39996,-0.8 -0.69995,-3.89996 -0.69995,-5.19998s-1.10004,-3.80002 -4,-3.80002c-1.70001,0 -11.5,0 -15.80005,0l-4.5,0" id="svg_10" stroke="#0e0e0e"/>
<line fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="290.87395" y1="131.00255" x2="290.87395" y2="205.10255" id="svg_11" stroke="#0e0e0e"/>
</g>
</g>
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m308.60968,167.79643c0,0 -5.48752,8.91284 -6.14328,9.89615c-0.65573,0.98332 -3.18976,-0.24768 -4.37009,-0.85744s-7.89334,-3.50003 -7.89334,-3.50003l2.8035,6.24213" id="svg_12" stroke="#0e0e0e"/>
</g>
<g id="svg_13" transform="matrix(0.5739292375989248,-0.5111013456600678,0.5029601308504749,0.5720727062070587,-15.394199785368869,215.7421302331087) " stroke="null">
<g id="svg_14" stroke="null">
<g id="svg_15" stroke="null">
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m286.96201,240.47725c1.60004,0 11.29999,0 15.90002,0l4.5,0" id="svg_16" stroke="#0e0e0e"/>
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m264.06204,235.87724c0,3.39996 -1.20001,4.10001 -3.39996,4.10001s-13.29991,-0.5 -15.99986,-0.60001c-2.60004,-0.10004 -3.10005,-2.40002 -2.90001,-4.89999c0.09998,-2.50003 1.90001,-22.40001 1.90001,-22.40001l0,-16.89995c0,0 -2,-21.89999 -2,-25c0,-3.10005 1.5,-4 2.79999,-4.10005c1.20001,-0.10002 14.69987,-0.7 17.09984,-0.79999c2.39996,-0.09999 2.70001,1.40001 2.70001,2.79999l-0.20001,67.80002l0,0l0,0l0,-0.00002z" id="svg_17" stroke="#0e0e0e"/>
<line fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="286.36199" y1="164.77724" x2="286.36199" y2="240.47724" id="svg_18" stroke="#0e0e0e"/>
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m261.76205,165.37721c0,0 8.90002,0.20004 9.79999,0.20004c0.90002,0 2.40002,0 2.5,3.60001l3,7.79999c0,0 3.20001,0.70001 5.40002,-3.2c0.39996,-0.8 0.69995,-3.89996 0.69995,-5.19998s1.10004,-3.80002 4,-3.80002c1.70001,0 11.50006,0 15.80005,0l4.5,0" id="svg_19" stroke="#0e0e0e"/>
<line fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="286.36199" y1="164.77724" x2="286.36199" y2="238.87724" id="svg_20" stroke="#0e0e0e"/>
</g>
</g>
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m262.86203,240.07726c0,0 13.29999,-0.39998 14.79999,-0.5c1.5,-0.10002 1.80005,-3.69998 1.90002,-5.39998c0.09998,-1.69998 1.29999,-11 1.29999,-11l5,7.09999" id="svg_21" stroke="#0e0e0e"/>
</g>
</g>
</g>
</svg>
</center>
<div class="modal-footer">
<!--<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>-->
<a id="cancel" href=" /" type="button" class="btn btn-primart">Cancel</a>
<button id="startCalib" type="button" class="btn btn-material-blue"><a title="Please connect your Myo" style="text-decoration: none; color: rgba(255,255,255,0.84)">Start Calibration</a></button>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="calibModal" tabindex="-1" role="dialog" aria-labelledby="calibModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="calibModalLabel">Calibration</h4>
</div>
<div class="modal-body">
<h5 id="progTxt">Calibration Progress</h5>
<div id="totalProg" class="progress">
<div id="progress" class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 0%;">
<span class="sr-only">0% Complete</span>
</div>
</div>
<div class="alert alert-info shadow-z-1" role="alert">
<span id="calibText">Make your hand flat and raise it above any surfaces then wait a few seconds</span>
</div>
<div id="myo-connect-calib" class="alert alert-danger shadow-z-1" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span class="sr-only">Error:</span> Make sure to connect your Myo
</div>
</div>
<center>
<svg width="343" height="254" xmlns="http://www.w3.org/2000/svg">
<!-- Created with Method Draw - http://github.com/duopixel/Method-Draw/ -->
<g>
<title>background</title>
<rect x="-1" y="-1" width="345" height="256" id="canvas_background" fill="none"/>
</g>
<g>
<title>Layer 1</title>
<path id="svg_28" d="m182.83943,111.42042c-5.5,-2.6 -5.79999,-10.1 -6.40002,-16.1c-1.79999,-16.9 -12.29999,-31.40003 -19.09998,-46.90002c-2.90002,-6.5 -5,-13.20001 -7.20001,-20c-2,-5.89999 -4.39996,-16.70001 -6,-21.80002c-0.70001,-2 -1.59998,-2.39999 -1.59998,-2.39999c-4.20001,-2 -9.40002,0.39999 -12,4.30002c-2.60004,3.89999 -3.00002,8.79999 -2.7,13.5c0.49998,8.89999 2.99999,17.5 3.40002,26.29999c0.39995,10.1 -2.40001,20.1 -7.70004,28.79998" stroke-miterlimit="10" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="#00BBDE" fill="none"/>
<path id="svg_29" d="m84.83942,70.02042c-16.2,-9.10001 -32.8,-19.10001 -48.39999,-29.29999c-3.9,-2.60001 -9.10001,-6.30002 -8,-11.5c1.29999,-5.20001 6,-5.40002 10.19998,-3.5c8.60001,3.79999 17.10001,8.19998 25.5,13.19998c9,5.4 16.5,9.30002 27.30001,14.9c11.19997,5.80001 29.89999,17.40002 36.59999,11.80001" stroke-miterlimit="10" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="#00BBDE" fill="none"/>
<path id="svg_30" d="m84.83942,70.02042c-0.8,2.20001 -2.5,8.10001 -3.3,10.20001" stroke-miterlimit="10" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="#00BBDE" fill="none"/>
<path id="svg_31" d="m81.13942,80.22044c-22.10002,-4.8 -41.7,-15.8 -63.8,-22.10001c-3.30002,-0.89999 -9.40002,-2.69998 -12,0.10001c-4.70001,5.20001 0.5,9.70002 5.59998,11.79999c20.70001,8.40002 41.20001,15.80003 62.5,22.5" stroke-miterlimit="10" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="#00BBDE" fill="none"/>
<path id="svg_32" d="m73.73944,92.62041c0.1,1.30003 0.29996,4.10001 0.39999,5.4c-8.39996,0.80002 -16.7,0.70001 -24.79999,1.20001c-10.20001,0.70001 -25.79999,1.39999 -30.79999,1.60001c-7.30001,0.29998 -14.40002,-0.5 -14,6.89999c0.29999,4.39999 4.79999,6.29999 9,6.5c20.5,1.29999 38.3,0.89999 55.7,0.89999l1.6,0c1,2.20002 3.3,6.5 4.3,8.80003c-15.79999,6.39999 -43.5,12.39999 -49.09998,13.89999c-8.40002,2 -5.40002,12.19998 3.4,11.19998c13.6,-1.3 23.79999,-2.19998 37.4,-4.8c8.10001,-1.60001 21.29998,-1 25.20002,0c2.09998,0.5 15.3,7.5 31.5,9.5c16.20004,2.10002 28.39995,-1 32.89999,-3.5" stroke-miterlimit="10" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="#00BBDE" fill="none"/>
<path id="svg_33" d="m199.43941,110.52042c-9.5,-3.89999 -18.59998,-8.10001 -22.5,-10.5" stroke-miterlimit="10" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" fill="none" stroke="#00BBDE"/>
<path id="svg_34" d="m147.53944,153.92041c3.29999,0.89999 11.40001,5.10001 18.20001,8.60001" stroke-miterlimit="10" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="#00BBDE" fill="none"/>
<path id="svg_35" d="m122.03944,89.62041c0,0 -5.89999,16.60001 7.70005,27.30003" stroke-miterlimit="10" stroke-linejoin="round" stroke-linecap="round" stroke-width="3" stroke="#00BBDE" fill="none"/>
<line transform="rotate(-0.802534282207489 236.3394317626969,204.5204162597661) " stroke-linecap="round" stroke-linejoin="round" id="svg_44" y2="248.64771" x2="308.90782" y1="160.39314" x1="163.77102" fill-opacity="null" stroke-opacity="null" stroke-width="3" fill="none" stroke="#00BBDE"/>
<line transform="rotate(-0.802534282207489 270.3394165039063,137.5204162597644) " stroke-linecap="round" stroke-linejoin="round" id="svg_46" y2="166.6492" x2="343.11791" y1="108.39166" x1="197.56093" fill-opacity="null" stroke-opacity="null" stroke-width="3" fill="none" stroke="#00BBDE"/>
<path id="svg_3" d="m306.52655,245.20975c4,3 13,9 17,8c4,-1 6.84818,-2.21956 13.5,-7" fill-opacity="null" stroke-opacity="null" stroke-width="3" stroke="#00BBDE" fill="none" transform="rotate(-1.7782862186431885 315.0265502929663,249.26528930663994) "/>
</g>
<g class="myoStart">
<title>Layer 2</title>
<g transform="rotate(-22.668537139892578 266.3624572753907,171.6850738525391) " id="svg_1" stroke="null">
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m260.72644,169.74007c5.55014,1.07527 5.07462,8.33253 -0.57489,8.77373c-5.55008,-1.07532 -5.132,-8.28145 0.57489,-8.77373z" id="svg_2" stroke="#00BBDE"/>
<g transform="matrix(0.9310254768758562,0.30341844876503754,-0.30578573629166794,0.9238177992872552,68.87476159977444,-73.25795158138024) " id="svg_4" stroke="null">
<g transform="matrix(0.39240928503939787,-0.6821318691779974,0.6712029906920159,0.3987986984544735,46.77552171978908,299.9677520991358) " id="svg_5" stroke="null">
<g id="svg_6" stroke="null">
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m290.27402,206.70255c-1.60004,0 -11.29999,0 -15.89996,0l-4.60004,0" id="svg_7" stroke="#0e0e0e"/>
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m313.27402,202.10254c0,3.39996 1.20001,4.10001 3.39996,4.10001s13.30005,-0.5 16,-0.60001c2.60004,-0.10004 3.10004,-2.40002 2.90002,-4.89999c-0.10001,-2.50003 -1.90002,-22.40001 -1.90002,-22.40001l0,-16.89996c0,0 2,-21.90009 2,-25.00008c0,-3.10005 -1.49994,-4 -2.79999,-4.10005c-1.20001,-0.10001 -14.69995,-0.7 -17.09998,-0.79999c-2.39996,-0.09998 -2.70001,1.40002 -2.70001,2.79999l0.20001,67.80008l0,0l0,0.00003l0,-0.00002z" id="svg_8" stroke="#0e0e0e"/>
<line fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="290.87395" y1="131.00255" x2="290.87395" y2="206.70255" id="svg_9" stroke="#0e0e0e"/>
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m315.47403,131.60243c0,0 -8.89996,0.20004 -9.79999,0.20004c-0.90002,0 -2.40002,0 -2.5,3.60001l-3,7.79999c0,0 -3.20001,0.70004 -5.40002,-3.2c-0.39996,-0.8 -0.69995,-3.89996 -0.69995,-5.19998s-1.10004,-3.80002 -4,-3.80002c-1.70001,0 -11.5,0 -15.80005,0l-4.5,0" id="svg_10" stroke="#0e0e0e"/>
<line fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="290.87395" y1="131.00255" x2="290.87395" y2="205.10255" id="svg_11" stroke="#0e0e0e"/>
</g>
</g>
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m308.60968,167.79643c0,0 -5.48752,8.91284 -6.14328,9.89615c-0.65573,0.98332 -3.18976,-0.24768 -4.37009,-0.85744s-7.89334,-3.50003 -7.89334,-3.50003l2.8035,6.24213" id="svg_12" stroke="#0e0e0e"/>
</g>
<g id="svg_13" transform="matrix(0.5739292375989248,-0.5111013456600678,0.5029601308504749,0.5720727062070587,-15.394199785368869,215.7421302331087) " stroke="null">
<g id="svg_14" stroke="null">
<g id="svg_15" stroke="null">
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m286.96201,240.47725c1.60004,0 11.29999,0 15.90002,0l4.5,0" id="svg_16" stroke="#0e0e0e"/>
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m264.06204,235.87724c0,3.39996 -1.20001,4.10001 -3.39996,4.10001s-13.29991,-0.5 -15.99986,-0.60001c-2.60004,-0.10004 -3.10005,-2.40002 -2.90001,-4.89999c0.09998,-2.50003 1.90001,-22.40001 1.90001,-22.40001l0,-16.89995c0,0 -2,-21.89999 -2,-25c0,-3.10005 1.5,-4 2.79999,-4.10005c1.20001,-0.10002 14.69987,-0.7 17.09984,-0.79999c2.39996,-0.09999 2.70001,1.40001 2.70001,2.79999l-0.20001,67.80002l0,0l0,0l0,-0.00002z" id="svg_17" stroke="#0e0e0e"/>
<line fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="286.36199" y1="164.77724" x2="286.36199" y2="240.47724" id="svg_18" stroke="#0e0e0e"/>
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m261.76205,165.37721c0,0 8.90002,0.20004 9.79999,0.20004c0.90002,0 2.40002,0 2.5,3.60001l3,7.79999c0,0 3.20001,0.70001 5.40002,-3.2c0.39996,-0.8 0.69995,-3.89996 0.69995,-5.19998s1.10004,-3.80002 4,-3.80002c1.70001,0 11.50006,0 15.80005,0l4.5,0" id="svg_19" stroke="#0e0e0e"/>
<line fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="286.36199" y1="164.77724" x2="286.36199" y2="238.87724" id="svg_20" stroke="#0e0e0e"/>
</g>
</g>
<path fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="m262.86203,240.07726c0,0 13.29999,-0.39998 14.79999,-0.5c1.5,-0.10002 1.80005,-3.69998 1.90002,-5.39998c0.09998,-1.69998 1.29999,-11 1.29999,-11l5,7.09999" id="svg_21" stroke="#0e0e0e"/>
</g>
</g>
</g>
</svg>
</center>
<div class="modal-footer">
<h4 id="timeLeft" style="float: left; margin-top: 20px; margin-left: 20px;"></h4>
<input type="text" value="5" class="dial calib-timer" data-min="0" data-max="5" data-width="35" data-height="35" data-readOnly=true data-thickness="0.2">
<a id="cancel" href=" /" type="button" class="btn ">Cancel</a>
<button id="NextCalib" type="button" class="btn btn-material-blue">Calibrate</button>
</div>
</div>
</div>
</div>
<div id="container">
<button id="model-info-btn" class="btn btn-fab btn-raised btn-material-blue" data-toggle="modal" data-target="#complete-dialog" style="position: absolute; bottom: 3px; right: 3px">
<span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>
<div class="ripple-wrapper"></div>
</button>
<div class="infoModal modal-dialog" style="position: absolute">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Commands</h4>
</div>
<div class="modal-body">
<p>Orbit: ⌘ + Left Click Drag</p>
<p>Panning: ⌘ + Right Click Drag</p>
<p>Zoom: ⌘ + Scroll</p>
</div>
</div>
</div>
</div>
<script>
var calibration = []
var index = 0
window.setup = false
// Handles an event from the Modal
function handleRecord() {
if (recording) {
window.setup = false
recording = false
for (var i = 0; i < 8; i++) {
var histArray = $.map(history, function(value, index) {
return [value];
});
for (key in history) {
histArray.push(history[key])
}
var narray = []
for (var j = 0; j < histArray.length - 7; j++) {
try {
narray.push(histArray[j][i]);
} catch (e) {
console.error("Myo is not connected.");
myoIsConnected = false;
}
}
console.log(narray)
console.log('standard deviation for port ' + i + ' on index ' + index + ': ' + rectifyAndAverage(narray))
aggregateArray[index].push(rectifyAndAverage(narray))
}
history = [
[]
]
historyIndex = 0
if (index != 8) {}
} else {
window.setup = true
history = [
[]
]
historyIndex = 0
recording = true
}
}
</script>
<!-- Libraries -->
<script src="lib/jquery.min.js"></script>
<script src="lib/bootstrap.min.js"></script>
<script src="https://cdn.firebase.com/js/client/2.2.7/firebase.js"></script>
<script src="lib/jquery-ui.min.js"></script>
<script src="lib/jquery.knob.js"></script>
<!-- ModelJs -->
<script src="script/Model.js"></script>
<!-- Imported scripts -->
<script type="text/javascript" src='script/myo.js'></script>
<script type="text/javascript" src='script/emg-handler.js'></script>
<script type="text/javascript" src='script/classify-handler.js'></script>
<script type="text/javascript" src='script/livedata.js'></script>
<script type="text/javascript" src='script/util.js'></script>
<script type="text/javascript" src='script/position.js'></script>
<!-- ThreeJs libraries -->
<script src="lib/three.min.js"></script>
<script src="lib/ColladaLoader.js"></script>
<script src="lib/OrbitControls.js"></script>
<script src="lib/Detector.js"></script>
<script src="lib/Projector.js"></script>
<script src="lib/CanvasRenderer.js"></script>
<script src="script/main.js"></script>
<!-- Material Design for Bootstrap -->
<script src="js/material.min.js"></script>
<script src="js/ripples.min.js"></script>
<script>
$.material.init();
$(function() {
$(".dial").knob();
});
</script>
<!-- Change Logo to text on resize -->
<script>
resizeNavbar();
$(window).resize(resizeNavbar);
function resizeNavbar(){
if($(window).width() < 768){
$(".home").css({width: "100%"});
$(".home").html("<span style='text-align: center;'>Dexto</span>");
$(".navbar-brand").show();
}else{
$(".home").css({width: "70px"});
$(".home").html('<svg class="logo "width="1300" height="700" xmlns="http://www.w3.org/2000/svg"><g style="pointer-events:all"><title style="pointer-events: none" opacity="0.33">Layer 1</title><g transform="scale(1) translate(-700, -10)"><path id="svg_1" stroke-width="28" fill="none" transform="rotate(19.972639083862305 976.6520080566406,386.00401306152344)" stroke="#000" stroke-dasharray="none" d="M 863.881 451.986 C 907.695 534.924 996.002 522.891 1040.07 502.327 C 1084.12 481.763 1109.77 438.09 1112.87 395.911 C 1115.99 353.732 1098.48 311.887 1073.8 286.776 C 1049.12 261.665 1002.56 237.084 944.583 251.283 C 886.607 265.482 837.314 319.212 849.753 397.519"></path><rect fill="#000000" stroke-width="34.5" fill-opacity="null" x="833.8118204488372" y="393.1437904488373" width="28.51998" height="29.90532" id="svg_12" rx="100" stroke="null" stroke-dasharray="none"></rect><rect fill="#000000" stroke-width="34.5" fill-opacity="null" x="838.0596331698608" y="343.741813211441" width="29.28924" height="27.13573" id="svg_15" rx="100" stroke="null" stroke-dasharray="none" transform="rotate(-21.811731338500977 852.7042236328127,357.3096923828123) "></rect><path fill="none" stroke-width="37" id="svg_20" d="M1062.64404,276.11649C1071.87402,179.19489 1075.7218,46.11769 1077.95129,25.34825" transform="rotate(-19.12784194946289 1062.6440429687502,276.1164855957031) " stroke="#000000"></path><path fill="#000000" stroke-width="34.5" fill-opacity="null" id="svg_22" transform="rotate(-4.6022257804870605 1115.7620849609384,223.44752502441662) " d="M1090.07483,345.52222C1139.65735,152.79982 1139.91919,146.29593 1141.3197,128.37047C1142.72058,110.44506 1132.48645,103.0109 1124.94543,101.66435C1117.4043,100.31773 1105.97363,102.8904 1101.91992,125.68921L1090.07483,345.52222z" stroke="null"></path><path fill="#000000" stroke-width="34.5" fill-opacity="null" id="svg_23" transform="rotate(-16.22279167175293 1083.4732666015625,188.13410949707043) " d="M1056.44128,322.93054C1061.03247,309.26697 1098.82678,157.08517 1103.75842,132.89906C1108.69006,108.71293 1111.18469,101.87424 1110.34485,83.17556C1109.505,64.47782 1100.56714,55.53632 1093.46765,53.66569C1086.36755,51.795 1074.17139,57.56998 1069.84607,80.28957L1056.44128,322.93054z" stroke="null"></path><rect fill="#000000" stroke-width="34.5" fill-opacity="null" x="977.44415" y="19.73813" width="38.19279" height="40.82145" id="svg_24" rx="100" transform="rotate(-13.443306922912598 996.5410766601562,40.148872375488594) " stroke="null"></rect></g></g></svg>');
$(".navbar-brand").hide();
}
}
</script>
</body>
</html>