-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (63 loc) · 1.96 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Enough • TodoMVC</title>
<link rel="stylesheet" href="style/base.css">
<link rel="stylesheet" href="style/app.css">
<link rel="shortcut icon" href="img/logo.png" type="image/x-icon" />
<script src="lib/jquery.js"></script>
<script src="lib/grace.js"></script>
<script src="//enoughjs.github.io/enough/lib/enough.js"></script>
</head>
<body>
<section id="todoapp">
<header id="header">
<h1>enough todos</h1>
<input id="new-todo" placeholder="What needs to be done?" autofocus>
</header>
<!-- This section should be hidden by default and shown when there are todos -->
<section id="main">
<input id="toggle-all" type="checkbox">
<label for="toggle-all">Mark all as complete</label>
<ul id="todo-list">
<script id="grace-template" type="template">
<#each val in $todos#>
<li class="<#if $val.completed#>completed<#/if#>" data-id="<#=$val.id#>">
<div class="view">
<input class="toggle" type="checkbox" <#if $val.completed#>checked="checked"<#/if#> />
<label><#=$val.content#></label>
<button class="destroy"></button>
</div>
<input class="edit" value="<#=$val.content#>"/>
</li>
<#/each#>
</script>
</ul>
</section>
<!-- This footer should hidden by default and shown when there are todos -->
<footer id="footer">
<span id="todo-count"></span>
<ul id="filters">
<li>
<a class="selected" href="#/">All</a>
</li>
<li>
<a href="#/active">Active</a>
</li>
<li>
<a href="#/completed">Completed</a>
</li>
</ul>
<button id="clear-completed"></button>
</footer>
</section>
<footer id="info">
<p>Double-click to edit a todo</p>
<p>Created by <a target="_blank" href="http://www.github.com/xudafeng">xdf</a></p>
</footer>
<script src="lib/model.js"></script>
<script src="lib/view.js"></script>
<script src="lib/controller.js"></script>
</body>
</html>