Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
b0624d35
Commit
b0624d35
authored
Feb 27, 2012
by
Aaron Boushley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Converting from spaces to tabs.
parent
8f9ee834
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
282 additions
and
286 deletions
+282
-286
architecture-examples/backbone/index.html
architecture-examples/backbone/index.html
+35
-35
architecture-examples/backbone/js/app.js
architecture-examples/backbone/js/app.js
+247
-251
No files found.
architecture-examples/backbone/index.html
View file @
b0624d35
<!doctype html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<title>
Backbone.js
</title>
<link
rel=
"stylesheet"
href=
"css/app.css"
/>
<meta
charset=
"utf-8"
>
<title>
Backbone.js
</title>
<link
rel=
"stylesheet"
href=
"css/app.css"
/>
</head>
<body>
<div
id=
"todoapp"
>
<div
id=
"todoapp"
>
<header>
<h1>
Todos
</h1>
<input
id=
"new-todo"
type=
"text"
placeholder=
"What needs to be done?"
>
...
...
@@ -15,49 +15,49 @@
<section
id=
"main"
>
<input
id=
"toggle-all"
type=
"checkbox"
>
<label
for=
"toggle-all"
>
Mark all as complete
</label>
<ul
id=
"todo-list"
>
</ul>
</section>
<ul
id=
"todo-list"
>
</ul>
</section>
<footer>
<a
id=
"clear-completed"
>
Clear completed
</a>
<div
id=
"todo-count"
></div>
</footer>
</div>
</div>
<div
id=
"instructions"
>
Double-click to edit a todo.
</div>
<div
id=
"credits"
>
Created by
<br
/>
<a
href=
"http://jgn.me/"
>
J
é
r
ô
me Gravel-Niquet
</a>
.
<br
/>
Cleanup, edits:
<a
href=
"http://addyosmani.com"
>
Addy Osmani
</a>
,
<a
href=
"http://github.com/boushley"
>
Aaron Boushley
</a>
.
</div>
<div
id=
"credits"
>
Created by
<br
/>
<a
href=
"http://jgn.me/"
>
J
é
r
ô
me Gravel-Niquet
</a>
.
<br
/>
Cleanup, edits:
<a
href=
"http://addyosmani.com"
>
Addy Osmani
</a>
,
<a
href=
"http://github.com/boushley"
>
Aaron Boushley
</a>
.
</div>
<script
src=
"js/libs/json2.js"
></script>
<script
src=
"js/libs/jquery-1.7.1.min.js"
></script>
<script
src=
"js/libs/underscore.js"
></script>
<script
src=
"js/libs/backbone.js"
></script>
<script
src=
"js/libs/backbone-localstorage.js"
></script>
<script
src=
"js/app.js"
></script>
<script
src=
"js/libs/json2.js"
></script>
<script
src=
"js/libs/jquery-1.7.1.min.js"
></script>
<script
src=
"js/libs/underscore.js"
></script>
<script
src=
"js/libs/backbone.js"
></script>
<script
src=
"js/libs/backbone-localstorage.js"
></script>
<script
src=
"js/app.js"
></script>
<!-- Templates -->
<!-- Templates -->
<script
type=
"text/template"
id=
"item-template"
>
<
div
class
=
"
view
"
>
<
input
class
=
"
toggle
"
type
=
"
checkbox
"
<%=
done
?
'
checked="checked"
'
:
''
%>
/
>
<
label
><%=
title
%><
/label
>
<
a
class
=
"
destroy
"
><
/a
>
<
/div
>
<
input
class
=
"
edit
"
type
=
"
text
"
value
=
"
<%= title %>
"
/>
</script>
<script
type=
"text/template"
id=
"item-template"
>
<
div
class
=
"
view
"
>
<
input
class
=
"
toggle
"
type
=
"
checkbox
"
<%=
done
?
'
checked="checked"
'
:
''
%>
/
>
<
label
><%=
title
%><
/label
>
<
a
class
=
"
destroy
"
><
/a
>
<
/div
>
<
input
class
=
"
edit
"
type
=
"
text
"
value
=
"
<%= title %>
"
/>
</script>
<script
type=
"text/template"
id=
"stats-template"
>
<%
if
(
done
)
{
%>
<
a
id
=
"
clear-completed
"
>
Clear
<%=
done
%>
completed
<%=
done
==
1
?
'
item
'
:
'
items
'
%><
/a
>
<%
}
%>
<
div
class
=
"
todo-count
"
><
b
><%=
remaining
%><
/b> <%= remaining == 1
?
'item' : 'items' %> left</
div
>
</script>
<script
type=
"text/template"
id=
"stats-template"
>
<%
if
(
done
)
{
%>
<
a
id
=
"
clear-completed
"
>
Clear
<%=
done
%>
completed
<%=
done
==
1
?
'
item
'
:
'
items
'
%><
/a
>
<%
}
%>
<
div
class
=
"
todo-count
"
><
b
><%=
remaining
%><
/b> <%= remaining == 1
?
'item' : 'items' %> left</
div
>
</script>
</body>
</html>
architecture-examples/backbone/js/app.js
View file @
b0624d35
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment