-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpaas.html
More file actions
90 lines (84 loc) · 2.11 KB
/
paas.html
File metadata and controls
90 lines (84 loc) · 2.11 KB
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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style type="text/css">
table, th, td {
border: 1px solid grey;
}
table{
padding: 0.2em;
width: 60%;
}
td{
padding: 0.5em;
width: 45%;
text-align: center;
}
th{
font-weight: bold;
padding: 0.75em;
font-size: large;
}
</style>
</head>
<body>
<table>
<tr>
<th colspan="2">Blood Pressure</th>
</tr>
<tr>
<td>Upper (Systolic)</td>
<td>
<svg height="30" width="300">
<g id="systolic"></g>
</svg>
</td>
</tr>
<tr>
<td>Lower (Diastolic)</td>
<td>
<svg height="30" width="300">
<g id="diastolic"></g>
</svg>
</td>
</tr>
</table>
<div style="clear: both;"> </div>
<table>
<tr>
<th colspan="2">Physical activity</th>
</tr>
<tr>
<td>Weekly activity days</td>
<td>
<svg height="30" width="300">
<g id="weeklyActiveDays"></g>
</svg>
</td>
</tr>
<tr>
<td>Daily activity level (Steps per day measure)</td>
<td>
<svg height="30" width="300">
<g id="stepsPerDay"></g>
</svg>
</td>
</tr>
</table>
</body>
<script type="text/javascript" src="measurement.js"></script>
<script type="text/javascript" src="paas.js"></script>
<script>
var systolic = new Measurement(80, 160, 100, 130, 135); // 120
var systolicSVG = new BoxAndDot("systolic", systolic, 300, 30);
var diastolic = new Measurement(50, 110, 60, 90, 95); // 80
// 0 100 50 70 75
var diastolicSVG = new BoxAndDot("diastolic", diastolic, 300, 30);
var weeklyActiveDays = new Measurement(0, 7, 2, 4, 1);
var weeklyActiveDaysSVG = new BoxAndDot("weeklyActiveDays", weeklyActiveDays, 300, 30);
var stepsPerDay = new Measurement(0, 20000, 5000, 10000, 1552);
var stepsPerDaySVG = new BoxAndDot("stepsPerDay", stepsPerDay, 300, 30);
</script>
</html>