-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
141 lines (124 loc) · 5.77 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
<!DOCTYPE html>
<html>
<head>
<title>LIFX control</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/jquery.minicolors.css">
<link rel="stylesheet" href="css/bootstrap-switch.min.css">
<link rel="stylesheet" href="css/style.css">
<script src="js/jquery-2.1.0.min.js"></script>
<script src="js/jquery.minicolors.min.js"></script>
<script src="js/snippets.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-switch.min.js"></script>
<script src="js/functionality.js"></script>
<!--Shitload of favicon code-->
<link rel="shortcut icon" href="/img/favicons/favicon.ico">
<link rel="apple-touch-icon" sizes="57x57" href="/img/favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="114x114" href="/img/favicons/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="72x72" href="/img/favicons/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="144x144" href="/img/favicons/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="60x60" href="/img/favicons/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="120x120" href="/img/favicons/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="76x76" href="/img/favicons/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="152x152" href="/img/favicons/apple-touch-icon-152x152.png">
<link rel="icon" type="image/png" href="/img/favicons/favicon-196x196.png" sizes="196x196">
<link rel="icon" type="image/png" href="/img/favicons/favicon-160x160.png" sizes="160x160">
<link rel="icon" type="image/png" href="/img/favicons/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/img/favicons/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="/img/favicons/favicon-32x32.png" sizes="32x32">
<meta name="msapplication-TileColor" content="#9f00a7">
<meta name="msapplication-TileImage" content="/img/favicons/mstile-144x144.png">
<meta name="msapplication-config" content="/img/favicons/browserconfig.xml">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<!-- 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="#">
<img src="img/favicons/favicon-32x32.png"/>
LIFX Control
</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="#" data-toggle="modal" data-target="#settings">
<span class="glyphicon glyphicon-cog"></span>
Settings
</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="col-sm-4">
<h1>Lights</h1>
<div id="lights" class="list-group">
</div>
<span class="help-block">Ctrl (cmd on Mac) + click to select multiple</span>
</div>
<div class="col-sm-4">
<h1>Tags</h1>
<div id="tags" class="list-group">
</div>
<span class="help-block">Ctrl (cmd on Mac) + click to select multiple</span>
</div>
<div id="colorBox" class="col-sm-4">
<h1>Color</h1>
<input id="colorWheel" type="text">
<button id="setColor" class="btn btn-info">
<span class="glyphicon glyphicon-ok"></span> Set
</button>
<label>Color Temp</label>
<input id="colorTemp" type="range" name="kelvin" min="2500" max="10000">
</div>
</div>
<div id="settings" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">
<span class="glyphicon glyphicon-cog"></span>
Settings
</h4>
</div>
<div class="modal-body">
<div class="form-inline">
<div class="form-group">
<label>Endpoint</label>
<input type="text" class="form-control" id="host" placeholder="HOST:PORT">
<button id="saveSettings" class="btn btn-success">
<span class="glyphicon glyphicon-floppy-disk"></span> Save
</button>
<button id="resetSettings" class="btn btn-warning">
<span class="glyphicon glyphicon-refresh"></span> Reset
</button>
</div>
<span class="help-block">
<span class="glyphicon glyphicon-info-sign"></span> Where is lifx-http running?
</span>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
<!-- /.modal -->
</body>
</html>