-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (70 loc) · 2.43 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
<!doctype html>
<html data-framework="zect">
<head>
<meta charset="utf-8">
<title>Zect • TodoMVC</title>
<link rel="stylesheet" href="node_modules/todomvc-common/base.css">
<link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
<style> [v-cloak] { display: none; } </style>
</head>
<body >
<section id="todoapp" class="todoapp">
<header class="header">
<h1>todos</h1>
<input class="new-todo" autofocus autocomplete="off"
placeholder="What needs to be done?"
v-model="newTodo"
v-on="{keyup:addTodo}">
</header>
<section class="main" v-show="{todos.length}">
<input class="toggle-all" type="checkbox"
v-model="allDone"
/>
<ul class="todo-list">
<v-repeat items="{todos}">
<v-if is="{filters[activeFilter]($value)}">
<li class="todo" data-index="{$index}"
v-class="{completed: completed; editing: $index == editedItem}"
>
<div class="view">
<input class="toggle"
type="checkbox"
>
<label v-on="{dblclick: editTodo}" data-index="{$index}">{title}</label>
<button class="destroy" data-index="{$index}" v-on="{click: removeTodo}"></button>
</div>
<input class="edit" type="text"
data-index="{$index}"
v-on="{
blur: doneEdit;
keyup: doneEdit;
keyup: cancelEdit
}"
>
</li>
</v-if>
</v-repeat>
</ul>
</section>
<footer class="footer" v-show="todos.length">
<span class="todo-count"><strong>{remaining}</strong> item left</span>
<ul class="filters">
<li><a href="#/all" v-class="{selected: activeFilter == 'all'}">All</a></li>
<li><a href="#/active" v-class="{selected: activeFilter == 'active'}">Active</a></li>
<li><a href="#/completed" v-class="{selected: activeFilter == 'completed'}">Completed</a></li>
</ul>
<button class="clear-completed" v-on="{click: removeCompleted}" v-show="{todos.length > remaining}">
Clear completed ({todos.length - remaining})
</button>
</footer>
</section>
<footer class="info">
<p>Double-click to edit a todo</p>
<p>Written by <a href="https://github.com/switer/Zect">Switer</a></p>
</footer>
<script src="node_modules/todomvc-common/base.js"></script>
<script src="node_modules/zect/dist/zect.js"></script>
<script src="js/store.js"></script>
<script src="js/app.js"></script>
</body>
</html>