forked from tastejs/todomvc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alberto Monteiro
committed
Jul 10, 2012
1 parent
c411f02
commit ae2b72a
Showing
2 changed files
with
243 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,68 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | ||
<title>Knockout.js • TodoMVC</title> | ||
<link rel="stylesheet" href="../../assets/base.css"> | ||
<!--[if IE]> | ||
<script src="../../assets/ie.js"></script> | ||
<![endif]--> | ||
</head> | ||
<body> | ||
<section id="todoapp"> | ||
<header id="header"> | ||
<h1>todos</h1> | ||
<input id="new-todo" type="text" 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" type="checkbox" data-bind="checked: allCompleted"> | ||
<label for="toggle-all">Mark all as complete</label> | ||
<ul id="todo-list" data-bind="foreach: filteredTodos"> | ||
<li data-bind="css: { completed: completed, editing: editing }"> | ||
<div class="view" data-bind="event: { dblclick: $root.editItem }"> | ||
<input class="toggle" type="checkbox" data-bind="checked: completed"> | ||
<label data-bind="text: title"></label> | ||
<button class="destroy" data-bind="click: $root.remove"></button> | ||
</div> | ||
<input class="edit" data-bind="value: title, valueUpdate: 'afterkeydown', enterKey: $root.stopEditing, selectAndFocus: editing, event: { blur: $root.stopEditing }" > | ||
</li> | ||
</ul> | ||
</section> | ||
<footer id="footer" data-bind="visible: completedCount() || remainingCount()"> | ||
<span id="todo-count"> | ||
<strong data-bind="text: remainingCount">1</strong> | ||
<span data-bind="text: getLabel( remainingCount )"></span> left | ||
</span> | ||
<ul id="filters"> | ||
<li> | ||
<a data-bind="css: { selected: showMode() == 'all' }" href="#/all">All</a> | ||
</li> | ||
<li> | ||
<a data-bind="css: { selected: showMode() == 'active' }" href="#/active">Active</a> | ||
</li> | ||
<li> | ||
<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> | ||
</footer> | ||
</section> | ||
<footer id="info"> | ||
<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> | ||
</footer> | ||
<script src="../../assets/base.js"></script> | ||
<script src="js/lib/knockout-2.0.0.js"></script> | ||
<!--Crossroad.js Begin --> | ||
<script src="js/lib/signals.js"></script> | ||
<script src="js/lib/crossroads.js"></script> | ||
<script src="js/lib/route.js"></script> | ||
<script src="js/lib/pattern_lexer.js"></script> | ||
<script src="js/lib/intro.js"></script> | ||
<!--Crossroad.js End --> | ||
<script src="js/app.js"></script> | ||
</body> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"> | ||
<title>Knockout.js • TodoMVC</title> | ||
<link href="../../assets/base.css" rel="stylesheet"> | ||
<!--[if IE]> | ||
<script src="../../assets/ie.js"></script> | ||
<![endif]--> | ||
</head> | ||
<body> | ||
<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"> | ||
</header> | ||
<section id="main" data-bind="visible: todos().length"> | ||
<input id="toggle-all" data-bind="checked: allCompleted" type="checkbox"> | ||
<label for="toggle-all">Mark all as complete</label> | ||
<ul id="todo-list" data-bind="foreach: filteredTodos"> | ||
<li data-bind="css: { completed: completed, editing: editing }"> | ||
<div class="view" data-bind="event: { dblclick: $root.editItem }"> | ||
<input class="toggle" data-bind="checked: completed" type="checkbox"> | ||
<label data-bind="text: title"></label> | ||
<button class="destroy" data-bind="click: $root.remove"></button> | ||
</div> | ||
<input class="edit" data-bind="value: title, valueUpdate: 'afterkeydown', enterKey: $root.stopEditing, selectAndFocus: editing, event: { blur: $root.stopEditing }"> | ||
</li> | ||
</ul> | ||
</section> | ||
<footer id="footer" data-bind="visible: completedCount() || remainingCount()"> | ||
<span id="todo-count"> | ||
<strong data-bind="text: remainingCount">1</strong> | ||
<span data-bind="text: getLabel( remainingCount )"></span> left | ||
</span> | ||
<ul id="filters"> | ||
<li> | ||
<a data-bind="css: { selected: showMode() == 'all' }" href="#/all">All</a> | ||
</li> | ||
<li> | ||
<a data-bind="css: { selected: showMode() == 'active' }" href="#/active">Active</a> | ||
</li> | ||
<li> | ||
<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> | ||
</footer> | ||
</section> | ||
<footer id="info"> | ||
<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> | ||
</footer> | ||
<script src="../../assets/base.js"></script> | ||
<script src="js/lib/knockout-2.0.0.js"></script> | ||
<!--Crossroad.js Begin --> | ||
<script src="js/lib/signals.js"></script> | ||
<script src="js/lib/crossroads.js"></script> | ||
<script src="js/lib/route.js"></script> | ||
<script src="js/lib/pattern_lexer.js"></script> | ||
<script src="js/lib/intro.js"></script> | ||
<!--Crossroad.js End --> | ||
<script src="js/app.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.