-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
104 lines (96 loc) · 3.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" type="text/css" href="https://api.pryv.com/style/pryv2.min.css">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400">
<title>View and Share - Pryv Example</title>
</head>
<script src="https://api.pryv.com/lib-js/pryv.js"></script>
<script src="script.js"></script>
<body>
<div class="container">
<h1>Pryv view and share data</h1>
<div class="card">
<div class="card-body">
<h2 class="card-title">Welcome</h2>
<span id="pryv-button"></span>
<br><br>
<span id="welcome-message-mme">
Dear Madam, following the survey that you filled in recently, you can visualize the data you entered and share it with third parties on the next page.
</span>
<br>
<span id="welcome-message-viewer" style="visibility: hidden;"> You are currently consulting shared data from <span id="username"></span>
</span>
<br>
<span id="please-login">
Please login.
</span>
</div>
</div>
<div class="card" id="data-view" style="visibility: hidden;">
<div class="card-body">
<h2 class="card-title">Data</h2>
<table id='baby-weight-table' class="table">
<thead>
<tr>
<th colspan="2"><b>Baby's weight</b></td>
</tr>
<tr>
<th scope="col">Date</th>
<th scope="col">Weight</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<table id='blood-pressure-table' class="table">
<thead>
<tr>
<th colspan="3"><b>Blood pressure</b></td>
</tr>
<tr>
<th scope="col">Date</th>
<th scope="col">Systolic</th>
<th scope="col">Diastolic</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div class="card" id="sharing-view" style="visibility: hidden;">
<div class="card-body">
<h2 class="card-title">Sharings</h2>
<form class="form-inline">
<button type="button" id="create-sharing" class="btn btn-primary btn-sm">Create</button>
<input type="text" id="sharing-name" placeholder="name of the sharing">
<input class="form-check-input" type="checkbox" id="check-baby" value="baby-data" checked="checked">
<label class="form-check-label" for="check-baby">Baby-Body</label>
<input class="form-check-input" type="checkbox" id="check-bp" value="baby-data" checked="checked">
<label class="form-check-label" for="check-bp">Heart</label>
</form>
<table id='sharings-table' class="table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Scope</th>
<th scope="col">Link</th>
<th scope="col">Mail</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<small id='sharing-delete-message'>Click on the name of a sharing to delete it.</small>
</div>
</div>
</div>
</body>
</html>