-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (46 loc) · 2.08 KB
/
Copy pathindex.html
File metadata and controls
50 lines (46 loc) · 2.08 KB
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
<html lang="en" data-framework="javascript">
<head>
<meta charset="utf-8">
<title>Rookout Python Todo Demo</title>
<link href="/static/css/style.css" rel="stylesheet">
<script src="/static/js/vendor/jquery-3.3.1.min.js"></script>
<script src="/static/js/vendor/vue.js"></script>
<script src="/static/js/app.js"></script>
</head>
<body>
<div id="app">
<section class="todoapp">
<header class="header">
<h1>todos</h1>
<input class="new-todo" v-model="newTodoTitle" v-on:keypress="onAddTodoPressed" autofocus="" placeholder="What needs to be done?">
</header>
<section class="main">
<input class="toggle-all" type="checkbox">
<label for="toggle-all">Mark all as complete</label>
<ul class="todo-list">
<todo-item v-for="todo in filteredTodos" v-bind:todo="todo" v-on:remove-todo="removeTodo" v-on:duplicate-todo="duplicateTodo"
v-on:update-todo="updateTodo" />
</ul>
</section>
<footer class="footer">
<span class="todo-count">{{filteredTodos.length}} Tasks</span>
<ul class="filters">
<li>
<a style="cursor: pointer" v-on:click="setFilter('all')" v-bind:class="{selected: filterMode === 'all'}">All</a>
</li>
<li>
<a style="cursor: pointer" v-on:click="setFilter('active')" v-bind:class="{selected: filterMode === 'active'}">Active</a>
</li>
<li>
<a style="cursor: pointer" v-on:click="setFilter('completed')" v-bind:class="{selected: filterMode === 'completed'}">Completed</a>
</li>
</ul>
<button v-on:click="clearCompleted" class="clear-completed">Clear completed</button>
</footer>
</section>
<footer class="info">
<p>Double-click to edit a todo</p>
</footer>
</div>
</body>
</html>