-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
102 lines (99 loc) · 3.43 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Glucomether</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" />
<style>html, body {margin: 0; height: 100%; overflow: hidden}</style>
</head>
<body style="background-color:#212529;">
<!-- As a heading -->
<div class="p-3 mb-2 bg-dark text-white">
<div class="container">
<div class="row">
<div class="col-5">
<h1 id="time"></h1>
</div>
<div class="col">
<span class="badge bg-success bi bi-battery-full" id="battery" style="font-size:30px; font-family: Arial;">medicalDeviceBatteryLevelPercent</span>
</div>
<div class="col">
<span class="badge bg-secondary" id="duration" style="font-size:30px; font-family: Arial;">sensorDurationHours</span>
</div>
<div class="col">
<span class="badge bg-warning text-dark" id="claibration" style="font-size:30px; font-family: Arial;">timeToNextCalibHours</span>
</div>
</div>
</div>
<hr />
<div class="container-fluid">
<div class="row">
<div class="col">
<h1 style="font-family: Arial;" id="Name">Hey!</h1>
</br>
<div class="alert alert-info bi bi-info-circle-fill" role="alert" style="font-family: Arial;" id="info"> Sensor is ok 👍</div>
<div class="container">
<div class="row">
<div class="col">
<center>
<p style="font-size:150px; font-family: Arial;" id="lastSG">lastSG</p>
</center>
</div>
<div class="col">
<div class="row">
<p></br></p>
</div>
<div class="row">
<div class="container">
<div class="row">
<div class="col-1">
<p style="font-size:50px; font-family: Arial;" id="trend"></p>
</div>
<div class="col-1">
<p style="font-size:50px; font-family: Arial;" id="trend2"></p>
</div>
<div class="col-1">
<p style="font-size:50px; font-family: Arial;" id="trend3"></p>
</div>
</div>
</div>
</div>
<div class="row">
<p style="font-size:25px; vertical-align: text-top; font-family: Arial;">MG/DL</p>
</div>
</div>
<div class="col">
</div>
</div>
</div>
</div>
<div class="col">
</br></br>
<canvas id="myChart" style="width:100%;max-width:700px" id="canva"></canvas>
</div>
</div>
<hr />
<div class="container">
<div class="row">
<div class="col">
</br>
<p id = "status">Status</p>
</div>
<div class="col">
</br>
</div>
<div class="col">
</br>
</div>
</div>
</div>
</br>
<hr />
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.js"></script>
<script src="script.js"></script>
</body>
</html>