-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (55 loc) · 2.3 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>NX • TodoMVC</title>
<link rel="stylesheet" href="static/base.css">
<link rel="stylesheet" href="static/app.css">
<script src="static/base.js" defer></script>
<script src="static/nx-beta.2.0.0.js" defer></script>
<script src="components/app.js" defer></script>
<script src="components/input.js" defer></script>
</head>
<body>
<todo-app class="todoapp">
<header class="header">
<h1>todos</h1>
<input #keyup="todos.create($event) & key 'enter'" class="new-todo"
placeholder="What needs to be done?" autocomplete="off" autofocus>
</header>
<section class="main" @hidden="!todos.all.length">
<input class="toggle-all" type="checkbox" name="todos.allCompleted" bind>
<label for="toggle-all">Mark all as complete</label>
<ul class="todo-list" @repeat="todos[status]" repeat-value="todo">
<li @class="{completed: todo.completed, editing: todo.editing}">
<div class="view">
<input class="toggle" type="checkbox" name="todo.completed" bind>
<label #dblclick="todo.editing = true">@{todo.title}</label>
<button #click="todos.remove(todo)" class="destroy"></button>
</div>
<input is="todo-input" class="edit" @todo="todo"
#blur,keyup="todos.edit(todo, $event) & key 'enter'"
#keyup="todo.editing = false & key 'esc'">
</li>
</ul>
</section>
<footer class="footer" @hidden="!todos.all.length">
<span class="todo-count">@{todos.active.length | unit 'item'} left</span>
<ul class="filters">
<li><a @class="{selected: status === 'all'}" #click="status = 'all'">All</a></li>
<li><a @class="{selected: status === 'active'}" #click="status = 'active'">Active</a></li>
<li><a @class="{selected: status === 'completed'}" #click="status = 'completed'">Completed</a></li>
</ul>
<button class="clear-completed" @hidden="!todos.completed.length" #click="todos.clearCompleted()">
Clear completed
</button>
</footer>
</todo-app>
<footer class="info">
<p>Double-click to edit a todo</p>
<p>Created by <a href="https://github.com/solkimicreb">Bertalan Miklos</a></p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
</body>
</html>