This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
forked from tastejs/todomvc-app-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
56 lines (56 loc) · 2.31 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>jsblocks • TodoMVC</title>
<link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
</head>
<body>
<section data-query="view(Todos)" class="todoapp">
<header class="header">
<h1>todos</h1>
<input data-query="val(newTodo.title).keydown(addTodo)" class="new-todo" placeholder="What needs to be done?" autofocus>
</header>
<section data-query="visible(todos().length > 0)" class="main">
<input data-query="checked(todos.remaining() == 0).click(todos.toggleAll)" class="toggle-all" type="checkbox">
<label for="toggle-all">Mark all as complete</label>
<ul data-query="each(todos.view)" class="todo-list">
<li data-query="setClass('completed', completed).setClass('editing', editing).dblclick(edit)">
<div class="view">
<input data-query="checked(completed).click(toggleComplete)" class="toggle" type="checkbox">
<label>{{title}}</label>
<button data-query="click(destroy)" class="destroy"></button>
</div>
<input data-query="val(title).keydown(handleAction).blur(closeEdit).focused(editing)" class="edit" />
</li>
</ul>
</section>
<footer data-query="visible(todos().length > 0)" class="footer">
<span class="todo-count"><strong>{{todos.remaining}}</strong> item left</span>
<ul class="filters">
<li>
<a data-query="setClass('selected', filter() == 'all')" href="#/">All</a>
</li>
<li>
<a data-query="setClass('selected', filter() == 'active')" href="#/active">Active</a>
</li>
<li>
<a data-query="setClass('selected', filter() == 'completed')" href="#/completed">Completed</a>
</li>
</ul>
<button data-query="visible(todos().length != todos.remaining()).click(todos.clearCompleted)" class="clear-completed">
Clear completed
</button>
</footer>
</section>
<footer class="info">
<p>Double-click to edit a todo</p>
<p>Created by <a href="https://github.com/astoilkov">Antonio Stoilkov</a></p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
<script src="node_modules/blocks/blocks.js"></script>
<script src="node_modules/todomvc-common/base.js"></script>
<script src="js/app.js"></script>
</body>
</html>