forked from larrymyers/backbone-koans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (38 loc) · 1.22 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
<!DOCTYPE html>
<html>
<head>
<title>Backbone Demo: Todos</title>
<link href="css/todos.css" media="all" rel="stylesheet" type="text/css"/>
<style type="text/css">
#spec_link {
position: absolute;
top: 20px;
right: 20px;
font-size: 22px;
color: #333;
text-decoration: none;
}
#spec_link:hover {
color: #666;
text-decoration: underline;
}
</style>
<script type="text/javascript" src="js/ext/jquery-1.7.1.js"></script>
<script type="text/javascript" src="js/ext/underscore.js"></script>
<script type="text/javascript" src="js/ext/template.js"></script>
<script type="text/javascript" src="js/ext/backbone.js"></script>
<script type="text/javascript" src="js/ext/backbone.localStorage.js"></script>
<script type="text/javascript" src="js/todos.js"></script>
</head>
<body>
<a id="spec_link" href="specrunner.html">To the Koans » </a>
<script type="text/javascript">
$(document).ready(function(evt) {
_.extend(TodoList.prototype, {
localStorage: new Store('todos')
});
App = new TodoApp({ appendTo: $('body') });
});
</script>
</body>
</html>