-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (60 loc) · 2.27 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html>
<head>
<title>Backbone Demo: User Stories</title>
<link href="todos.css" media="all" rel="stylesheet" type="text/css"/>
<script src="lib/json2.js"></script>
<script src="lib/jquery-1.7.1.js"></script>
<script src="lib/underscore-1.3.1.js"></script>
<script src="lib/backbone.js"></script>
<script src="lib/backbone-localstorage.js"></script>
<script src="todos.js"></script>
</head>
<body>
<!-- Todo App Interface -->
<div id="todoapp">
<div class="title">
<h1>User Stories</h1>
</div>
<div class="content">
<div id="create-todo">
<input id="new-story-agent" placeholder="As a..." type="text" />
<input id="new-story-action" placeholder="I want to..." type="text" />
<input id="new-story-result" placeholder="so that..." type="text" />
</div>
<div id="todos">
<ul id="todo-list"></ul>
</div>
<div id="todo-stats"></div>
</div>
</div>
<div id="credits">
Based on <a href="http://documentcloud.github.com/backbone/examples/todos/index.html">Backbone Todos</a> created by
<a href="http://jgn.me/">Jérôme Gravel-Niquet</a>
</div>
<!-- Templates -->
<script type="text/template" id="item-template">
<div class="todo">
<div class="display">
<span class="storyheading">As a </span><span class="todo-text-agent"></span>
<span class="storyheading">I want to </span><span class="todo-text-action"></span>
<span class="storyheading">so that </span><span class="todo-text-result"></span>
<span class="todo-destroy"></span>
</div>
<div class="edit">
<input class="todo-input-agent" type="text" value="" /><br />
<input class="todo-input-action" type="text" value="" /><br />
<input class="todo-input-result" type="text" value="" />
</div>
</div>
</script>
<script type="text/template" id="stats-template">
<% if (total) { %>
<span class="todo-count">
<span class="number"><%= total %></span>
<span class="word"><%= total == 1 ? 'story' : 'stories' %></span>
</span>
<% } %>
</script>
</body>
</html>