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
9454892b
Commit
9454892b
authored
Jul 12, 2014
by
Pascal Hartig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add JS/C2JS/Labs menu to TodoMVC
parent
89acc6ab
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
194 additions
and
192 deletions
+194
-192
bower.json
bower.json
+2
-1
index.html
index.html
+151
-191
site-assets/main.css
site-assets/main.css
+18
-0
site-assets/main.js
site-assets/main.js
+23
-0
No files found.
bower.json
View file @
9454892b
...
...
@@ -2,7 +2,8 @@
"name"
:
"todomvc"
,
"dependencies"
:
{
"jquery"
:
"~2.1.0"
,
"bootstrap"
:
"~3.2.0"
"bootstrap"
:
"~3.2.0"
,
"paper-tabs"
:
"Polymer/paper-tabs#~0.3.5"
},
"devDependencies"
:
{
"prefixfree"
:
"91790e8aff6d807cd62018479db2307e1972b92a"
...
...
index.html
View file @
9454892b
This diff is collapsed.
Click to expand it.
site-assets/main.css
View file @
9454892b
...
...
@@ -118,6 +118,10 @@ header nav a:not(:last-child) {
left
:
-20px
;
}
.app-lists
{
overflow
:
hidden
;
}
.applist
{
list-style
:
none
;
margin
:
0
;
...
...
@@ -136,6 +140,11 @@ header nav a:not(:last-child) {
column-break-inside
:
avoid
;
}
.applist-intro
{
margin
:
10px
0
10px
;
font-style
:
italic
;
}
.applist
.routing
::after
,
.applist
.label
,
.legend
.label
{
...
...
@@ -323,6 +332,15 @@ a.zocial {
border-radius
:
.3em
;
}
@keyframes
swoosh-in
{
from
{
opacity
:
0
;
transform
:
translateX
(
-500px
);
}
to
{
opacity
:
1
;
transform
:
translateX
(
0
);
}
}
.anim-swoosh-in
{
animation
:
swoosh-in
0.5s
;
}
@media
(
max-width
:
480px
)
{
body
.applist
{
column-count
:
auto
!important
;
...
...
site-assets/main.js
View file @
9454892b
...
...
@@ -183,4 +183,27 @@
}
}]);
function
AppTabs
()
{
document
.
querySelector
(
AppTabs
.
selectors
.
tabs
).
addEventListener
(
'
core-select
'
,
this
.
onSelect
.
bind
(
this
));
}
AppTabs
.
selectors
=
{
'
tabs
'
:
'
.js-app-tabs
'
,
'
list
'
:
'
.js-app-list
'
};
AppTabs
.
prototype
.
onSelect
=
function
(
e
)
{
var
selected
=
e
.
target
.
selected
;
[].
slice
.
call
(
document
.
querySelectorAll
(
AppTabs
.
selectors
.
list
)).
forEach
(
function
(
e
)
{
var
isSelected
=
e
.
dataset
.
appList
===
selected
;
e
.
style
.
display
=
isSelected
?
'
block
'
:
'
none
'
;
e
.
classList
.
toggle
(
'
anim-swoosh-in
'
,
isSelected
);
}
);
};
new
AppTabs
();
}());
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