forked from tastejs/todomvc-app-template
/
index.html
63 lines (63 loc) · 2.46 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">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Stimulus • TodoMVC</title>
<link rel="stylesheet" href="node_modules/todomvc-common/base.css">
<link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
</head>
<body>
<section class="todoapp" data-controller="todos">
<header class="header">
<h1>todos</h1>
<form data-action="todos#createTodo">
<input class="new-todo" data-target="todos.newTodo" placeholder="What needs to be done?" autofocus>
</form>
</header>
<section class="main hidden" data-target="todos.main">
<input data-action="todos#toggleAll" id="toggle-all" class="toggle-all" type="checkbox">
<label for="toggle-all">Mark all as complete</label>
<ul class="todo-list" data-target="todos.todoList">
<template data-target="todos.todoTemplate">
<li data-controller="todo" data-action="todo.change->todos#todoChange">
<div class="view">
<input class="toggle" data-action="todo#toggle" data-target="todo.toggle" type="checkbox">
<label data-action="dblclick->todo#edit" data-target="todo.label"></label>
<button class="destroy" data-action="todo#destroy todos#updateCounter"></button>
</div>
<form data-action="todo#update">
<input class="edit" data-action="blur->todo#update keyup->todo#keyup" data-target="todo.input" value="">
</form>
</li>
</template>
</ul>
</section>
<footer class="footer hidden" data-target="todos.footer">
<span class="todo-count" data-target="todos.counter"></span>
<ul class="filters">
<li>
<a href="#/">All</a>
</li>
<li>
<a href="#/active">Active</a>
</li>
<li>
<a href="#/completed">Completed</a>
</li>
</ul>
<button data-action="todos#clearCompleted" data-target="todos.clearCompletedButton" 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/chloerei">Rei</a></p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
<script src="node_modules/todomvc-common/base.js"></script>
<script src="node_modules/stimulus/dist/stimulus.umd.js"></script>
<script src="js/app.js"></script>
<script src="js/controllers/todos_controller.js"></script>
<script src="js/controllers/todo_controller.js"></script>
</body>
</html>