-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (30 loc) · 1.25 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
<!DOCTYPE html>
<html>
<head>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script type="text/javascript" src="scripts/smoothie.js"></script>
<script type="text/javascript" src="scripts/sensors.js"></script>
</head>
<body onload="createTimeline()" style="background-color:#fefefc">
<button type="button" class="btn btn-outline-primary btn-sm " onclick="requestPermission()">Request Permission</button>
<h6>Rotation rate
<small style="color:red">Alpha</small>
<small style="color:green">Beta</small>
<small style="color:blue">Gamma</small>
</h6>
<canvas id="rotation-rate-chart" style="width:100%;height:100px"></canvas>
<h6>Acceleration
<small style="color:red">x</small>
<small style="color:green">y</small>
<small style="color:blue">z</small>
</h6>
<canvas id="acceleration-chart" style="width:100%;height:100px"></canvas>
<h6>Orientation
<small style="color:red">x</small>
<small style="color:green">y</small>
<small style="color:blue">z</small>
</h6>
<canvas id="orientation-chart" style="width:100%;height:100px"></canvas>
</body>
</html>