/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

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Backbone.js Todos</title>
  6. <link rel="stylesheet" href="todos.css"/>
  7. <script type="text/javascript">
  8. var _gaq = _gaq || [];
  9. _gaq.push(['_setAccount', 'UA-5201171-9']);
  10. _gaq.push(['_trackPageview']);
  11. (function() {
  12. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  13. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') +
  14. '.google-analytics.com/ga.js';
  15. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  16. })();
  17. </script>
  18. </head>
  19. <body>
  20. <div id="todoapp">
  21. <header>
  22. <h1>Todos</h1>
  23. <input id="new-todo" type="text" placeholder="What needs to be done?">
  24. </header>
  25. <section id="main">
  26. <input id="toggle-all" type="checkbox">
  27. <label for="toggle-all">Mark all as complete</label>
  28. <ul id="todo-list"></ul>
  29. </section>
  30. <footer>
  31. <a id="clear-completed">Clear completed</a>
  32. <div id="todo-count"></div>
  33. </footer>
  34. </div>
  35. <div id="instructions">
  36. Double-click to edit a todo.
  37. </div>
  38. <div id="credits">
  39. Created by
  40. <br />
  41. <a href="http://jgn.me/">J&eacute;r&ocirc;me Gravel-Niquet</a>.
  42. <br />Rewritten by: <a href="http://addyosmani.github.com/todomvc">TodoMVC</a>.
  43. </div>
  44. <script src="spec/support/jquery.js"></script>
  45. <script src="spec/support/underscore.js"></script>
  46. <script src="spec/support/backbone.js"></script>
  47. <script src="backbone.localStorage.js"></script>
  48. <script src="todos.js"></script>
  49. <!-- Templates -->
  50. <script type="text/template" id="item-template">
  51. <div class="view">
  52. <input class="toggle" type="checkbox" <%= done ? 'checked="checked"' : '' %> />
  53. <label><%- title %></label>
  54. <a class="destroy"></a>
  55. </div>
  56. <input class="edit" type="text" value="<%- title %>" />
  57. </script>
  58. <script type="text/template" id="stats-template">
  59. <% if (done) { %>
  60. <a id="clear-completed">Clear <%= done %> completed <%= done == 1 ? 'item' : 'items' %></a>
  61. <% } %>
  62. <div class="todo-count"><b><%= remaining %></b> <%= remaining == 1 ? 'item' : 'items' %> left</div>
  63. </script>
  64. </body>
  65. </html>