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
0ad7c27d
Commit
0ad7c27d
authored
Jul 07, 2012
by
Sindre Sorhus
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #208 from sindresorhus/yui-update
YUI app update
parents
66dd8d2d
0d07bb3c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
453 additions
and
990 deletions
+453
-990
architecture-examples/yuilibrary/css/app.css
architecture-examples/yuilibrary/css/app.css
+4
-0
architecture-examples/yuilibrary/css/style.css
architecture-examples/yuilibrary/css/style.css
+0
-560
architecture-examples/yuilibrary/img/destroy.png
architecture-examples/yuilibrary/img/destroy.png
+0
-0
architecture-examples/yuilibrary/index.html
architecture-examples/yuilibrary/index.html
+27
-39
architecture-examples/yuilibrary/js/app.js
architecture-examples/yuilibrary/js/app.js
+422
-391
No files found.
architecture-examples/yuilibrary/css/app.css
0 → 100644
View file @
0ad7c27d
#main
,
#footer
{
display
:
none
;
}
\ No newline at end of file
architecture-examples/yuilibrary/css/style.css
deleted
100644 → 0
View file @
66dd8d2d
This diff is collapsed.
Click to expand it.
architecture-examples/yuilibrary/img/destroy.png
deleted
100644 → 0
View file @
66dd8d2d
1.19 KB
architecture-examples/yuilibrary/index.html
View file @
0ad7c27d
...
...
@@ -4,53 +4,41 @@
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<title>
YUI • TodoMVC
</title>
<link
rel=
"stylesheet"
href=
"css/style.css"
>
<link
rel=
"stylesheet"
href=
"../../assets/base.css"
>
<link
rel=
"stylesheet"
href=
"css/app.css"
>
<!--[if IE]>
<script src="../../assets/ie.js"></script>
<![endif]-->
</head>
<body>
<div
id=
"todo-app"
>
<div
class=
"title"
>
<h1>
Todos
</h1>
</div>
<label
class=
"todo-label"
for=
"new-todo"
></label>
<input
type=
"text"
id=
"new-todo"
class=
"todo-input"
placeholder=
"What needs to be done?"
>
<div
id=
"todos"
>
<section
id=
"todoapp"
>
<header
id=
"header"
>
<h1>
todos
</h1>
</header>
<input
id=
"new-todo"
placeholder=
"What needs to be done?"
autofocus
>
<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
id=
"footer"
></footer>
</section>
<footer
id=
"info"
>
<p>
Based on code by the YUILibrary team
</p>
<p>
Created by
<a
href=
"https://github.com/addyosmani"
>
Addy Osmani
</a></p>
<p>
Rewrite by
<a
href=
"https://github.com/sindresorhus"
>
Sindre Sorhus
</a></p>
</footer>
<script
type=
"text/x-template"
id=
"todo-template"
>
<
div
class
=
"
view
"
>
<
input
class
=
"
toggle
"
type
=
"
checkbox
"
{
completed
}
>
<
label
>
{
title
}
<
/label
>
<
button
class
=
"
destroy
"
><
/button
>
<
/div
>
<div
id=
"todo-stats"
></div>
</div>
<div
id=
"credits"
>
This version by
<br
/>
<a
href=
"http://twitter.com/addyosmani"
>
Addy Osmani
</a>
<br
/>
based on code by the YUILibrary team.
</div>
<script
type=
"text/x-template"
id=
"todo-item-template"
>
<
div
class
=
"
todo-view
"
>
<
input
type
=
"
checkbox
"
class
=
"
todo-checkbox
"
{
checked
}
>
<
span
class
=
"
todo-content
"
tabindex
=
"
0
"
>
{
text
}
<
/span
>
<
/div
>
<
div
class
=
"
todo-edit
"
>
<
input
type
=
"
text
"
class
=
"
todo-input
"
value
=
"
{text}
"
>
<
/div
>
<
a
href
=
"
#
"
class
=
"
todo-remove
"
title
=
"
Remove this task
"
>
<
span
class
=
"
todo-remove-icon
"
><
/span
>
<
/a
>
<
input
class
=
"
edit
"
value
=
"
{title}
"
>
</script>
<script
type=
"text/x-template"
id=
"todo-stats-template"
>
<
span
class
=
"
todo-count
"
>
<
span
class
=
"
todo-remaining
"
>
{
numRemaining
}
<
/span
>
<
span
class
=
"
todo-remaining-label
"
>
{
remainingLabel
}
<
/span> left
.
<
/span
>
<
a
href
=
"
#
"
class
=
"
todo-clear
"
>
Clear
{
numDone
}
completed
<
span
class
=
"
todo-done-label
"
>
{
doneLabel
}
<
/span
>
<
/a
>
<script
type=
"text/x-template"
id=
"footer-template"
>
<
span
id
=
"
todo-count
"
><
strong
>
{
numRemaining
}
<
/strong> {remainingLabel} left</
span
>
<
button
id
=
"
clear-completed
"
>
Clear
completed
({
numCompleted
})
<
/button
>
</script>
<script
src=
"../../assets/base.js"
></script>
<script
src=
"js/yui-3.4.0.min.js"
></script>
...
...
architecture-examples/yuilibrary/js/app.js
View file @
0ad7c27d
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