-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
350 lines (328 loc) · 21.5 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard - Healthy BMS</title>
<link rel="stylesheet" href="styles.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.6.0/Chart.min.js"></script>
</head>
<body>
<!--navbar-->
<nav class="flex items-center justify-between flex-wrap bg-blue-500 py-3 px-6">
<div class="flex items-center flex-shrink-0 text-white mr-6">
<svg class="fill-current h-8 w-8 mr-2" width="54" height="54" viewBox="0 0 54 54" xmlns="http://www.w3.org/2000/svg"><path d="M13.5 22.1c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05zM0 38.3c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 8.1 17.55 9.45 3.6.9 6.75-.45 9.45-4.05-1.8 7.2-6.3 10.8-13.5 10.8-10.8 0-12.15-8.1-17.55-9.45-3.6-.9-6.75.45-9.45 4.05z"/></svg>
<span class="font-semibold text-xl tracking-tight">Healthy BMS</span>
</div>
<div class="block lg:hidden">
<button class="flex items-center px-3 py-2 border rounded text-white-200 border-teal-400 hover:text-white hover:border-white">
<svg class="fill-current h-3 w-3" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><title>Menu</title><path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"/></svg>
</button>
</div>
<div class="w-full block flex-grow lg:flex lg:items-center lg:w-auto">
<div class="text-md flex lg:flex-grow justify-center">
<a href="#responsive-header" class="block mt-4 lg:inline-block lg:mt-0 text-white hover:text-white mr-4">
Home
</a>
<a href="#responsive-header" class="block mt-4 lg:inline-block lg:mt-0 text-white hover:text-white mr-4">
Energy
</a>
<a href="#responsive-header" class="block mt-4 lg:inline-block lg:mt-0 text-white hover:text-white mr-4">
Air
</a>
<a href="#responsive-header" class="block mt-4 lg:inline-block lg:mt-0 text-white hover:text-white mr-4">
Management
</a>
<a href="#responsive-header" class="block mt-4 lg:inline-block lg:mt-0 text-white hover:text-white mr-4">
Site Planning
</a>
<a href="#responsive-header" class="block mt-4 lg:inline-block lg:mt-0 text-white hover:text-white mr-4">
Lab
</a>
<a href="#responsive-header" class="block mt-4 lg:inline-block lg:mt-0 text-white hover:text-white mr-4">
IEQ
</a>
<a href="#responsive-header" class="block mt-4 lg:inline-block lg:mt-0 text-white hover:text-white">
Inovasi
</a>
</div>
<div>
<a href="login.html" class="inline-block text-sm px-4 py-2 leading-none bg-red-500 hover:bg-red-700 text-white font-semibold rounded-lg shadow-md mt-4 lg:mt-0">Log Out</a>
</div>
</div>
</nav>
<!--navbar-->
<div class="grid grid-cols-8 gap-4">
<div class="col-span-8 lg:col-span-1">
<!--sidebar-->
<div class="grid grid-cols-1 bg-blue-500 h-full">
<div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#accordionExample">
<div class="card-body">
<div class="nav flex-column nav-pills grid grid-cols-1" id="v-pills-tab" role="tablist" aria-orientation="vertical">
<a class="bg-blue-700 text-white py-2 px-2" id="v-pills-RDosen-tab" data-toggle="pill" href="#v-pills-RDosen" role="tab" aria-controls="v-pills-RDosen" aria-selected="true" onclick="myFunction()">Ruang Dosen</a>
<a class="hover:bg-blue-700 bg-blue-500 active:bg-blue-700 text-white py-2 px-2" id="v-pills-RTunggu-tab" data-toggle="pill" href="#v-pills-RTunggu" role="tab" aria-controls="v-pills-RTunggu" aria-selected="false">Ruang Tunggu</a>
<a class="hover:bg-blue-700 text-white py-2 px-2" id="v-pills-RDental-tab" data-toggle="pill" href="#v-pills-RDental" role="tab" aria-controls="v-pills-RDental" aria-selected="false">Ruang Dental X-Ray</a>
<a class="hover:bg-blue-700 text-white py-2 px-2" id="v-pills-PGAnak-tab" data-toggle="pill" href="#v-pills-PGAnak" role="tab" aria-controls="v-pills-PGAnak" aria-selected="true">Poli Gigi Anak</a>
<a class="hover:bg-blue-700 text-white py-2 px-2" id="v-pills-PG1-tab" data-toggle="pill" href="#v-pills-PG1" role="tab" aria-controls="v-pills-PG1" aria-selected="false">Poli Gigi (1)</a>
<a class="hover:bg-blue-700 text-white py-2 px-2" id="v-pills-PG2-tab" data-toggle="pill" href="#v-pills-PG2" role="tab" aria-controls="v-pills-PG2" aria-selected="false">Poli Gigi (2)</a>
<a class="hover:bg-blue-700 text-white py-2 px-2" id="v-pills-PG3-tab" data-toggle="pill" href="#v-pills-PG3" role="tab" aria-controls="v-pills-PG3" aria-selected="true">Poli Gigi (3)</a>
<a class="hover:bg-blue-700 text-white py-2 px-2" id="v-pills-PAnak-tab" data-toggle="pill" href="#v-pills-PAnak" role="tab" aria-controls="v-pills-PAnak" aria-selected="false">Poli Anak</a>
</div>
</div>
</div>
</div>
<!--sidebar-->
</div>
<div class="col-span-8 lg:col-span-5">
<div class="tab-content" id="v-pills-tabContent">
<div class="tab-pane fade show active" id="v-pills-RDosen" role="tabpanel" aria-labelledby="v-pills-RDosen-tab">
<p class="text-2xl">Ruang Dosen</p>
<p>Selamat datang di Ruang Dosen.</p>
</div>
<div class="tab-pane fade" id="v-pills-RTunggu" role="tabpanel" aria-labelledby="v-pills-RTunggu-tab">
<h4>Ruang Tunggu</h4>
<p>Selamat datang di Ruang Tunggu.</p>
</div>
<hr>
<p class="text-2xl sm:text-3xl md:text-3xl lg:text-3xl xl:text-4xl 2xl:text-5xl font-bold">Indoor Environtment Quality</p>
<p class="text-xs sm:text-sm xl:text-base">Lantai 1. Poli Gigi Umum, Ruang Konsultasi A</p>
<div>
<div></div>
</div>
</div>
<!--Data Realtime-->
<div class="ml-1 border border-blue-500 rounded-lg my-5">
<p class="text-4xl text-center mb-10">DATA REALTIME</p>
<div class="grid grid-cols-5 my-5">
<div class="text-center grid place-items-center col-span-5 lg:col-span-1 border-b-2 lg:border-none">
<div class="">
<p class="text-3xl lg:text-xl mb-3">IEQ Keseluruhan</p>
<p class="text-5xl lg:text-3xl mb-5 lg:mb-0 text-green-500 font-bold">BAIK</p>
</div>
</div>
<div class="col-span-5 text-3xl lg:text-base lg:col-span-4 mr-1">
<div class="grid place-items-center grid-cols-1 sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6 mb-5 space-y-5">
<div class="text-center flex-row items-center">
<p class="font-semibold">Temperature</p>
<p class="text-green-500 font-bold">24 <span>°</span>C</p>
</div>
<div class="text-center flex-row items-center">
<p class="font-semibold">Kelembaban</p>
<p class="text-green-500 font-bold">20 %</p>
</div>
<div class="text-center flex-row items-center">
<p class="font-semibold">Kebisingan</p>
<p class="text-green-500 font-bold">20 dB</p>
</div>
<div class="text-center flex-row items-center">
<p class="font-semibold">Illuminansi</p>
<p class="text-green-500 font-bold">300 lux</p>
</div>
<div class="text-center flex-row items-center">
<p class="font-semibold">Outdoor ACH</p>
<p class="text-green-500 font-bold">90 %</p>
</div>
<div class="text-center flex-row items-center">
<p class="font-semibold">Formaldehida</p>
<p class="text-green-500 font-bold">0.05 ppm</p>
</div>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6 mb-5 space-y-5">
<div class="text-center flex-row items-center">
<p class="font-semibold">PM 2.5</p>
<p class="text-green-500 font-bold">0.01 mg/m<sup>3</sup></p>
</div>
<div class="text-center flex-row items-center">
<p class="font-semibold">PM 10</p>
<p class="text-green-500 font-bold">0.05 mg/m<sup>3</sup></p>
</div>
<div class="text-center flex-row items-center">
<p class="font-semibold">CO<sub>2</sub></p>
<p class="text-green-500 font-bold">1021 ppm</p>
</div>
<div class="text-center flex-row items-center">
<p class="font-semibold">CO</p>
<p class="text-green-500 font-bold">4.5 ppm</p>
</div>
<div class="text-center flex-row items-center">
<p class="font-semibold">VOC</p>
<p class="text-green-500 font-bold">26 ppb</p>
</div>
<div class="text-center flex-row items-center">
<p class="font-semibold">Tekanan udara</p>
<p class="text-green-500 font-bold italic">positive</p>
</div>
</div>
</div>
</div>
</div>
<!--Data Realtime-->
<!--line chart-->
<div class="ml-1 border border-blue-500 rounded-lg mb-5 grid justify-items-center">
<p class="text-3xl mt-5">RECENT HISTORY</p>
<div class="flex flex-wrap justify-center space-x-2 space-y-2 my-5">
<button class="border border-blue-500 px-2 rounded-lg focus:bg-blue-400 focus:text-white">Temperatur</button>
<button class="border border-blue-500 px-2 rounded-lg focus:bg-blue-400 focus:text-white">Kelembaban</button>
<button class="border border-blue-500 px-2 rounded-lg focus:bg-blue-400 focus:text-white">Illuminansi</button>
<button class="border border-blue-500 px-2 rounded-lg focus:bg-blue-400 focus:text-white">ACH</button>
<button class="border border-blue-500 px-2 rounded-lg focus:bg-blue-400 focus:text-white">Formaldehida</button>
<button class="border border-blue-500 px-2 rounded-lg focus:bg-blue-400 focus:text-white">PM 2.5</button>
<button class="border border-blue-500 px-2 rounded-lg focus:bg-blue-400 focus:text-white">PM 10</button>
<button class="border border-blue-500 px-2 rounded-lg focus:bg-blue-400 focus:text-white">CO<sub>2</sub></button>
<button class="border border-blue-500 px-2 rounded-lg focus:bg-blue-400 focus:text-white">CO</button>
<button class="border border-blue-500 px-2 rounded-lg focus:bg-blue-400 focus:text-white">VOC</button>
</div>
<div class="ml-1 mb-5" style="position: relative; height: 80%; width: 90%;">
<canvas id="myChart"></canvas>
</div>
</div>
<!--line chart-->
<!--pie chart-->
<div class="ml-1 border border-blue-500 rounded-lg mb-5 grid justify-items-center">
<p class="text-3xl mt-5 text-center">Post Occupancy Evaluation</p>
<div class="flex justify-center space-x-2 my-5">
<button class="border border-blue-500 px-2 rounded-lg focus:bg-blue-400 focus:text-white">1 Bulan</button>
<button class="border border-blue-500 px-2 rounded-lg focus:bg-blue-400 focus:text-white">6 Bulan</button>
<button class="border border-blue-500 px-2 rounded-lg focus:bg-blue-400 focus:text-white">1 Tahun</button>
</div>
<div class="space-y-5 mb-5">
<div style="position: relative; height: 250px; width: 250px;">
<canvas id="myChart2"></canvas>
</div>
<div style="position: relative; height: 250px; width: 250px;">
<canvas id="myChart3"></canvas>
</div>
<div style="position: relative; height: 250px; width: 250px;">
<canvas id="myChart4"></canvas>
</div>
</div>
</div>
<!--pie chart-->
</div>
<!--Right Side-->
<div class="col-span-8 lg:col-span-2">
<!--WARNING-->
<div class="border border-blue-500 mx-2 my-2 rounded-lg px-1 py-2">
<p class="text-3xl xl:text-base text-center mb-3 font-bold">PERINGATAN</p>
<div class="grid grid-cols-4">
<p class="text-base md:text-lg xl:text-sm col-span-4 xl:col-span-1 xl:text-right text-gray-500 pr-2">12/07/2021</p>
<p class="text-base md:text-lg xl:text-sm col-span-4 xl:col-span-3 mb-2">Kadar CO2 melebihi ambang batas 1000 ppm</p>
<p class="text-base md:text-lg xl:text-sm col-span-4 xl:col-span-1 xl:text-right text-gray-500 pr-2">10/07/2021</p>
<p class="text-base md:text-lg xl:text-sm col-span-4 xl:col-span-3 mb-2">Temperatur terlalu rendah, di bawah 20 C</p>
<p class="text-base md:text-lg xl:text-sm col-span-4 xl:col-span-1 xl:text-right text-gray-500 pr-2">09/07/2021</p>
<p class="text-base md:text-lg xl:text-sm col-span-4 xl:col-span-3 mb-2">Tingkat kelembaban terlalu tinggi, di atas batas 25 %</p>
<p class="text-base md:text-lg xl:text-sm col-span-4 xl:col-span-1 xl:text-right text-gray-500 pr-2">07/07/2021</p>
<p class="text-base md:text-lg xl:text-sm col-span-4 xl:col-span-3 mb-2">Kebisingan melebihi batas ambang 20dB</p>
<p class="text-base md:text-lg xl:text-sm col-span-4 xl:col-span-1 xl:text-right text-gray-500 pr-2">03/07/2021</p>
<p class="text-base md:text-lg xl:text-sm col-span-4 xl:col-span-3 mb-2">Sensor pencahayaan tidak mengirimkan data</p>
</div>
</div>
<!--WARNING-->
<!--Toggle Sensor-->
<div class="border border-blue-500 mx-2 my-2 rounded-lg px-1 py-2">
<p class="text-center mb-3 font-bold">KONDISI SENSOR REALTIME</p>
<div class="pl-4 pb-2">
<div class="relative inline-block w-10 mr-2 align-middle select-none transition delay-150 duration-700 ease-in-out">
<input type="checkbox" name="toggle" id="toggle1" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
<label for="toggle1" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-500 cursor-pointer"></label>
</div>
<label for="toggle1" class=" text-base md:text-lg xl:text-sm">Sensor Temperature</label>
</div>
<div class="ml-4 mb-2">
<div class="relative inline-block w-10 mr-2 align-middle select-none transition delay-150 duration-700 ease-in-out">
<input type="checkbox" name="toggle2" id="toggle" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
<label for="toggle2" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-500 cursor-pointer"></label>
</div>
<label for="toggle2" class=" text-base md:text-lg xl:text-sm">Sensor Kelembaban</label>
</div>
<div class="ml-4 mb-2">
<div class="relative inline-block w-10 mr-2 align-middle select-none transition delay-150 duration-700 ease-in-out">
<input type="checkbox" name="toggle" id="toggle3" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
<label for="toggle3" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-500 cursor-pointer"></label>
</div>
<label for="toggle3" class="text-base md:text-lg xl:text-sm">Sensor Cahaya</label>
</div>
<div class="ml-4 mb-2">
<div class="relative inline-block w-10 mr-2 align-middle select-none transition delay-150 duration-700 ease-in-out">
<input type="checkbox" name="toggle" id="toggle5" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
<label for="toggle4" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-500 cursor-pointer"></label>
</div>
<label for="toggle4" class="text-base md:text-lg xl:text-sm">Sensor ACH</label>
</div>
<div class="ml-4 mb-2">
<div class="relative inline-block w-10 mr-2 align-middle select-none transition delay-150 duration-700 ease-in-out">
<input type="checkbox" name="toggle" id="toggle5" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
<label for="toggle5" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-500 cursor-pointer"></label>
</div>
<label for="toggle5" class="text-base md:text-lg xl:text-sm">Sensor Formaldehida</label>
</div>
<div class="ml-4 mb-2">
<div class="relative inline-block w-10 mr-2 align-middle select-none transition delay-150 duration-700 ease-in-out">
<input type="checkbox" name="toggle" id="toggle6" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
<label for="toggle6" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-500 cursor-pointer"></label>
</div>
<label for="toggle6" class="text-base md:text-lg xl:text-sm">Sensor CO</label>
</div>
<div class="ml-4 mb-2">
<div class="relative inline-block w-10 mr-2 align-middle select-none transition delay-150 duration-700 ease-in-out">
<input type="checkbox" name="toggle" id="toggle7" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
<label for="toggle7" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-500 cursor-pointer"></label>
</div>
<label for="toggle7" class="text-base md:text-lg xl:text-sm">Sensor CO2</label>
</div>
<div class="ml-4 mb-2">
<div class="relative inline-block w-10 mr-2 align-middle select-none transition delay-150 duration-700 ease-in-out">
<input type="checkbox" name="toggle" id="toggle8" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
<label for="toggle8" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-500 cursor-pointer"></label>
</div>
<label for="toggle8" class="text-base md:text-lg xl:text-sm">Sensor PM 2.5</label>
</div>
<div class="ml-4 mb-2">
<div class="relative inline-block w-10 mr-2 align-middle select-none transition delay-150 duration-700 ease-in-out">
<input type="checkbox" name="toggle" id="toggle9" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
<label for="toggle9" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-500 cursor-pointer"></label>
</div>
<label for="toggle9" class="text-base md:text-lg xl:text-sm">Sensor PM 2.5</label>
</div>
<div class="ml-4 mb-2">
<div class="relative inline-block w-10 mr-2 align-middle select-none transition delay-150 duration-700 ease-in-out">
<input type="checkbox" name="toggle" id="toggle10" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
<label for="toggle10" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-500 cursor-pointer"></label>
</div>
<label for="toggle10" class="text-base md:text-lg xl:text-sm">Sensor VOC</label>
</div>
<div class="ml-4">
<div class="relative inline-block w-10 mr-2 align-middle select-none transition delay-150 duration-700 ease-in-out">
<input type="checkbox" name="toggle" id="toggle11" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer"/>
<label for="toggle11" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-500 cursor-pointer"></label>
</div>
<label for="toggle11" class="text-base md:text-lg xl:text-sm">Sensor Udara</label>
</div>
</div>
<!--Toggle Sensor-->
</div>
</div>
<!--container-->
<style>
/* CHECKBOX TOGGLE SWITCH */
/* @apply rules for documentation, these do not work as inline style */
.toggle-checkbox:checked {
@apply: right-0 border-green-400;
right: 0;
border-color: #3B82F6;
}
.toggle-checkbox:checked + .toggle-label {
@apply: bg-green-400;
background-color: #3B82F6;
}
.fade {
display: none;
}
.fade:active {
display: block;
}
</style>
<script src="grafik.js"></script>
</body>
</html>