-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdashboard.html
200 lines (183 loc) · 9.08 KB
/
dashboard.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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"
integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<style>
.bg-deep-dark {
background-color: #282B2F !important;
}
</style>
<title>Lifx Control Panel</title>
</head>
<body class="bg-deep-dark">
<nav class="navbar navbar-dark bg-dark">
<a class="navbar-brand" href="#">
<i class="fa fa-lightbulb"></i>
Lifx Control Panel
</a>
</nav>
<div class="container-fluid mt-3">
<div class="card text-light bg-dark">
<div class="card-header">
Lumières
<span class="badge badge-secondary">3</span>
</div>
<div class="card-body">
<div class="row">
<div class="col-4">
<div class="card text-white bg-dark">
<div class="mt-4 pt-4 text-secondary text-center"
style="display:block;position:absolute;width:100%;height:70%">
<i class="mt-4 pt-2 fa fa-2x fa-power-off"></i>
</div>
<div class="card-body bg-deep-dark text-center">
<canvas height="150" id="canvas1"></canvas>
</div>
<div class="card-footer text-center">
<a href="./lifx.html" class="btn btn-block btn-dark">Lampe Poule</a>
</div>
</div>
</div>
<div class="col-4">
<div class="card text-white bg-dark">
<div class="mt-4 pt-4 text-light text-center"
style="display:block;position:absolute;width:100%;height:70%">
<i class="mt-4 pt-2 fa fa-2x fa-power-off"></i>
</div>
<div class="card-body bg-deep-dark text-center">
<canvas id="canvas2"></canvas>
</div>
<div class="card-footer text-center">
<a href="./lifx.html" class="btn btn-block btn-dark">Lampe Ion</a>
</div>
</div>
</div>
<div class="col-4">
<div class="card text-white bg-dark">
<div class="mt-4 pt-4 text-secondary text-center"
style="display:block;position:absolute;width:100%;height:70%">
<i class="mt-4 pt-2 fa fa-2x fa-power-off"></i>
</div>
<div class="card-body bg-deep-dark text-center">
<canvas id="canvas3"></canvas>
</div>
<div class="card-footer text-center">
<a href="./lifx.html" class="btn btn-block btn-dark">Lampe Ader</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card text-light bg-dark mt-4">
<div class="card-header">
Groupes
<span class="badge badge-secondary">2</span>
</div>
<div class="card-body">
<div class="row">
<div class="col-4">
<div class="card text-white bg-dark">
<div class="mt-4 pt-4 text-secondary text-center"
style="display:block;position:absolute;width:100%;height:70%">
<i class="mt-4 pt-2 fa fa-2x fa-lightbulb"></i>
<i class="mt-4 pt-2 fa fa-2x fa-lightbulb"></i>
</div>
<div class="card-body bg-deep-dark text-center">
<canvas id="canvas4"></canvas>
</div>
<div class="card-footer text-center">
<button type="button" class="btn btn-block btn-dark">Coin nuit</button>
</div>
</div>
</div>
<div class="col-4">
<div class="card text-white bg-dark">
<div class="mt-4 pt-4 text-light text-center"
style="display:block;position:absolute;width:100%;height:70%">
<i class="mt-4 pt-2 fa fa-2x fa-lightbulb"></i>
<i class="mt-4 pt-2 fa fa-2x fa-lightbulb"></i>
</div>
<div class="card-body bg-deep-dark text-center">
<canvas id="canvas5"></canvas>
</div>
<div class="card-footer text-center">
<button type="button" class="btn btn-block btn-dark">Coin jour</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gauge.js/1.3.6/gauge.min.js"
integrity="sha256-LKU9ghY2QgkPr/yDfeLWFSzWfDf5JSPTNAIBnvglcsU=" crossorigin="anonymous"></script>
<script>
var opts = {
angle: 0.5, // The span of the gauge arc
lineWidth: 0.06, // The line thickness
radiusScale: 0.8, // Relative radius
pointer: {
length: 0.3, // // Relative to gauge radius
strokeWidth: 0.15, // The thickness
color: '#343a40' // Fill color
},
limitMax: false, // If false, max value increases automatically if value > maxValue
limitMin: false, // If true, the min value of the gauge will be fixed
colorStart: '#00C3FF', // Colors
colorStop: '#00C3FF', // just experiment with them
strokeColor: '#343a40', // to see which ones work best for you
generateGradient: true,
highDpiSupport: true, // High resolution support
};
var canvas1 = document.getElementById('canvas1'); // your canvas element
var gauge1 = new Donut(canvas1).setOptions(opts); // create sexy gauge!
gauge1.maxValue = 100; // set max gauge value
gauge1.setMinValue(0); // Prefer setter over gauge.minValue = 0
gauge1.animationSpeed = 10; // set animation speed (32 is default value)
gauge1.set(0); // set actual value
var canvas2 = document.getElementById('canvas2'); // your canvas element
var gauge2 = new Donut(canvas2).setOptions(opts); // create sexy gauge!
gauge2.maxValue = 100; // set max gauge value
gauge2.setMinValue(0); // Prefer setter over gauge.minValue = 0
gauge2.animationSpeed = 10; // set animation speed (32 is default value)
gauge2.set(45); // set actual value
var canvas3 = document.getElementById('canvas3'); // your canvas element
var gauge3 = new Donut(canvas3).setOptions(opts); // create sexy gauge!
gauge3.maxValue = 100; // set max gauge value
gauge3.setMinValue(0); // Prefer setter over gauge.minValue = 0
gauge3.animationSpeed = 10; // set animation speed (32 is default value)
gauge3.set(0); // set actual value
var canvas4 = document.getElementById('canvas4'); // your canvas element
var gauge4 = new Donut(canvas4).setOptions(opts); // create sexy gauge!
gauge4.maxValue = 100; // set max gauge value
gauge4.setMinValue(0); // Prefer setter over gauge.minValue = 0
gauge4.animationSpeed = 10; // set animation speed (32 is default value)
gauge4.set(0); // set actual value
var canvas5 = document.getElementById('canvas5'); // your canvas element
var gauge5 = new Donut(canvas5).setOptions(opts); // create sexy gauge!
gauge5.maxValue = 100; // set max gauge value
gauge5.setMinValue(0); // Prefer setter over gauge.minValue = 0
gauge5.animationSpeed = 10; // set animation speed (32 is default value)
gauge5.set(45); // set actual value
</script>
</body>
</html>