-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (95 loc) · 3.92 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
<!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">
<header class="header" data-controller="editor">
<h1>todos</h1>
<input
class="new-todo"
placeholder="What needs to be done?"
data-editor-target="text"
data-action="keyup.enter->editor#save keyup.esc->editor#clear"
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" data-controller="todo-list">
<div data-todo-list-target="placeholder"></div>
<template id="todo-list-item" data-todo-list-target="itemTemplate">
<li data-controller="todo-list-item" data-todo-list-item-editing-class="editing">
<div class="view">
<input
class="toggle"
type="checkbox"
data-todo-list-item-target="completedCheckbox"
data-action="click->todo-list-item#toggleCompleted"
/>
<label data-todo-list-item-target="text" data-action="dblclick->todo-list-item#openEditor"
>A template for todo element</label
>
<button
class="destroy"
data-todo-list-item-target="deleteButton"
data-action="click->todo-list-item#remove"
></button>
</div>
<div class="editor" data-controller="editor">
<input
class="edit"
value="A template for todo element"
data-todo-list-item-target="editInput"
data-editor-target="text"
data-action="keyup.enter->editor#save keyup.esc->todo-list-item#closeEditor"
/>
</div>
</li>
</template>
</ul>
</section>
<!-- This footer should be hidden by default and shown when there are todos -->
<footer class="footer" data-controller="footer">
<!-- This should be `0 items left` by default -->
<span class="todo-count" data-controller="todo-count">
<strong data-todo-count-target="count">0</strong> item left
</span>
<!-- Remove this if you don't implement routing -->
<ul class="filters" data-controller="filters">
<li>
<a href="#/" data-filters-target="all">All</a>
</li>
<li>
<a href="#/active" data-filters-target="active">Active</a>
</li>
<li>
<a href="#/completed" data-filters-target="completed">Completed</a>
</li>
</ul>
<!-- Hidden if no completed items are left ↓ -->
<button class="clear-completed" data-controller="clear-completed" data-action="click->clear-completed#clear">
Clear completed
</button>
</footer>
</section>
<footer class="info">
<p>Double-click to edit a todo</p>
<!-- Remove the below line ↓ -->
<p>Template by <a href="http://sindresorhus.com">Sindre Sorhus</a></p>
<!-- Change this out with your name and url ↓ -->
<p>Created by <a href="https://github.com/gowda">Gowda</a></p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
<!-- Scripts here. Don't remove ↓ -->
<script src="node_modules/todomvc-common/base.js" type="module"></script>
<script src="src/index.js" type="module"></script>
</body>
</html>