-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (51 loc) · 1.78 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IoT Dashboard</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
background-color: #f8f9fa;
}
.card {
margin-top: 20px;
}
</style>
</head>
<body>
<div class="container">
<h1 class="text-center mt-4">IoT Dashboard</h1>
<div class="row">
<div class="col-md-4">
<div class="card text-center">
<div class="card-body">
<h5 class="card-title">Temperature</h5>
<p id="temperature" class="display-4">-- °C</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card text-center">
<div class="card-body">
<h5 class="card-title">Humidity</h5>
<p id="humidity" class="display-4">-- %</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card text-center">
<div class="card-body">
<h5 class="card-title">Toggle Light</h5>
<button id="toggle-light" class="btn btn-primary">Toggle</button>
</div>
</div>
</div>
</div>
<canvas id="chart" style="margin-top: 40px;"></canvas>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="app.js"></script>
</body>
</html>