-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (49 loc) · 2.53 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="styles/main.css">
<meta charset="UTF-8"/>
<title>Time Counter</title>
</head>
<body ng-app="TimeCounter"style="width:300px;" >
<div ng-controller="CounterController">
<div class="container-fluid" style="margin-top:10px;margin-bottom:10px;">
<div class="row">
<div class="col-lg-12">
<div class="input-group">
<input type="text" class="form-control" placeholder="Task Name" ng-model="projectname">
<span class="input-group-btn">
<button class="btn btn-default" type="button" ng-click="addProject()">
<span class="glyphicon glyphicon-plus"></span>
</button>
</span>
</div>
</div>
<br>
<div class="col-lg-12">
<p> Remind me if i have open tasks every 30 minutes <input type="checkbox" ng-model="remind" ng-change="remindChange()"></p>
<p style="font-size:10px; "> (tip: disable it when you finish your work so no app will be running in the background) <p> </div>
</div>
<div class="row" ng-repeat="pro in projects track by $index" style="padding:5px;">
<div class="col-xs-8"><h3>{{pro.name}}</h3></div>
<div class="col-xs-4">
<h3>
<button class="btn btn-default btn-success"ng-click="click($index)">
<span ng-class="pro.iconClass" ></span>
</button>
<span style="font-size:15px;cursor:pointer" class="glyphicon glyphicon-trash" ng-click="delete($index)"></span>
</h3>
</div>
<div class="col-xs-12">
<h4>Total time - {{pro.hours}}h : {{pro.minutes}}m : {{pro.seconds}}s</h3>
</div>
<div class="line" ng-show="$index!=0"></div>
</div>
</div>
</div>
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/angular.min.js"></script>
<script type="text/javascript" src="scripts/main.js"></script>
</body>
</html>