-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (67 loc) · 2.77 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
<!doctype html>
<html lang="sv" ng-app="app">
<head>
<meta charset="utf-8" />
<title>too much coffe</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
<script src="js/quo.js" type="text/javascript" language="javascript" charset="utf-8" ></script>
<script src="js/underscore-min.js" type="text/javascript" language="javascript" charset="utf-8" ></script>
<script src="js/angular.min.js" type="text/javascript" language="javascript" charset="utf-8" ></script>
<script src="js/app.js" type="text/javascript" language="javascript" charset="utf-8" ></script>
</head>
<body ng-controller="CoffeCtrl" ng-switch="page">
<div ng-switch-when="counter" id="counter" ng-class="cupimage" tap="add()" hold="reset()">
<div class="button" tap="showStats()">
<span>stats</span>
</div>
<h1 ng-show="count() > 15">{{ count() }}</h1>
</div>
<div ng-switch-when="stats">
<div class="button" tap="showCounter()">
<span>back</span>
</div>
<div id="stats" ng-controller="StatsCtrl">
<table>
<thead>
<tr><th colspan="2">Week {{ week }}</th></tr>
</thead>
<body>
<tr>
<td>monday</td>
<td>{{ monday }}</td>
</tr>
<tr>
<td>tuesday</td>
<td>{{ tuesday }}</td>
</tr>
<tr>
<td>wednesday</td>
<td>{{ wednesday }}</td>
</tr>
<tr>
<td>thursday</td>
<td>{{ thursday }}</td>
</tr>
<tr>
<td>friday</td>
<td>{{ friday }}</td>
</tr>
<tr>
<td>saturday</td>
<td>{{ saturday }}</td>
</tr>
<tr>
<td>sunday</td>
<td>{{sunday}}</td>
</tr>
<tr class="navigation">
<td tap="prev()">previous</td>
<td tap="next()">next</td>
</tr>
<tbody>
</table>
</div>
</div>
</body>
</html>