Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
88 lines (70 sloc) 2.37 KB
<!DOCTYPE html>
<title>Backbone Demo: Todos in CoffeeScript</title>
<link href="todos.css" media="all" rel="stylesheet" type="text/css"/>
<!-- Todo App Interface -->
<div id="todoapp">
<div class="title">
<h1>Todos <small>in CoffeeScript</small></h1>
<div class="content">
<div id="create-todo">
<input id="new-todo" placeholder="What needs to be done?" type="text" />
<span class="ui-tooltip-top" style="display:none;">Press Enter to save this task</span>
<div id="todos">
<ul id="todo-list"></ul>
<div id="todo-stats"></div>
<ul id="instructions">
<li>Double-click to edit a todo.</li>
<div id="credits">
Originally Created by
<br />
<a href="">J&eacute;r&ocirc;me Gravel-Niquet</a>
<!-- Templates -->
<script type="text/template" id="item-template">
<div class="todo <%= done ? 'done' : '' %>">
<div class="display">
<input class="check" type="checkbox" <%= done ? 'checked="checked"' : '' %> />
<div class="todo-text"></div>
<span class="todo-destroy"></span>
<div class="edit">
<input class="todo-input" type="text" value="" />
<script type="text/template" id="stats-template">
<% if (total) { %>
<span class="todo-count">
<span class="number"><%= remaining %></span>
<span class="word"><%= remaining == 1 ? 'item' : 'items' %></span> left.
<% } %>
<% if (done) { %>
<span class="todo-clear">
<a href="#">
Clear <span class="number-done"><%= done %></span>
completed <span class="word-done"><%= done == 1 ? 'item' : 'items' %></span>
<% } %>
<script src="lib/json2.js"></script>
<script src="lib/jquery-1.5.js"></script>
<script src="lib/underscore-1.1.6.js"></script>
<script src="lib/backbone.js"></script>
<script src="lib/backbone-localstorage.js"></script>
<script src="" type="text/coffeescript"></script>
<script src="//"></script>