Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
c7f5709c
Commit
c7f5709c
authored
Jan 07, 2012
by
Sindre Sorhus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap the todo list in a `<section>` element and move the `Mark all as complete` checkbox into it.
parent
ad4887ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
23 deletions
+25
-23
todo-example/template/index.html
todo-example/template/index.html
+25
-23
No files found.
todo-example/template/index.html
View file @
c7f5709c
...
@@ -10,34 +10,36 @@
...
@@ -10,34 +10,36 @@
<header>
<header>
<h1>
Todos
</h1>
<h1>
Todos
</h1>
<input
type=
"text"
placeholder=
"What needs to be done?"
>
<input
type=
"text"
placeholder=
"What needs to be done?"
>
</header>
<section>
<!-- toggle-all-container is hidden by default and should be shown when there are todos, and hidden when not -->
<!-- toggle-all-container is hidden by default and should be shown when there are todos, and hidden when not -->
<div
id=
"toggle-all-container"
>
<div
id=
"toggle-all-container"
>
<input
id=
"toggle-all"
type=
"checkbox"
>
<input
id=
"toggle-all"
type=
"checkbox"
>
<label
for=
"toggle-all"
>
Mark all as complete
</label>
<label
for=
"toggle-all"
>
Mark all as complete
</label>
</div>
</div>
</header
>
<ul
class=
"items"
>
<ul
class=
"items
"
>
<li
class=
"item done
"
>
<li
class=
"item done
"
>
<div
class=
"view"
title=
"Double click to edit...
"
>
<div
class=
"view"
title=
"Double click to edit..."
>
<input
class=
"toggle"
type=
"checkbox"
checked
>
<input
class=
"toggle"
type=
"checkbox"
checked
>
<span>
Create a TodoMVC template
</span
>
<span>
Create a TodoMVC template
</span
>
<a
class=
"destroy"
></a
>
<
a
class=
"destroy"
></a
>
<
/div
>
</div
>
<div
class=
"edit"
>
<div
class=
"edit
"
>
<input
type=
"text"
value=
"Create a TodoMVC template
"
>
<
input
type=
"text"
value=
"Create a TodoMVC template"
>
<
/div
>
</
div
>
</
li
>
</li
>
<li
class=
"item"
>
<li
class=
"item
"
>
<div
class=
"view"
title=
"Double click to edit...
"
>
<div
class=
"view"
title=
"Double click to edit...
"
>
<input
class=
"toggle"
type=
"checkbox
"
>
<input
class=
"toggle"
type=
"checkbox"
>
<span>
Rule the web
</span
>
<span>
Rule the web
</span
>
<a
class=
"destroy"
></a
>
<
a
class=
"destroy"
></a
>
<
/div
>
</div
>
<div
class=
"edit"
>
<div
class=
"edit
"
>
<input
type=
"text"
value=
"Rule the web
"
>
<
input
type=
"text"
value=
"Rule the web"
>
<
/div
>
</
div
>
</
li
>
</
li
>
</
ul
>
</
ul
>
</
section
>
<!-- this footer needs to be shown with JS when there are todos and hidden when not -->
<!-- this footer needs to be shown with JS when there are todos and hidden when not -->
<footer>
<footer>
<a
class=
"clear"
>
Clear completed
</a>
<a
class=
"clear"
>
Clear completed
</a>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment