-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
72 lines (70 loc) · 2.88 KB
/
index.html
File metadata and controls
72 lines (70 loc) · 2.88 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Template • TodoMVC</title>
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/app.css">
<script src="//cdn.bootcss.com/angular.js/1.5.7/angular.min.js"></script>
<script src="js/controller.js"></script>
<script src="js/server.js"></script>
<script src="js/app.js"></script>
</head>
<body ng-app="myapp" ng-controller="testController" >
<section class="todoapp">
<header class="header">
<h1>todos</h1>
<form ng-submit="add()">
<input ng-model="task" class="new-todo" placeholder="What needs to be done?" autofocus>
</form>
</header>
<section class="main">
<input ng-click="allChecked()" class="toggle-all" type="checkbox">
<label for="toggle-all">Mark all as complete</label>
<ul class="todo-list">
<!-- These are here just to show the structure of the list items -->
<!-- List items should get the class `editing` when editing and `completed` when marked as completed -->
<li ng-repeat="o in data | filter:isCompleted track by $index" ng-dblclick="dbClick(o.id)" ng-class="{editing:o.id==isEditing,completed:o.completed}">
<div class="view">
<input ng-model="o.completed" ng-checked="o.completed" class="toggle" type="checkbox">
<label>{{o.content}}</label>
<button class="destroy" ng-click="del(o.id)" ></button>
</div>
<form ng-submit="blurEditing()">
<input ng-blur="blurEditing()" class="edit" ng-model="o.content">
</form>
</li>
</ul>
</section>
<!-- This footer should hidden by default and shown when there are todos -->
<footer class="footer">
<!-- This should be `0 items left` by default -->
<span class="todo-count"><strong>{{num()}}</strong> item left</span>
<!-- Remove this if you don't implement routing -->
<ul class="filters">
<li>
<a ng-class="{selected:undefined==isCompleted.completed}" href="#/" ng-click="all()">All</a>
</li>
<li>
<a ng-class="{selected:false==isCompleted.completed}" href="#/active" ng-click="active()">Active</a>
</li>
<li>
<a ng-class="{selected:true==isCompleted.completed}" href="#/completed" ng-click="completed()">Completed</a>
</li>
</ul>
<!-- Hidden if no completed items are left ↓ -->
<button ng-click="clearCompleted()" class="clear-completed">Clear completed</button>
</footer>
</section>
<footer class="info">
<p>Double-click to edit a todo</p>
<!-- Remove the below line ↓ -->
<p>Template by <a href="http://sindresorhus.com">Sindre Sorhus</a></p>
<!-- Change this out with your name and url ↓ -->
<p>Created by <a href="http://todomvc.com">you</a></p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
<!-- Scripts here. Don't remove ↓ -->
</body>
</html>