forked from jashkenas/backbone
-
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
Showing
2 changed files
with
84 additions
and
93 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,63 +1,69 @@ | ||
<!doctype html> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<title>Backbone.js Todos</title> | ||
<link rel="stylesheet" href="todos.css"/> | ||
<meta charset="utf-8"> | ||
<title>Backbone.js Todos</title> | ||
<link rel="stylesheet" href="todos.css"/> | ||
</head> | ||
|
||
<body> | ||
<div id="todoapp"> | ||
<header> | ||
<h1>Todos</h1> | ||
<input id="new-todo" type="text" placeholder="What needs to be done?"> | ||
</header> | ||
|
||
<section id="main"> | ||
<input id="toggle-all" type="checkbox"> | ||
<label for="toggle-all">Mark all as complete</label> | ||
<ul id="todo-list"> | ||
</ul> | ||
</section> | ||
|
||
<footer> | ||
<a id="clear-completed">Clear completed</a> | ||
<div id="todo-count"></div> | ||
</footer> | ||
</div> | ||
<div id="instructions"> | ||
Double-click to edit a todo. | ||
</div> | ||
<div id="credits"> | ||
Created by | ||
<br /> | ||
<a href="http://jgn.me/">Jérôme Gravel-Niquet</a>. | ||
<br />Rewritten by: <a href="http://addyosmani.github.com/todomvc">TodoMVC</a>. | ||
|
||
<div id="todoapp"> | ||
|
||
<header> | ||
<h1>Todos</h1> | ||
<input id="new-todo" type="text" placeholder="What needs to be done?"> | ||
</header> | ||
|
||
<section id="main"> | ||
<input id="toggle-all" type="checkbox"> | ||
<label for="toggle-all">Mark all as complete</label> | ||
<ul id="todo-list"></ul> | ||
</section> | ||
|
||
<footer> | ||
<a id="clear-completed">Clear completed</a> | ||
<div id="todo-count"></div> | ||
</footer> | ||
|
||
</div> | ||
|
||
<div id="instructions"> | ||
Double-click to edit a todo. | ||
</div> | ||
|
||
<div id="credits"> | ||
Created by | ||
<br /> | ||
<a href="http://jgn.me/">Jérôme Gravel-Niquet</a>. | ||
<br />Rewritten by: <a href="http://addyosmani.github.com/todomvc">TodoMVC</a>. | ||
</div> | ||
|
||
<script src="../../test/vendor/json2.js"></script> | ||
<script src="../../test/vendor/jquery-1.7.1.js"></script> | ||
<script src="../../test/vendor/underscore-1.3.1.js"></script> | ||
<script src="../../backbone.js"></script> | ||
<script src="../backbone-localstorage.js"></script> | ||
<script src="todos.js"></script> | ||
|
||
<!-- Templates --> | ||
|
||
<script type="text/template" id="item-template"> | ||
<div class="view"> | ||
<input class="toggle" type="checkbox" <%= done ? 'checked="checked"' : '' %> /> | ||
<label><%= title %></label> | ||
<a class="destroy"></a> | ||
</div> | ||
<input class="edit" type="text" value="<%= title %>" /> | ||
</script> | ||
|
||
<script type="text/template" id="stats-template"> | ||
<% if (done) { %> | ||
<a id="clear-completed">Clear <%= done %> completed <%= done == 1 ? 'item' : 'items' %></a> | ||
<% } %> | ||
<div class="todo-count"><b><%= remaining %></b> <%= remaining == 1 ? 'item' : 'items' %> left</div> | ||
</script> | ||
|
||
<script src="../../test/vendor/json2.js"></script> | ||
<script src="../../test/vendor/jquery-1.7.1.js"></script> | ||
<script src="../../test/vendor/underscore-1.3.1.js"></script> | ||
<script src="../../backbone.js"></script> | ||
<script src="../backbone-localstorage.js"></script> | ||
<script src="todos.js"></script> | ||
|
||
<!-- Templates --> | ||
|
||
<script type="text/template" id="item-template"> | ||
<div class="view"> | ||
<input class="toggle" type="checkbox" <%= done ? 'checked="checked"' : '' %> /> | ||
<label><%= title %></label> | ||
<a class="destroy"></a> | ||
</div> | ||
<input class="edit" type="text" value="<%= title %>" /> | ||
</script> | ||
|
||
<script type="text/template" id="stats-template"> | ||
<% if (done) { %> | ||
<a id="clear-completed">Clear <%= done %> completed <%= done == 1 ? 'item' : 'items' %></a> | ||
<% } %> | ||
<div class="todo-count"><b><%= remaining %></b> <%= remaining == 1 ? 'item' : 'items' %> left</div> | ||
</script> | ||
|
||
</body> | ||
</body> | ||
</html> |
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