/server/app/webroot/vendor/backbone.localStorage/index.html
https://bitbucket.org/albertoprb/fleetster-challenge · HTML · 82 lines · 64 code · 17 blank · 1 comment · 0 complexity · 00e40666cbafde1278b1574ec0b88f0f MD5 · raw file
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Backbone.js Todos</title>
- <link rel="stylesheet" href="todos.css"/>
- <script type="text/javascript">
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-5201171-9']);
- _gaq.push(['_trackPageview']);
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') +
- '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>
- </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>
- <script src="spec/support/jquery.js"></script>
- <script src="spec/support/underscore.js"></script>
- <script src="spec/support/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>
- </html>