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
7dca6f71
Commit
7dca6f71
authored
Oct 25, 2015
by
Pascal Hartig
Committed by
Sam Saccone
Nov 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update homepage paper components
parent
453de5b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
24 deletions
+20
-24
index.html
index.html
+16
-16
site-assets/main.js
site-assets/main.js
+4
-8
No files found.
index.html
View file @
7dca6f71
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<meta
property=
"og:image"
content=
"https://raw.github.com/tastejs/todomvc/gh-pages/site-assets/screenshot.png"
>
<meta
property=
"og:image"
content=
"https://raw.github.com/tastejs/todomvc/gh-pages/site-assets/screenshot.png"
>
<meta
property=
"og:description"
content=
"Helping you select an MV* framework - Todo apps for Backbone.js, Ember.js, AngularJS, Spine and many more"
>
<meta
property=
"og:description"
content=
"Helping you select an MV* framework - Todo apps for Backbone.js, Ember.js, AngularJS, Spine and many more"
>
<link
rel=
"shortcut icon"
href=
"site-assets/favicon.ico"
>
<link
rel=
"shortcut icon"
href=
"site-assets/favicon.ico"
>
<script
src=
"bower_components/
platform/platform
.js"
></script>
<script
src=
"bower_components/
webcomponentsjs/webcomponents-lite.min
.js"
></script>
<!-- build:remove -->
<!-- build:remove -->
<script
src=
"bower_components/prefixfree/prefixfree.min.js"
></script>
<script
src=
"bower_components/prefixfree/prefixfree.min.js"
></script>
<!-- endbuild -->
<!-- endbuild -->
...
@@ -53,29 +53,29 @@
...
@@ -53,29 +53,29 @@
</div>
</div>
<div
class=
"col-md-8"
>
<div
class=
"col-md-8"
>
<h2>
Examples
</h2>
<h2>
Examples
</h2>
<style
shim-shadowdom
>
<style
is=
"custom-style"
>
paper-tabs
{
--paper-tabs-selection-bar-color
:
#b12d2b
;
}
paper-tab
{
--paper-tab-ink
:
#b12d2b
;
}
paper-tabs
,
core-toolbar
{
paper-tabs
,
core-toolbar
{
color
:
rgb
(
53
,
53
,
53
);
color
:
rgb
(
53
,
53
,
53
);
background-color
:
#f4f4f4
;
background-color
:
#f4f4f4
;
font-family
:
'Helvetica Neue'
,
Helvetica
,
Arial
;
font-family
:
'Helvetica Neue'
,
Helvetica
,
Arial
;
box-shadow
:
0px
3px
2px
rgba
(
0
,
0
,
0
,
0.2
);
box-shadow
:
0px
3px
2px
rgba
(
0
,
0
,
0
,
0.2
);
}
}
paper-tabs
::shadow
#selectionBar
{
background-color
:
#b12d2b
;
}
paper-tab
::shadow
paper-ripple
#ink
{
color
:
#b12d2b
;
}
</style>
</style>
<paper-tabs
selected=
"
js
"
class=
"js-app-tabs"
>
<paper-tabs
selected=
"
{{selectedTab}}
"
class=
"js-app-tabs"
>
<paper-tab
name
=
"js"
>
JavaScript
</paper-tab>
<paper-tab
data-target
=
"js"
>
JavaScript
</paper-tab>
<paper-tab
name
=
"ctojs"
>
Compile-to-JS
</paper-tab>
<paper-tab
data-target
=
"ctojs"
>
Compile-to-JS
</paper-tab>
<paper-tab
name
=
"labs"
>
Labs
</paper-tab>
<paper-tab
data-target
=
"labs"
>
Labs
</paper-tab>
</paper-tabs>
</paper-tabs>
<
div
class=
"app-lists"
>
<
iron-pages
selected=
"{{selectedTab}}"
class=
"app-lists"
>
<div
class=
"js-app-list"
data-app-list=
"js"
>
<div
class=
"js-app-list"
data-app-list=
"js"
>
<p
class=
"applist-intro"
>
<p
class=
"applist-intro"
>
These are examples written in pure JavaScript.
These are examples written in pure JavaScript.
...
@@ -296,7 +296,7 @@
...
@@ -296,7 +296,7 @@
</ul>
</ul>
</div>
</div>
</
div
>
</
iron-pages
>
<ul
class=
"legend"
>
<ul
class=
"legend"
>
<li><span
class=
"label"
>
R
</span>
= App also demonstrates routing
</li>
<li><span
class=
"label"
>
R
</span>
= App also demonstrates routing
</li>
</ul>
</ul>
...
...
site-assets/main.js
View file @
7dca6f71
...
@@ -175,9 +175,10 @@
...
@@ -175,9 +175,10 @@
}]);
}]);
function
AppTabs
()
{
function
AppTabs
()
{
document
.
querySelector
(
AppTabs
.
selectors
.
tabs
).
addEventListener
(
var
tabs
=
document
.
querySelector
(
AppTabs
.
selectors
.
tabs
);
'
core
-select
'
,
this
.
onSelect
.
bind
(
this
));
tabs
.
addEventListener
(
'
iron
-select
'
,
this
.
onSelect
.
bind
(
this
));
this
.
listHeight
=
0
;
this
.
listHeight
=
0
;
tabs
.
select
(
0
);
}
}
AppTabs
.
selectors
=
{
AppTabs
.
selectors
=
{
...
@@ -187,14 +188,9 @@
...
@@ -187,14 +188,9 @@
};
};
AppTabs
.
prototype
.
onSelect
=
function
(
e
)
{
AppTabs
.
prototype
.
onSelect
=
function
(
e
)
{
var
selected
=
e
.
target
.
selected
;
var
selected
=
e
.
currentTarget
.
selectedItem
.
dataset
.
target
;
[].
slice
.
call
(
document
.
querySelectorAll
(
AppTabs
.
selectors
.
list
)).
forEach
(
[].
slice
.
call
(
document
.
querySelectorAll
(
AppTabs
.
selectors
.
list
)).
forEach
(
function
(
el
)
{
function
(
el
)
{
if
(
!
e
.
detail
.
isSelected
)
{
// Don't handle unselection events.
return
;
}
var
isSelected
=
el
.
dataset
.
appList
===
selected
;
var
isSelected
=
el
.
dataset
.
appList
===
selected
;
el
.
style
.
display
=
isSelected
?
'
block
'
:
'
none
'
;
el
.
style
.
display
=
isSelected
?
'
block
'
:
'
none
'
;
if
(
isSelected
)
{
if
(
isSelected
)
{
...
...
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