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
a9468fbc
Commit
a9468fbc
authored
Jan 18, 2012
by
Aaron Boushley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating index.html to match template.
parent
b600825f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
68 deletions
+50
-68
architecture-examples/backbone/index.html
architecture-examples/backbone/index.html
+50
-68
No files found.
architecture-examples/backbone/index.html
View file @
a9468fbc
<!
DOCTYPE
html>
<html>
<head
>
<!
doctype
html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<title>
Backbone.js
</title>
<link
href=
"css/todos.css"
media=
"all"
rel=
"stylesheet"
type=
"text/css"
/>
<link
rel=
"stylesheet"
href=
"css/todos.css"
/>
</head>
<body>
<div
id=
"todoapp"
>
<header>
<h1>
Todos
</h1>
<input
id=
"new-todo"
type=
"text"
placeholder=
"What needs to be done?"
>
<span
class=
"ui-tooltip-top"
style=
"display:none;"
>
Press Enter to save this task
</span>
</header>
<section
id=
"main"
>
<input
id=
"toggle-all"
type=
"checkbox"
>
<label
for=
"toggle-all"
>
Mark all as complete
</label>
<ul
id=
"todo-list"
>
</ul>
</section>
<footer>
<a
id=
"clear-completed"
>
Clear completed
</a>
<div
id=
"todo-count"
></div>
</footer>
</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>
.
</div>
<script
src=
"js/json2.js"
></script>
<script
src=
"js/jquery-1.6.4.min.js"
></script>
<script
src=
"js/underscore-1.1.6.js"
></script>
<script
src=
"js/backbone.js"
></script>
<script
src=
"js/backbone-localstorage.js"
></script>
<script
src=
"js/todos.js"
></script>
</head>
<body>
<!-- Todo App Interface -->
<div
id=
"todoapp"
>
<div
class=
"title"
>
<h1>
Todos
</h1>
</div>
<div
class=
"content"
>
<div
id=
"create-todo"
>
<input
id=
"new-todo"
placeholder=
"What needs to be done?"
type=
"text"
/>
<span
class=
"ui-tooltip-top"
style=
"display:none;"
>
Press Enter to save this task
</span>
</div>
<div
id=
"todos"
>
<input
class=
"check mark-all-done"
type=
"checkbox"
/>
<label
for=
"check-all"
>
Mark all as complete
</label>
<ul
id=
"todo-list"
></ul>
</div>
<div
id=
"todo-stats"
></div>
</div>
</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>
.
</div>
<!-- Templates -->
<script
type=
"text/template"
id=
"item-template"
>
<
div
class
=
"
todo <%= done ? 'done' : '' %>
"
>
<
div
class
=
"
display
"
>
<
input
class
=
"
check
"
type
=
"
checkbox
"
<%=
done
?
'
checked="checked"
'
:
''
%>
/
>
<
label
class
=
"
todo-content
"
><%=
content
%><
/label
>
<
span
class
=
"
todo-destroy
"
><
/span
>
<
/div
>
<
div
class
=
"
edit
"
>
<
input
class
=
"
todo-input
"
type
=
"
text
"
value
=
"
<%= content %>
"
/>
<
/div
>
<
/div
>
<
li
class
=
"
todo <%= done ? 'done' : '' %>
"
>
<
div
class
=
"
view
"
>
<
input
class
=
"
toggle
"
type
=
"
checkbox
"
<%=
done
?
'
checked="checked"
'
:
''
%>
/
>
<
label
><%=
content
%><
/label
>
<
a
class
=
"
destroy
"
><
/span
>
<
/div
>
<
input
class
=
"
edit
"
type
=
"
text
"
value
=
"
<%= content %>
"
/>
<
/li
>
</script>
<script
type=
"text/template"
id=
"stats-template"
>
<%
if
(
total
)
{
%>
<
span
class
=
"
todo-count
"
>
<
span
class
=
"
number
"
><%=
remaining
%><
/span
>
<
span
class
=
"
word
"
><%=
remaining
==
1
?
'
item
'
:
'
items
'
%><
/span> left
.
<
/span
>
<%
}
%>
<%
if
(
done
)
{
%>
<
span
class
=
"
todo-clear
"
>
<
a
href
=
"
#
"
>
Clear
<
span
class
=
"
number-done
"
><%=
done
%><
/span
>
completed
<
span
class
=
"
word-done
"
><%=
done
==
1
?
'
item
'
:
'
items
'
%><
/span
>
<
/a
>
<
/span
>
<%
}
%>
<%
if
(
done
)
{
%>
<
a
id
=
"
clear-completed
"
>
Clear
<%=
done
%>
completed
<%=
done
==
1
?
'
item
'
:
'
items
'
%><
/a
>
<%
}
%>
<%
if
(
total
)
{
%>
<
div
class
=
"
todo-count
"
><%=
remaining
%>
<%=
remaining
==
1
?
'
item
'
:
'
items
'
%>
left
.
<
/div
>
<%
}
%>
</script>
</body>
</body>
</html>
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