-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (77 loc) · 3.83 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
68
69
70
71
72
73
74
75
76
77
<!doctype html>
<html lang="en" ng-app="todomvc" data-framework="angularjs">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>AngularJS • TodoMVC</title>
<link rel="stylesheet" href="bower_components/todomvc-common/base.css">
<style>[ng-cloak] { display: none; }</style>
</head>
<body>
<section id="todoapp" ng-controller="TodoCtrl" ng-init="dispatch('LoadTodos')">
<header id="header">
<h1>todos</h1>
<form id="todo-form" ng-submit="dispatch('AddTodo')">
<input id="new-todo" placeholder="What needs to be done?" ng-model="currentTodo.todo" autofocus>
</form>
</header>
<section id="main" ng-show="todoList.todos.length" ng-cloak>
<input id="toggle-all" type="checkbox" ng-model="todoList.allChecked" ng-click="dispatch('MarkAll')">
<label for="toggle-all">Mark all as complete</label>
<ul id="todo-list">
<li ng-repeat="todo in todoList.todos | filter:statusFilter" ng-class="{completed: todo.completed, editing: todo == currentTodo.editedTodo}">
<div class="view">
<input class="toggle" type="checkbox" ng-model="todo.completed" ng-change="dispatch('MarkOne')">
<label ng-dblclick="currentTodo.editedTodo = todo">{{todo.title}}</label>
<button class="destroy" ng-click="dispatch('RemoveTodo',{todo:todo})"></button>
</div>
<form ng-submit="dispatch('DoneEditing',{todo:todo})">
<input class="edit" ng-model="todo.title" todo-blur="dispatch('DoneEditing',{todo:todo})" todo-focus="todo == currentTodo.editedTodo">
</form>
</li>
</ul>
</section>
<footer id="footer" ng-show="todoList.todos.length" ng-cloak>
<span id="todo-count"><strong>{{todoList.remainingCount}}</strong>
<ng-pluralize count="remainingCount" when="{ one: 'item left', other: 'items left' }"></ng-pluralize>
</span>
<ul id="filters">
<li>
<a ng-class="{selected: location.path() == '/'} " href="#/">All</a>
</li>
<li>
<a ng-class="{selected: location.path() == '/active'}" href="#/active">Active</a>
</li>
<li>
<a ng-class="{selected: location.path() == '/completed'}" href="#/completed">Completed</a>
</li>
</ul>
<button id="clear-completed" ng-click="dispatch('ClearCompleted')" ng-show="todoList.remainingCount < todoList.todos.length">Clear completed ({{todoList.todos.length - todoList.remainingCount}})</button>
</footer>
</section>
<footer id="info">
<p>Double-click to edit a todo</p>
<p>Based in <a href="http://todomvc.com">TodoMVC</a> angular todos example</p>
</footer>
<script src="bower_components/todomvc-common/base.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/commangular/commangular.js"></script>
<script src="js/app.js"></script>
<script src="js/commands-config.js"></script>
<script src="js/controllers/todoCtrl.js"></script>
<script src="js/directives/todoFocus.js"></script>
<script src="js/directives/todoBlur.js"></script>
<script src="js/model/todo-list.js"></script>
<script src="js/model/current-todo.js"></script>
<script src="js/infrastructure/services/todoStorage.js"></script>
<script src="js/infrastructure/commands/add-todo-command.js"></script>
<script src="js/infrastructure/commands/save-storage-command.js"></script>
<script src="js/infrastructure/commands/load-storage-command.js"></script>
<script src="js/infrastructure/commands/remove-todo-command.js"></script>
<script src="js/infrastructure/commands/mark-all-command.js"></script>
<script src="js/infrastructure/commands/clear-completed-command.js"></script>
<script src="js/infrastructure/aspects/validate-todo-aspect.js"></script>
<script src="js/infrastructure/commands/done-editing-command.js"></script>
<script src="js/infrastructure/aspects/refresh-remaining-aspect.js"></script>
</body>
</html>