-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
292 lines (280 loc) · 11.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Bootstrap CSS -->
<link href="bootstrap-5.1.3-dist/css/bootstrap.min.css" rel="stylesheet" />
<link href="src/css/index.css" rel="stylesheet" />
<title>Fire Detection</title>
</head>
<body>
<nav class="navbar navbar-dark p-0 bg-black">
<div class="container">
<span class="navbar-brand m-0 fs-4 fw-bold"
>Fire Detection Dashboard</span
>
</div>
</nav>
<main>
<div id="flash-message" class="text-center bg-danger text-center text-white fw-bold">Connecting...</div>
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-10 m-lg-2">
<h1 id="device-name" class="h1 fs-1 fw-bold text-center mt-4 text-capitalize">Device Name</h1>
<p class="environmental container-fluid m-0 p-0">
<div class="row pt-3">
<div class="col">
<p class="fw-bold">Environmental Conditions</p>
</div>
<div class="col text-end">
<small>
<a href="/datahistory.html" class="text-dark fs-6 text-decoration-none"
>more about environmental conditions history >></a
>
</small>
</div>
</div>
<div class="row mb-3">
<div class="col-lg-3 my-2">
<div id="card-temperature"
class="card px-3 shadow-c rounded-4 border-0 bg-darkgrey"
>
<div class="card-body text-center">
<h5 class="card-title fw-bold">Temperature</h5>
<div class="row my-4 justify-content-center">
<div class="col text-end p-0">
<img src="/src/img/celsius.png" alt="" width="50px" />
</div>
<div class="col align-self-center p-0">
<p class="fw-bold fs-3">
<u id="value-temp">NaN</u>°
</p>
</div>
</div>
<p id="card-text-temperature" class="card-text">
The air temperature is safe to live in
</p>
</div>
</div>
</div>
<div class="col-lg-3 my-2">
<div id="card-humidity"
class="card px-3 shadow-c rounded-4 border-0 bg-darkgrey"
>
<div class="card-body text-center">
<h5 class="card-title fw-bold">Humidity</h5>
<div class="row my-4 justify-content-center">
<div class="col text-end p-0">
<img
src="/src/img/humidity.png"
alt=""
width="50px"
/>
</div>
<div class="col align-self-center p-0">
<p class="fw-bold fs-3">
<u id="value-humidity">NaN</u>%
</p>
</div>
</div>
<p id="card-text-humidity" class="card-text">
The air humidity is safe to live in
</p>
</div>
</div>
</div>
<div class="col-lg-3 my-2">
<div id="card-gas"
class="card px-3 shadow-c rounded-4 border-0 bg-darkgrey"
>
<div class="card-body text-center">
<h5 class="card-title fw-bold">Gas density</h5>
<div class="row my-4 justify-content-center">
<div class="col text-end p-0">
<img
src="/src/img/fresh-air.png"
alt=""
width="50px"
/>
</div>
<div class="col align-self-center p-0">
<p class="fw-bold fs-3">
<u id="value-gas">NaN</u
><span class="fs-6">ppm</span>
</p>
</div>
</div>
<p id="card-text-gas" class="card-text">
The air is non-toxic and safe to live in
</p>
</div>
</div>
</div>
<div class="col-lg-3 my-2">
<div id="card-fire"
class="card px-3 shadow-c rounded-4 border-0 bg-darkgrey text-black"
>
<div class="card-body text-center">
<h5 class="card-title fw-bold">Is there fire</h5>
<div class="row my-4 justify-content-center">
<div class="col text-end p-0">
<img src="/src/img/fire.png" alt="" width="50px" />
</div>
<div class="col align-self-center p-0">
<p class="fw-bold fs-3">
<u id="value-flame">NaN</u>
</p>
</div>
</div>
<p id="card-text-fire" class="card-text">
No flame detected, you can stay here
</p>
</div>
</div>
</div>
</div>
<div class="row">
<p><strong>Date collected on:</strong> <span id="tanggal-data">Connection Error</span></p>
</div>
<p class="fw-bold m-0">Device location: </p>
<div class="row justify-content-center">
<div class="col-lg-6 text-center">
<iframe
id="device-location"
src="error connection, check the API connection"
allowfullscreen=""
loading="lazy"
width="100%"
height=250px
class="shadow-c rounded-4 my-4"
></iframe>
</div>
</div>
<div class="row pt-3 mb-3">
<div class="col">
<p class="fw-bold">Device Conditions</p>
</div>
<div class="col text-end">
<small>
<a href="/syshistory.html" class="text-dark fs-6 text-decoration-none"
>more about device conditions history >></a
>
</small>
</div>
</div>
<div class="row justify-content-lg-between mb-5">
<div class="col-lg-2 mb-4">
<div
class="card px-3 shadow-c rounded-4 border-0 bg-darkgrey"
>
<div class="card-body text-center">
<h5 class="card-title fw-bold">WiFi</h5>
<img
class="my-4"
src="src/img/wifi.png"
alt=""
width="50px"
/>
<p class="card-text fs-4">
<strong><u id="status-wifi">OFF</u></strong>
</p>
</div>
</div>
</div>
<div class="col-lg-2 mb-4">
<div
class="card px-2 shadow-c rounded-4 border-0 bg-darkgrey"
>
<div class="card-body text-center">
<h5 class="card-title fw-bold">
<small>Bluetooth</small>
</h5>
<img
class="my-4"
src="src/img/bluetooth.png"
alt=""
width="50px"
/>
<p class="card-text fs-4">
<strong><u id="status-bluetooth">OFF</u></strong>
</p>
</div>
</div>
</div>
<div class="col-lg-3 mb-4">
<div
class="card px-3 shadow-c rounded-4 border-0 bg-darkgrey"
>
<div class="card-body text-center">
<h5 class="card-title fw-bold"><small>Fire Sensor</small></h5>
<img
class="my-4"
src="src/img/flame sensor.png"
alt=""
width="50px"
/>
<p class="card-text fs-4">
<strong><u id="status-flame">OFF</u></strong>
</p>
</div>
</div>
</div>
<div class="col-lg-2 mb-4">
<div
class="card px-3 shadow-c rounded-4 border-0 bg-darkgrey"
>
<div class="card-body text-center">
<h5 class="card-title fw-bold">MQ7</h5>
<img
class="my-4"
src="src/img/mq7.png"
alt=""
width="50px"
/>
<p class="card-text fs-4">
<strong><u id="status-mq7">OFF</u></strong>
</p>
</div>
</div>
</div>
<div class="col-lg-2 mb-4">
<div
class="card px-3 shadow-c rounded-4 border-0 bg-darkgrey"
>
<div class="card-body text-center">
<h5 class="card-title fw-bold">DHT11</h5>
<img
class="my-4"
src="src/img/dht11.png"
alt=""
width="50px"
/>
<p class="card-text fs-4">
<strong><u id="status-dht11">OFF</u></strong>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<footer class="p-2 text-center bg-black">
<p class="m-0 text-white fw-bold fs-5">Shazi Awaludin © 2021</p>
</footer>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="bootstrap-5.1.3-dist/js/bootstrap.bundle.min.js"></script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13" crossorigin="anonymous"></script>
-->
<!-- my own javascript -->
<script src="src/js/index.js"></script>
</body>
</html>