backbone-skull
Version:
Skull sits on top of Backbone and protects your application's brains.
69 lines (66 loc) • 2.56 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8">
<title>Skull • TodoMVC</title>
<link rel="stylesheet" href="bower_components/todomvc-common/base.css">
<!-- CSS overrides - remove if you don't need it -->
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<section id="todoapp">
<header id="header">
<h1>todos</h1>
<input id="new-todo" placeholder="What needs to be done?" autofocus>
</header>
<!-- This section should be hidden by default and shown when there are todos -->
<section id="main">
<input id="toggle-all" type="checkbox">
<label for="toggle-all">Mark all as complete</label>
<ul id="todo-list">
</ul>
</section>
<!-- This footer should hidden by default and shown when there are todos -->
<footer id="footer">
<!-- This should be `0 items left` by default -->
<span id="todo-count"><strong>1</strong> item(s) left</span>
<!-- Remove this if you don't implement routing -->
<ul id="filters">
<li>
<a class="selected" href="#/">All</a>
</li>
<li>
<a href="#/active">Active</a>
</li>
<li>
<a href="#/completed">Completed</a>
</li>
</ul>
<!-- Hidden if no completed items are left ↓ -->
<button id="clear-completed">Clear completed (<span>1</span>)</button>
</footer>
</section>
<footer id="info">
<p>Double-click to edit a todo</p>
<!-- Change this out with your name and url ↓ -->
<p>Created by <a href="http://kitmanov.name">Konstantin Kitmanov</a></p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
</footer>
<script type="text/template" class="js-tpl-todoList">
<!-- List items should get the class `editing` when editing and `completed` when marked as completed -->
<% _.each(todos, function (todo, index) { %>
<li class="<%= todo.completed ? 'completed' : '' %>" data-id="<%= todo.id %>">
<div class="view">
<input class="toggle" type="checkbox" <%= todo.completed ? 'checked' : '' %>>
<label><%= todo.title %></label>
<button class="destroy"></button>
</div>
<input class="edit" value="<%= todo.title %>">
</li>
<% }) %>
</script>
<!-- Scripts here. Don't remove this ↓ -->
<script src="bower_components/todomvc-common/base.js"></script>
<script src="bower_components/requirejs/require.js/" data-main="js/app"></script>
</body>
</html>