-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
215 lines (195 loc) · 9.99 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
<!DOCTYPE html>
<html ng-app="app" ng-csp="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Evil Genius Labs : Custom LED Lighting Creations">
<meta name="author" content="">
<title>Fibonacci</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<!-- Bootstrap theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="bower_components/jquery-minicolors/jquery.minicolors.css">
<!-- Custom styles -->
<link rel="stylesheet" href="css/styles.css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Favicons -->
<!-- For IE 9 and below. ICO should be 32x32 pixels in size -->
<!--[if IE]><link rel="shortcut icon" href="images/atom32.ico"><![endif]-->
<!-- Firefox, Chrome, Safari, IE 11+ and Opera. 196x196 pixels in size. -->
<link rel="icon" href="images/atom196.png">
</head>
<body ng-controller="MainCtrl">
<!-- master nav -->
<header class="navbar navbar-default navbar-static-top" id="top" role="banner">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse" aria-expanded="false" aria-controls="navbar">
<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="/">Evil Genius Labs</a>
</div>
<nav class="collapse navbar-collapse bs-navbar-collapse">
<ul class="nav navbar-nav">
<li class="active">
<a href="https://github.com/evilgeniuslabs/fibonacci"><img style="height: 16px;" src="https://assets-cdn.github.com/favicon.ico" /> Fibonacci</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a href="https://twitter.com/evilgeniuslab"><img style="height: 16px;" src="https://abs.twimg.com/favicons/favicon.ico" />@evilgeniuslab</a>
</li>
<li>
<a href="https://github.com/evilgeniuslabs"><img style="height: 16px;" src="https://assets-cdn.github.com/favicon.ico" /> evilgeniuslabs</a>
</li>
</ul>
</nav><!--/.nav-collapse -->
</div>
</header>
<div class="container">
<form class="form-horizontal">
<div class="form-group">
<span class="col-sm-offset-2 col-sm-8" ng-bind="status"></span>
</div>
<div class="form-group">
<label for="inputAccessToken" class="col-sm-2 control-label">Access Token</label>
<div class="col-sm-6">
<div class="input-group">
<input ng-model="accessToken" class="form-control" id="inputAccessToken" placeholder="Access Token" />
<span class="input-group-btn">
<button class="btn btn-default" id="btnSave" ng-click="save()" ng-disabled="busy">Save</button>
</span>
</div>
</div>
</div>
<div class="form-group">
<label for="inputDevices" class="col-sm-2 control-label">Device</label>
<div class="col-sm-6">
<div class="input-group">
<select class="form-control" ng-model="device" ng-change="onSelectedDeviceChange()"
ng-options="device.title for device in devices | orderBy:title"></select>
<span class="input-group-btn">
<button type="button" class="btn btn-default" id="btnGetDevices" ng-click="getDevices()" ng-disabled="busy" aria-label="Refresh Devices">
<span class="glyphicon glyphicon-refresh" aria-hidden="true">
</button>
<button class="btn btn-default" id="btnConnect" ng-click="connect()" ng-disabled="busy || !isDeviceSelected">Connect</button>
</span>
</div>
</div>
</div>
<div class="form-group" ng-show="isDeviceSelected">
<div class="col-sm-offset-2 col-sm-6">
<p class="form-control-static"><b>Status</b>: <span ng-bind="device.status"></span> <b>Last heard</b>: <span ng-bind="device.last_heard | date:'medium'"></span></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Power</label>
<div class="col-sm-6">
<div class="btn-group" role="group" aria-label="Power">
<button type="button" class="btn btn-default" id="btnPowerOn" ng-click="powerOn()" ng-disabled="busy || !isDeviceSelected">
On
</button>
<button type="button" class="btn btn-default" id="btnPowerOff" ng-click="powerOff()" ng-disabled="busy || !isDeviceSelected">
Off
</button>
</div>
</div>
</div>
<div class="form-group">
<label for="inputBrightness" class="col-sm-2 control-label">Brightness</label>
<div class="col-sm-6">
<div class="input-group">
<span class="input-group-addon" ng-bind="brightness"></span>
<input ng-model="brightness" ng-placeholder="brightness" class="form-control" id="inputBrightness"
type="range" step="1" min="2" max="255" ng-disabled="busy || !isDeviceSelected" />
<span class="input-group-btn">
<button class="btn btn-default" id="btnSetBrightness" ng-click="setBrightness()" ng-disabled="busy || !isDeviceSelected">Set</button>
</span>
</div>
</div>
</div>
<div class="form-group">
<label for="inputPattern" class="col-sm-2 control-label">Pattern</label>
<div class="col-sm-6">
<div class="input-group">
<select ng-model="pattern" class="form-control" id="inputPattern" ng-change="onSelectedPatternChange()"
ng-options="pattern.name for pattern in patterns" ng-disabled="busy || !isDeviceSelected"></select>
<span class="input-group-btn">
<button type="button" class="btn btn-default" id="btnGetPatterns" ng-click="getPatterns()" ng-disabled="busy || !isDeviceSelected" aria-label="Refresh Patterns">
<span class="glyphicon glyphicon-refresh" aria-hidden="true">
</button>
</span>
</div>
</div>
</div>
<div class="form-group">
<label for="inputColor" class="col-sm-2 control-label">Color</label>
<div class="col-sm-6">
<input minicolors="minicolorsSettings" type="hidden" id="inputColor" class="form-control" ng-model="color" ng-disabled="busy || !isDeviceSelected" ng-change="onSelectedColorChange()" />
</div>
</div>
<div class="form-group">
<label for="inputNoiseSpeedX" class="col-sm-2 control-label">Noise Speed X</label>
<div class="col-sm-6">
<div class="input-group">
<input ng-model="noiseSpeedX" class="form-control" id="inputNoiseSpeedX" type="number" min="0" max="255" ng-disabled="busy || disconnected" />
<span class="input-group-btn">
<button class="btn" id="btnSetNoiseSpeedX" ng-click="setNoiseSpeedX()" ng-disabled="busy || !isDeviceSelected">Set</button>
</span>
</div>
</div>
</div>
<div class="form-group">
<label for="inputNoiseSpeedY" class="col-sm-2 control-label">Noise Speed Y</label>
<div class="col-sm-6">
<div class="input-group">
<input ng-model="noiseSpeedY" class="form-control" id="inputNoiseSpeedY" type="number" min="0" max="255" ng-disabled="busy || disconnected" />
<span class="input-group-btn">
<button class="btn" id="btnSetNoiseSpeedY" ng-click="setNoiseSpeedY()" ng-disabled="busy || !isDeviceSelected">Set</button>
</span>
</div>
</div>
</div>
<div class="form-group">
<label for="inputNoiseSpeedZ" class="col-sm-2 control-label">Noise Speed Z</label>
<div class="col-sm-6">
<div class="input-group">
<input ng-model="noiseSpeedZ" class="form-control" id="inputNoiseSpeedZ" type="number" min="0" max="255" ng-disabled="busy || disconnected" />
<span class="input-group-btn">
<button class="btn" id="btnSetNoiseSpeedZ" ng-click="setNoiseSpeedZ()" ng-disabled="busy || !isDeviceSelected">Set</button>
</span>
</div>
</div>
</div>
<div class="form-group">
<label for="inputNoiseScale" class="col-sm-2 control-label">Noise Scale</label>
<div class="col-sm-6">
<div class="input-group">
<input ng-model="noiseScale" class="form-control" id="inputNoiseScale" type="number" min="0" max="255" ng-disabled="busy || disconnected" />
<span class="input-group-btn">
<button class="btn" id="btnSetNoiseScale" ng-click="setNoiseScale()" ng-disabled="busy || !isDeviceSelected">Set</button>
</span>
</div>
</div>
</div>
</form>
</div>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.4/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.4/angular-route.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.6.2.js"></script>
<script src="bower_components/jquery-minicolors/jquery.minicolors.min.js"></script>
<script src="bower_components/angular-minicolors/angular-minicolors.js"></script>
<script src="js/app.js"></script>
</body>
</html>