forked from patcat/JawboneUPNodeDemo
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathuserdata.ejs
68 lines (67 loc) · 1.26 KB
/
userdata.ejs
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
<!doctype html>
<html>
<head>
<title>Jawbone UP API with Node Demo</title>
<style type="text/css">
body {
background: url(/images/bg-space-purple.jpg) top center #000 no-repeat;
background-size: cover;
font-family: Arial, sans-serif;
text-align: center;
}
h1 {
color: #fff;
font-size: 36px;
}
.sleep-table {
background-color: rgba(81,0,255,0.8);
border-collapse: collapse;
margin: 0 auto;
width: 30%;
}
.sleep-table tr th {
background: rgba(46, 23, 146, 1);
}
.sleep-table tr th,
.sleep-table tr td {
border: 1px solid rgba(46, 23, 146, 1);
color: #fff;
font-weight: normal;
padding: 10px 25px;
}
.btn {
background-color: #9D65FF;
color: #fff;
display: block;
font-size: 24px;
margin: 30px auto;
padding: 10px;
text-decoration: none;
width: 40%;
}
.btn:hover {
background-color: #C893FF;
}
</style>
</head>
<body>
<h1>Jawbone UP Sleep Data</h1>
<table class="sleep-table">
<thead>
<tr>
<th>Date</th>
<th>Sleep time</th>
</tr>
</thead>
<tbody>
<% for (var i=0; i<items.length; i++) { %>
<tr>
<td><%= items[i].date %></td>
<td><%= items[i].title %></td>
</tr>
<% } %>
</tbody>
</table>
<a href="/logout" class="btn">Log out</a>
</body>
</html>