-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (45 loc) · 1.82 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Todo On The Go Lite</title>
<link rel="stylesheet" href="style/base.css">
<script src="js/angularjs.js" type="text/javascript"></script>
<script src="js/lawnchair.js" type="text/javascript"></script>
<script src="js/app.js" type="text/javascript"></script>
</head>
<body ng-app="todo">
<section id="todoapp" ng-controller="TodoCtrl">
<header id="header">
<h1>Todo OTG <small>lite</small></h1>
<form id="todo-form" ng-submit="addTodo()">
<input type="text" id="new-todo" placeholder="Nouvelle Tâche" autofocus autocomplete="off" ng-model="newTodo" >
</form>
</header>
<section id="main">
<input type="checkbox" id="toggle-all" ng-model="allchecked" ng-click="checkAllTodos(allchecked)">
<ul id="todo-list">
<li ng-repeat="todo in todos | filter:statusFilter" ng-class="{completed : todo.completed, editing: todo.editing}" ng-dblclick="todo.editing = true">
<div class="view">
<input type="checkbox" class="toggle" ng-model="todo.completed" ng-click="updateTodo($index)">
<label for="" >{{todo.name}}</label>
<button class="destroy" ng-click="removeTodo($index)"></button>
</div>
<form ng-submit="editTodo(todo)">
<input class="edit" ng-model="todo.name" ng-blur="editTodo(todo)">
</form>
</li>
</ul>
</section>
<footer id="footer">
<span id="todo-count"><strong>{{remaining}}</strong> tâches restantes</span>
<ul id="filters">
<li><a href="#/" ng-class="{selected: location.path() == '/'}">Toutes</a></li>
<li><a href="#/active" ng-class="{selected: location.path() == '/active'}">Active</a></li>
<li><a href="#/done" ng-class="{selected: location.path() == '/done'}">Finit</a></li>
</ul>
</footer>
</section>
</body>
</html>