-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
96 lines (83 loc) · 3.2 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!doctype html>
<html lang="en" data-framework="react">
<head>
<meta charset="utf-8">
<title>React • TodoMVC</title>
<link rel="stylesheet" href="../../bower_components/todomvc-common/base.css">
</head>
<body>
<section id="todoapp">
<div jsx-class="TodoApp">
<header id="header">
<h1>todos</h1>
<input ref="newField"
id="new-todo"
placeholder="What needs to be done?"
onKeyDown="{this.handleNewTodoKeyDown}"
autoFocus="{true}"/>
</header>
<section id="main" class="{cx({hidden: todos.length === 0})}">
<input id="toggle-all"
type="checkbox"
onChange="{this.toggleAll}"
checked="{activeTodoCount === 0}"/>
<ul id="todo-list">
<!-- @render todoItems -->
<li jsx-class="TodoItem" class="{classes}">
<div class="view">
<input class="toggle"
type="checkbox"
checked="{this.props.todo.completed}"
onChange="{this.props.onToggle}"/>
<label onDoubleClick="{this.handleEdit}">{this.props.todo.title}</label>
<button class="destroy" onClick="{this.props.onDestroy}"/>
</div>
<input ref="editField"
class="edit"
value="{this.state.editText}"
onBlur="{this.handleSubmit}"
onChange="{this.handleChange}"
onKeyDown="{this.handleKeyDown}"/>
</li>
</ul>
</section>
<!-- @render footer -->
<footer jsx-class="TodoFooter" id="footer">
<span id="todo-count">
<strong>{this.props.count}</strong> {activeTodoWord} left
</span>
<ul id="filters">
<li>
<a href="#/" class="{cx({selected: nowShowing=== app.ALL_TODOS})}">
All
</a>
</li>
<!-- @render space -->
<li>
<a href="#/active" class="{cx({selected: nowShowing=== app.ACTIVE_TODOS})}">
Active
</a>
</li>
<!-- @render space -->
<li>
<a href="#/completed" class="{cx({selected: nowShowing=== app.COMPLETED_TODOS})}">
Completed
</a>
</li>
</ul>
<!-- @render clearButton -->
<button jsx-tpl="clear-completed"
id="clear-completed"
onClick="{this.props.onClearCompleted}">
Clear completed ({this.props.completedCount})
</button>
</footer>
</div>
</section>
<footer id="info">
<p>Double-click to edit a todo</p>
<p>Created by <a href="https://github.com./petehunt/">petehunt</a></p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
</body>
</html>