-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
67 lines (60 loc) · 2.07 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="en" ng-app="myApp">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<title>µStopwatch</title>
<link rel="shortcut icon" href="img/favicon.ico" />
<link rel="manifest" href="manifest.json">
<!-- Onsen UI -->
<link rel="stylesheet" href="lib/onsen/css/onsenui.css">
<link rel="stylesheet" href="lib/onsen/css/onsen-css-components-blue-basic-theme.css">
<script type="text/javascript" src="lib/onsen/js/angular/angular.min.js"></script>
<script type="text/javascript" src="lib/onsen/js/onsenui.min.js"></script>
<!-- Miscellaneous -->
<script type="text/javascript" src="lib/moment-2.9.0.min.js"></script>
<!-- App -->
<link rel="stylesheet" href="css/app.css"/>
<script type="text/javascript" src="js/app.js"></script>
</head>
<body ng-controller="mainCtrl">
<ons-page>
<ons-toolbar>
<div class="center"><strong>µStopwatch</strong></div>
</ons-toolbar>
<ons-row class="display">
<ons-col>
<strong>{{parseIntBis(timer/60000)}}:{{parseIntBis((timer/1000)%60)}}</strong>.<small>{{parseIntBis((timer%1000)/10)}}</small>
</ons-col>
</ons-row>
<ons-row class="buttons">
<ons-col>
<button ng-click="play()">
Play
</button>
</ons-col>
<ons-col>
<button ng-click="pause()">
Pause
</button>
</ons-col>
<ons-col>
<button ng-click="stop()">
Stop
</button>
</ons-col>
</ons-row>
<br/>
<ons-row ng-show="list.length > 0">
<ons-col>
<ons-list class="registers">
<ons-list-header>Registers</ons-list-header>
<ons-list-item ng-repeat="item in list">
<span class="hour">{{item.start.format('HH:mm:ss')}}</span> - {{formatTime(item.time)}}
</ons-list-item>
</ons-list>
</ons-col>
</ons-row>
</ons-page>
</body>
</html>