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
Sven Franck
todomvc
Commits
60406854
Commit
60406854
authored
Jul 10, 2012
by
Sindre Sorhus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Knockout: Convert back to tab indentation
parent
0318c185
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
63 deletions
+65
-63
architecture-examples/knockoutjs/index.html
architecture-examples/knockoutjs/index.html
+65
-63
No files found.
architecture-examples/knockoutjs/index.html
View file @
60406854
<!
DOCTYPE
html>
<!
doctype
html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
...
...
@@ -13,7 +13,7 @@
<section
id=
"todoapp"
>
<header
id=
"header"
>
<h1>
todos
</h1>
<input
id=
"new-todo"
autofocus
data-bind=
"value: current, valueUpdate: 'afterkeydown', enterKey: add"
placeholder=
"What needs to be done?"
type=
"text"
>
<input
id=
"new-todo"
data-bind=
"value: current, valueUpdate: 'afterkeydown', enterKey: add"
placeholder=
"What needs to be done?"
autofocus
>
</header>
<section
id=
"main"
data-bind=
"visible: todos().length"
>
<input
id=
"toggle-all"
data-bind=
"checked: allCompleted"
type=
"checkbox"
>
...
...
@@ -31,7 +31,7 @@
</section>
<footer
id=
"footer"
data-bind=
"visible: completedCount() || remainingCount()"
>
<span
id=
"todo-count"
>
<strong
data-bind=
"text: remainingCount"
>
1
</strong>
<strong
data-bind=
"text: remainingCount"
>
0
</strong>
<span
data-bind=
"text: getLabel( remainingCount )"
></span>
left
</span>
<ul
id=
"filters"
>
...
...
@@ -45,11 +45,13 @@
<a
data-bind=
"css: { selected: showMode() == 'completed' }"
href=
"#/completed"
>
Completed
</a>
</li>
</ul>
<button
id=
"clear-completed"
data-bind=
"visible: completedCount, click: removeCompleted"
>
Clear completed (
<span
data-bind=
"text: completedCount"
></span>
)
</button>
<button
id=
"clear-completed"
data-bind=
"visible: completedCount, click: removeCompleted"
>
Clear completed (
<span
data-bind=
"text: completedCount"
></span>
)
</button>
</footer>
</section>
<footer
id=
"info"
>
<span
data-bind=
"visible: todos().length"
>
Double-click to edit a todo.
</span>
<span
data-bind=
"visible: todos().length"
>
Double-click to edit a todo
</span>
<p>
Original Knockout version from
<a
href=
"https://github.com/ashish01/knockoutjs-todos"
>
Ashish Sharma
</a></p>
<p>
Rewritten to use Knockout 2.0 and standard template by
<a
href=
"http://knockmeout.net"
>
Ryan Niemeyer
</a></p>
<p>
Patches/fixes for cross-browser compat:
<a
href=
"http://twitter.com/addyosmani"
>
Addy Osmani
</a></p>
...
...
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