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
ad4887ea
Commit
ad4887ea
authored
Jan 06, 2012
by
Sindre Sorhus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add "Mark as complete" checkbox
parent
03171ff5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
todo-example/template/css/app.css
todo-example/template/css/app.css
+4
-0
todo-example/template/index.html
todo-example/template/index.html
+5
-0
No files found.
todo-example/template/css/app.css
View file @
ad4887ea
...
@@ -57,6 +57,10 @@ body {
...
@@ -57,6 +57,10 @@ body {
font-style
:
italic
;
font-style
:
italic
;
}
}
#todoapp
#toggle-all-container
{
display
:
none
;
}
#todoapp
.items
{
#todoapp
.items
{
margin
:
10px
0
;
margin
:
10px
0
;
padding
:
0
;
padding
:
0
;
...
...
todo-example/template/index.html
View file @
ad4887ea
...
@@ -10,6 +10,11 @@
...
@@ -10,6 +10,11 @@
<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?"
>
<!-- toggle-all-container is hidden by default and should be shown when there are todos, and hidden when not -->
<div
id=
"toggle-all-container"
>
<input
id=
"toggle-all"
type=
"checkbox"
>
<label
for=
"toggle-all"
>
Mark all as complete
</label>
</div>
</header>
</header>
<ul
class=
"items"
>
<ul
class=
"items"
>
<li
class=
"item done"
>
<li
class=
"item done"
>
...
...
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