-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
56 lines (47 loc) · 1.93 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<html>
<head>
<title>Todo App with Backbone.js</title>
<script src="lib/jquery.js" type="text/javascript"></script>
<script src="lib/jquery.tmpl.js" type="text/javascript"></script>
<script src="lib/underscore.js" type="text/javascript"></script>
<script src="lib/backbone.js" type="text/javascript"></script>
<script src="lib/backbone.localStorage.js" type="text/javascript"></script>
<script src="todos.js" type="text/javascript"></script>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" title="no title" charset="utf-8">
</head>
<body>
<div id="app">
<header><h1>Todo App Backbone.js Tutorial!</h1></header>
<div class="contents">
<input type="text" id="new-todo" value="" placeholder="Enter an item or task..."/>
<ul id="todo-list">
</ul>
<div class="buttons">
<button class="clear-done on right">Clear Done</button> <button class="check-remaining">Check Remaining</button>
</div>
</div>
</div>
<footer>
Built by <a href='http://seanbehan.com' target="_blank">Sean Behan</a>
<span class="on right">Get the code at <a href="https://github.com/bseanvt/backbone-todos-tutorial" target="_blank">Github</a></span>
</footer>
<!-- Templates -->
<script id="todo-item" type="text/template">
<div class="todo {{if done}}done{{/if}}">
<div class="on right">
<input type='checkbox' class="checkbox" {{if done}}checked{{/if}}/>
<span class="actions">
<a href="#" class="edit"> </a>
<a href="#" class="delete"> </a>
</span>
</div>
<span class="content">${content}</span>
<form><input type="text" value="${content}">
<button class="done">done</button>
<a href="#" class="cancel">cancel</a>
</form>
</div>
</script>
</body>
</html>