forked from chilipeppr/widget-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwidget.html
More file actions
172 lines (154 loc) · 8.51 KB
/
widget.html
File metadata and controls
172 lines (154 loc) · 8.51 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title><!--(auto-fill by runme.js--></title>
<!-- ChiliPeppr is based on bootstrap CSS. -->
<link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<!-- Customized version of require.js for ChiliPeppr. Please see require.js docs for how
ChiliPeppr's dependency system works as it's based on require.js. -->
<script type='text/javascript' src="//i2dcui.appspot.com/js/require.js"></script>
<!-- widget.css DON'T REMOVE -->
<style type='text/css'>
/* widget.css will get inlined here by runme.js. don't remove this comment or inlining will fail. */
</style>
<link rel="stylesheet" type="text/css" href="widget.css">
<!-- DON'T REMOVE end widget.css -->
<!-- widget.js DON'T REMOVE -->
<script type='text/javascript'>
//<![CDATA[
/* widget.js will get inlined here by runme.js. don't remove this comment or inlining will fail. */
//]]>
</script>
<script type='text/javascript' src="widget.js"></script>
<!-- DON'T REMOVE end widget.js -->
</head>
<body>
<div id="com-chilipeppr-widget-spindlecontrol" class="panel panel-default">
<div class="panel-heading ">
<div class="btn-toolbar pull-right" role="toolbar">
<div class="btn-group">
<button type="button" class="btn btn-xs btn-default btn-sayhello" data-delay="1000" data-animation="true" data-placement="auto" data-container="body" data-trigger="hover" data-title="Say Hello" data-content="Generate a hello message">Say Hello
</button>
</div>
<div class="btn-group">
<button type="button" class="btn btn-xs btn-default hidebody"><span class="glyphicon glyphicon-chevron-up"></span>
</button>
</div>
<div class="btn-group">
<div class="dropdown">
<button type="button" class="btn btn-xs btn-default dropdown-toggle" data-toggle="dropdown"><span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-menu-right" role="menu"></ul>
</div>
</div>
</div> <span class="panel-title" data-toggle="popover">Spindle Control Widget!</span> <span style="font-size:9px;" class="fb-build">v1</span>
</div>
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li class="active"><a href="#com-chilipeppr-widget-spindlecontrol-tab1" role="tab" data-toggle="tab">Control</a></li>
<li><a href="#com-chilipeppr-widget-spindlecontrol-tab2" role="tab" data-toggle="tab">Speeds & Feeds</a></li>
<li><a href="#com-chilipeppr-widget-spindlecontrol-tab3" role="tab" data-toggle="tab">Settings</a></li>
<li><a href="#com-chilipeppr-widget-spindlecontrol-tab4" role="tab" data-toggle="tab">Auto Tool Change</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<!-- Tab 1 -->
<div class="tab-pane active" id="com-chilipeppr-widget-spindlecontrol-tab1">
<div id="slidecontainer">
<div id="speedRO">Speed: <span id="demo"></span> rpm </div>
<input type="range" min="5000" max="24000" value="8000" step="100" class="slider" id="myRange">
<table>
<th>
<div id="curSpeedRO">Current Speed: <span id="demo2"> </span> rpm</div>
</th>
<tr>
<td><button type="button" class="btn btn-xs btn-default btn-spindleOn-CW">Spindle On-CW</button><button type="button" class="btn btn-xs btn-default btn-spindleOn-CCW">Spindle On-CCW</button>
<button type="button" class="btn btn-xs btn-default btn-spindleOff">Spindle Off</button></td>
</tr>
</table>
</div>
</div>
<!-- Tab 2 -->
<div class="tab-pane" id="com-chilipeppr-widget-spindlecontrol-tab2">
<span class="bulletLists sf"> Speeds and feeds references:
<ul>
<li><a href = "https://en.wikipedia.org/wiki/Speeds_and_feeds" target="_blank">Wiki References</a></li>
<li><a href = "https://littlemachineshop.com/mobile/speeds_feeds.php" target="_blank">Calculator</a></li>
</ul>
</span>
<span class="bulletLists mtrl">Materials
<ul>
<li>aluminum</il>
<li>steel</il>
<li>brass</il>
<li>wood</il>
</ul></span>
</div>
<!-- Tab 3 -->
<div class="tab-pane" id="com-chilipeppr-widget-spindlecontrol-tab3">
<p>Set the minimum and maximum values for the speed control slider. The slider moves in increments of 100. </p>
<table>
<th> Min. Spindle Speed rpm</th>
<tr>
<td><input type="number" name="" value=5000 id="minSpeed" /><button type="button" class="btn btn-xs btn-default btn-spindleMin">Set Min</button></td>
</tr>
<th> Max. Spindle Speed rpm</th>
<tr>
<td><input type="number" name="" value=24000 id="maxSpeed" /><button type="button" class="btn btn-xs btn-default btn-spindleMax">Set Max</button></td>
</tr>
</table>
</div>
<!-- Tab 4 -->
<div class="tab-pane" id="com-chilipeppr-widget-spindlecontrol-tab4">
<p>Set .... </p>
<table>
<th>Auto Operations</th>
<tr><td><button type="button" class="btn btn-xs btn-default btn-tcUnload"> Unload Tool</button></td>
</tr>
<tr>
<td><button type="button" class="btn btn-xs btn-default btn-tcStartPosition"> Start Position</button></td>
</tr>
<tr>
<td><button type="button" class="btn btn-xs btn-default btn-tcColletAlign"> Collet-Wrench Align</button></td>
</tr>
<tr>
<td><button type="button" class="btn btn-xs btn-default btn-tcColletDock"> Dock Collet </button></td>
</tr>
<tr>
<td><button type="button" class="btn btn-xs btn-default btn-tcColletLoosen"> Loosen Collet </button></td>
</tr>
<th>Manual Controls</th>
<tr><td>Spindle Shaft Wrench</td>
</tr>
<tr>
<td><button type="button" class="btn btn-xs btn-default btn-spindleEngage">Engage</button></td>
<td><button type="button" class="btn btn-xs btn-default btn-spindleDisengage">Disengage</button></td>
</tr>
<tr><td>Collet Nut Wrench</td>
</tr>
<tr>
<td><button type="button" class="btn btn-xs btn-default btn-colletLoosen">Loosen</button></td>
<td><button type="button" class="btn btn-xs btn-default btn-colletTighten">Tighten</button></td>
</tr>
</table>
</div>
</div>
</div>
</div>
<!--
<script>
var slider = document.getElementById("myRange");
var output = document.getElementById("demo");
var output2 = document.getElementById("demo2");
output.innerHTML = slider.value;
output2.innerHTML = slider.value;
slider.oninput = function() {
output.innerHTML = this.value;
output2.innerHTML = slider.value;
}
</script>
-->
</body>
</html>