-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
119 lines (114 loc) · 4.27 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Object Oriented • TodoMVC</title>
<link rel="stylesheet" href="node_modules/todomvc-common/base.css">
<link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
<!-- CSS overrides - remove if you don't need it -->
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<section class="todoapp">
<header class="header">
<h1>todos</h1>
<input class="new-todo" placeholder="What needs to be done?" autofocus>
</header>
<!-- This section should be hidden by default and shown when there are todos -->
<section class="main">
<input id="toggle-all" class="toggle-all" type="checkbox">
<label for="toggle-all">Mark all as complete</label>
<ul class="todo-list">
<!-- These are here just to show the structure of the list items -->
<!-- List items should get the class `editing` when editing and `completed` when marked as completed -->
<!--
<li class="completed">
<div class="view">
<input class="toggle" type="checkbox" checked>
<label>Taste JavaScript</label>
<button class="destroy"></button>
</div>
<input class="edit" value="Create a TodoMVC template">
</li>
<li>
<div class="view">
<input class="toggle" type="checkbox">
<label>Buy a unicorn</label>
<button class="destroy"></button>
</div>
<input class="edit" value="Rule the web">
</li>
-->
</ul>
</section>
<!-- This footer should hidden by default and shown when there are todos -->
<footer class="footer">
<!-- This should be `0 items left` by default -->
<span class="todo-count"><strong>0</strong> <span>item</span> left</span>
<!--NOTE ROUTING NOT IMPLEMENTED, using name attribute and regular events-->
<ul class="filters">
<li>
<a name="all" class="selected" href="#">All</a>
</li>
<li>
<a name="active" href="#">Active</a>
</li>
<li>
<a name="completed" href="#">Completed</a>
</li>
</ul>
<!-- Hidden if no completed items are left ↓ -->
<button 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/abulka/todomvc-oo">Andy Bulka</a></p>
<p>TodoMVC-OO <a href="https://github.com/abulka/todomvc-oo">GitHub Repo</a></p>
<p>(Unofficial) Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
<!-- templates -->
<script id="todo-template" type="text/x-handlebars-template">
{{#this}}
<li {{#if completed}}class="completed"{{/if}} data-id="{{id}}">
<div class="view">
<input class="toggle" type="checkbox" {{#if completed}}checked{{/if}}>
<label>{{title}}</label>
<button class="destroy"></button>
</div>
<input class="edit" value="{{title}}">
</li>
{{/this}}
</script>
<script id="footer-template" type="text/x-handlebars-template">
<span class="todo-count"><strong>{{activeTodoCount}}</strong> {{activeTodoWord}} left</span>
<ul class="filters">
<li>
<a name="all" {{#eq filter 'all'}}class="selected"{{/eq}} href="#">All</a>
</li>
<li>
<a name="active" {{#eq filter 'active'}}class="selected"{{/eq}} href="#">Active</a>
</li>
<li>
<a name="completed" {{#eq filter 'completed'}}class="selected"{{/eq}} href="#">Completed</a>
</li>
</ul>
{{#if completedTodos}}<button class="clear-completed">Clear completed</button>{{/if}}
</script>
<!-- debug area -->
<label style="font-size: smaller; color: darkgray;"><input type="checkbox" name="debug" value="value" style="vertical-align:middle;">Debug</label>
<pre style="display: none;" class="debug">
</pre>
<!-- Scripts here. Don't remove ↓ -->
<script src="node_modules/todomvc-common/base.js"></script>
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/handlebars/dist/handlebars.js"></script>
<script src="js/util.js"></script>
<script src="js/observer_events.js"></script>
<script src="js/model.js"></script>
<script src="js/controllers.js"></script>
<script src="js/application.js"></script>
<script src="js/app.js"></script>
</body>
</html>