-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (68 loc) · 2.75 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
<html>
<head>
<title>TodoMVC using RxJs and "eve-concepts"</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="node_modules/todomvc-common/base.css" />
<link rel="stylesheet" href="node_modules/todomvc-app-css/index.css" />
</head>
<body>
<!--
Layout
-->
<section class="todoapp">
<header class="header">
<h1>todos</h1>
<input class="new-todo" placeholder="What needs to be done?" autofocus>
</header>
<section class="main">
<input class="toggle-all" type="checkbox">
<label for="toggle-all">Mark all as complete</label>
<ul class="todo-list"></ul>
</section>
<footer class="footer">
<span class="todo-count"></span>
<ul class="filters"></ul>
<button class="clear-completed">Clear completed</button>
</footer>
</section>
<!--
Templates
-->
<script type="text/template" id="todo-list-item-template">
{{#todos}}
<li class="{{complete ? 'completed' : ''}} todo-item" todo-id="{{id}}">
<div class="view">
<input class="toggle" type="checkbox" checked="{{complete}}" twoway="false">
<label class="todo-item-text">{{text}}</label>
<button class="destroy"></button>
</div>
</li>
{{/todos}}
</script>
<script type="text/template" id="filters-template">
<li class="filter-button show-all-button">
<a href="#" class="{{filter === undefined ? 'selected' : ''}}">All</a>
</li>
<li class="filter-button show-active-button">
<a href="#" class="{{filter.query.complete === false ? 'selected' : ''}}">Active</a>
</li>
<li class="filter-button show-completed-button">
<a href="#" class="{{filter.query.complete === true ? 'selected' : ''}}">Completed</a>
</li>
</script>
<script type="text/template" id="todo-count-template">
{{count}} item{{count !== 1 ? 's' : ''}} left
</script>
<!--
Dependencies
-->
<script src='node_modules/ractive/ractive.min.js'></script>
<script src="node_modules/lodash/lodash.js"></script>
<script src="Rx.js"></script> <!-- npm version does not offer a browserified version (?) -->
<script src="eve.js"></script>
<!--
App
-->
<script src="main.js"></script>
</body>
</html>