/todos/index.html

https://bitbucket.org/Alex_PK/bb · HTML · 78 lines · 67 code · 11 blank · 0 comment · 0 complexity · 75abf3aa321e8c4b349231bf72016fb2 MD5 · raw file

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  6. <title>Test BB</title>
  7. <link rel="stylesheet" href="css/base.css" />
  8. </head>
  9. <body>
  10. <section id="todoapp">
  11. <header id="header">
  12. <h1>Todos</h1>
  13. <input id="new-todo" name="new-todo" placeholder="I have to..." autofocus />
  14. </header>
  15. <section id="main">
  16. <input id="toggle-all" type="checkbox" />
  17. <label for="toggle-all">mark all as complete</label>
  18. <ul id="todo-list">
  19. </ul>
  20. </section>
  21. <footer id="footer"></footer>
  22. </section>
  23. <div id="info">
  24. <p>Double-click to edit a todo</p>
  25. <p>Written by <a href="https://github.com/addyosmani">Addy Osmani</a></p>
  26. <p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
  27. </div>
  28. <script type="text/template" id="item-template">
  29. <div class="view">
  30. <input class="toggle" type="checkbox" <%= completed ? 'checked="checked"' : '' %>>
  31. <label><%- title %></label>
  32. <button class="destroy"></button>
  33. </div>
  34. <input class="edit" value="<%- title %>" />
  35. </script>
  36. <script type="text/template" id="stats-template">
  37. <span id="todo-count">
  38. <strong><%= remaining %></strong>
  39. <%= remaining === 1 ? 'item' : 'items' %> left
  40. </span>
  41. <ul id="filters">
  42. <li>
  43. <a class="selected" href="#/">All</a>
  44. </li>
  45. <li>
  46. <a href="#/active">Active</a>
  47. </li>
  48. <li>
  49. <a href="#/completed">Completed</a>
  50. </li>
  51. </ul>
  52. <% if (completed) { %>
  53. <button id="clear-completed">Clear completed (<%= completed %>)</button>
  54. <% } %>
  55. </script>
  56. <script src="js/lib/jquery.js"></script>
  57. <script src="js/lib/underscore.js"></script>
  58. <script src="js/lib/backbone.js"></script>
  59. <script src="js/lib/backbone.localStorage.js"></script>
  60. <script src="js/models/todo.js"></script>
  61. <script src="js/models/todoList.js"></script>
  62. <script src="js/views/todos.js"></script>
  63. <script src="js/views/app.js"></script>
  64. <script src="js/app/router.js"></script>
  65. <script src="js/app/app.js"></script>
  66. </body>
  67. </html>