Created
November 14, 2014 08:41
-
-
Save jgato/b272eeeb486c42ee3075 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="http://www.polymer-project.org/platform.js"></script> | |
<link rel="import" href="http://www.polymer-project.org/components/polymer/polymer.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-scroll-header-panel/core-scroll-header-panel.html"> | |
<link rel="import" href="https://www.polymer-project.org/components/core-scroll-header-panel/demos/sample-content.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-list/core-list.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-header-panel/core-header-panel.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-toolbar/core-toolbar.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/paper-tabs/paper-tabs.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-icon-button/core-icon-button.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-icon/core-icon.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-item/core-item.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-card/core-card.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-menu/core-submenu.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-scaffold/core-scaffold.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-menu/core-menu.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-icon-button/core-icon-button.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-input/core-input.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-icons/core-icons.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/paper-checkbox/paper-checkbox.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-icons/av-icons.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/paper-fab/paper-fab.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/paper-input/paper-input-decorator.html"> | |
<link rel="import" href="https://raw.githubusercontent.com/Polymer/polymer-tutorial/master/post-service/post-service.html"> | |
<style shim-shadowdom> | |
.content { | |
margin: 16px; | |
} | |
.rightColumn, .leftColumn { | |
display: inline-block; | |
width: 49%; | |
vertical-align: top; | |
} | |
.card-image h1, .card-image h2, .card-image h3, .card-image h4, .card-image h5, .card-image h6 { | |
position: absolute; | |
bottom: 0px; | |
width: 100%; | |
color: white; | |
margin: 0px; | |
padding: 6px; | |
border: none; | |
background: rgba(0, 0, 0, 0.65098); | |
} | |
.card { | |
border-width: 1px 1px 3px; | |
border-style: solid; | |
border-color: rgb(170, 170, 170) rgb(170, 170, 170) rgb(187, 187, 187); | |
padding: 0px; | |
margin: 15px; | |
overflow: hidden; | |
background: rgb(255, 255, 255); | |
} | |
.card h1 { | |
margin: 0px; | |
padding: 10px 10px 0px; | |
} | |
.card p { | |
margin: 0px; | |
padding: 10px; | |
} | |
.card-image { | |
width: 100%; | |
height: 200px; | |
padding: 0px; | |
margin: 0px; | |
position: relative; | |
overflow: hidden; | |
background-position: 50% 50%; | |
background-repeat: no-repeat; | |
} | |
.image1 { | |
background-image: url(http://uploads.webflow.com/52d4399e020acdcb61000001/52fd4c1ec5f87e8c21000a0f_Flat-Color-Abstract-City-Background_3.png); | |
} | |
.image2 { | |
background-image: url(http://lawebdelestudiante.es/wp-content/uploads/2013/01/A350Airbus.jpg); | |
} | |
.card-image .banner { | |
height: 50px; | |
width: 50px; | |
top: 0px; | |
right: 0px; | |
position: absolute; | |
background-image: url(https://www.polymer-project.org/tools/designer/components/images/new.png); | |
background-position: 100% 0%; | |
background-repeat: no-repeat; | |
} | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#core_menu { | |
font-size: 16px; | |
left: 330px; | |
top: 210px; | |
position: absolute; | |
} | |
#core_scaffold { | |
position: absolute; | |
top: 0px; | |
right: 0px; | |
bottom: 0px; | |
left: -10px; | |
} | |
#core_header_panel { | |
background-color: rgb(255, 255, 255); | |
} | |
#core_toolbar { | |
color: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#core_menu1 { | |
font-size: 16px; | |
} | |
#core_toolbar1 { | |
right: 0px; | |
left: 0px; | |
color: rgb(255, 255, 255); | |
fill: rgb(255, 255, 255); | |
top: 0px; | |
position: absolute; | |
background-color: rgb(79, 125, 201); | |
} | |
#section { | |
left: 0px; | |
top: 0px; | |
height: 100%; | |
position: absolute; | |
width: 100%; | |
} | |
#core_card { | |
position: absolute; | |
width: 300px; | |
height: 420px; | |
border-top-left-radius: 2px; | |
border-top-right-radius: 2px; | |
border-bottom-right-radius: 2px; | |
border-bottom-left-radius: 2px; | |
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; | |
left: 14px; | |
top: 26px; | |
background-color: rgb(255, 255, 255); | |
} | |
#core_header_panel1 { | |
width: 300px; | |
height: 400px; | |
} | |
#core_toolbar2 { | |
color: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#core_menu2 { | |
font-size: 16px; | |
left: 12px; | |
top: 82px; | |
position: absolute; | |
} | |
#core_icon { | |
left: 672px; | |
top: 20px; | |
position: absolute; | |
} | |
#core_icon1 { | |
left: 16px; | |
top: 10px; | |
position: absolute; | |
width: 32px; | |
height: 32px; | |
} | |
#core_input1 { | |
padding: 15px; | |
left: 44px; | |
top: 5px; | |
position: absolute; | |
width: 160px; | |
height: 20px; | |
} | |
#paper_fab { | |
overflow: visible; | |
left: 694px; | |
top: 960px; | |
position: absolute; | |
} | |
#core_menu_button1 { | |
left: 258px; | |
top: 10px; | |
position: absolute; | |
} | |
#core_item11 { | |
width: 240px; | |
height: 40px; | |
left: 0px; | |
top: 140px; | |
position: static; | |
} | |
#core_menu3 { | |
font-size: 16px; | |
left: 1230px; | |
top: 510px; | |
} | |
#core_icon_button1 { | |
left: 258px; | |
top: 10px; | |
position: absolute; | |
} | |
#core_icon_button { | |
left: 12px; | |
top: 10px; | |
position: absolute; | |
} | |
#input { | |
padding: 15px; | |
} | |
#div4 { | |
font-size: 16px; | |
padding-bottom: 8px; | |
position: static; | |
left: 50px; | |
top: 50px; | |
} | |
#core_icon3 { | |
left: 10px; | |
top: 260px; | |
position: absolute; | |
} | |
#core_card1 { | |
position: absolute; | |
width: 300px; | |
height: 300px; | |
border-top-left-radius: 2px; | |
border-top-right-radius: 2px; | |
border-bottom-right-radius: 2px; | |
border-bottom-left-radius: 2px; | |
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; | |
left: 344px; | |
top: 66px; | |
background-color: rgb(255, 255, 255); | |
} | |
#core_field1 { | |
left: 1120px; | |
top: 560px; | |
} | |
#div1 { | |
left: 82px; | |
top: 20px; | |
position: absolute; | |
} | |
</style> | |
</head> | |
<body unresolved> | |
<core-menu id="core_menu" selected="0"> | |
</core-menu> | |
<core-scaffold id="core_scaffold"> | |
<core-header-panel mode="seamed" id="core_header_panel" navigation flex> | |
<core-toolbar id="core_toolbar"> | |
<core-input id="core_input1">Admin</core-input> | |
<core-icon src="http://www.fao.org/fileadmin/templates/red-icean/img/nouser.png" icon="search" id="core_icon1"></core-icon> | |
</core-toolbar> | |
<core-menu id="core_menu1" selected="Item2" valueattr="label" theme="core-light-theme"> | |
</core-menu> | |
<core-menu id="core_menu2" selected="0" selectedindex="0"> | |
<core-submenu active id="core_submenu" icon="settings" label="Pipelines"> | |
<core-item id="core_item" label="FloraHolland" horizontal center layout active></core-item> | |
<core-item id="core_item1" label="AirBus" horizontal center layout></core-item> | |
</core-submenu> | |
<core-submenu id="core_submenu1" icon="settings" label="Participants"> | |
<core-item id="core_item2" label="Road Carrier" horizontal center layout></core-item> | |
<core-item id="core_item3" label="Customs" horizontal center layout></core-item> | |
<core-item id="core_item4" label="Freight Forwarder" horizontal center layout active>r</core-item> | |
</core-submenu> | |
</core-menu> | |
</core-header-panel> | |
<div id="div" tool>Pipe Lines</div> | |
<core-toolbar id="core_toolbar1"> | |
<core-icon icon="search" id="core_icon"></core-icon> | |
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button> | |
<div id="div1" flex>Pipe Lines</div> | |
</core-toolbar> | |
<section id="section"> | |
<div class="card"> | |
<div id="div3" class="card-image image2"> | |
<div class="banner"></div> | |
<h2 id="h2">Airbus Supply Chain</h2> | |
</div> | |
<div class="content"> | |
<h2> | |
It will address a global supply chain for Airbus, an aerospace manufacturer which | |
imports parts for aircrafts from different parts of the world. In this demonstrator, we consider suppliers located in | |
the United States (US)</h2> | |
</div> | |
<div class="content"> | |
<div class="leftColumn"> | |
<h1> Actors </h1> | |
<core-item id="core_item11" icon="settings" src="https://cdn3.iconfinder.com/data/icons/black-easy/512/538474-user_512x512.png" label="DHL" horizontal center layout></core-item> | |
<core-item id="core_item11" icon="settings" src="https://cdn3.iconfinder.com/data/icons/black-easy/512/538474-user_512x512.png" label="P&G" horizontal center layout></core-item> | |
<core-item id="core_item11" icon="settings" src="https://cdn3.iconfinder.com/data/icons/black-easy/512/538474-user_512x512.png" label="ZLC" horizontal center layout></core-item> | |
</div> | |
<div class="rightColumn"> | |
<h1> Events </h1> | |
<core-item id="core_item12" src="https://cdn2.iconfinder.com/data/icons/flat-ui-icons-24-px/24/location-24-512.png" label="GPS" horizontal center layout></core-item> | |
<core-item id="core_item13" src="https://cdn1.iconfinder.com/data/icons/healthcare-and-medicine-simplicity/512/time_sheduled-512.png" label="ETA" horizontal center layout></core-item> | |
<core-item id="core_item14" src="http://cdn.flaticon.com/png/256/16789.png" label="Temperature" horizontal center layout></core-item> | |
</div> | |
</div> | |
</div> | |
<div class="card"> | |
<div id="div3" class="card-image image1"> | |
<div class="banner"></div> | |
<h2 id="h2">New supply chain</h2> | |
</div> | |
<div id="div4" class="content"> | |
<paper-input-decorator id="paper_input_decorator" label="Enter description..." floatinglabel layout vertical> | |
<paper-autogrow-textarea> | |
<textarea id="textarea" placeholder="Enter description..."></textarea> | |
</paper-autogrow-textarea> | |
</paper-input-decorator> | |
<div class="leftColumn"> | |
<h1> Actors </h1> | |
<br> | |
<div> | |
<paper-checkbox label="DHL" id="paper_checkbox"></paper-checkbox> | |
</div> | |
<div> | |
<paper-checkbox checked label="P&G" id="paper_checkbox1"></paper-checkbox> | |
</div> | |
<div> | |
<paper-checkbox checked label="ZLC" id="paper_checkbox2"></paper-checkbox> | |
</div> | |
</div> | |
<div class="rightColumn"> | |
<h1> Events </h1> | |
<br> | |
<div> | |
<paper-checkbox checked label="GPS" id="paper_checkbox"></paper-checkbox> | |
</div> | |
<div> | |
<paper-checkbox checked label="ETA" id="paper_checkbox1"></paper-checkbox> | |
</div> | |
<div> | |
<paper-checkbox label="Temperature" id="paper_checkbox2"></paper-checkbox> | |
</div> | |
</div> | |
</div> | |
</div> | |
<paper-fab icon="create" id="paper_fab" class="blue"></paper-fab> | |
</section> | |
</core-scaffold> | |
<script> | |
// custom transformation: scale header's title | |
var titleStyle = document.querySelector('.title').style; | |
addEventListener('core-header-transform', function(e) { | |
var d = e.detail; | |
var m = d.height - d.condensedHeight; | |
var scale = Math.max(0.75, (m - d.y) / (m / 0.25) + 0.75); | |
titleStyle.transform = titleStyle.webkitTransform = | |
'scale(' + scale + ') translateZ(0)'; | |
}); | |
</script> | |
<script> | |
var t = document.querySelector('list-test'); | |
t.data = []; | |
for (i=0; i< 30; i++) { | |
t.data.push({name: 'Bob'}); | |
} | |
</script> | |
</polymer-element | |
<script id="jsbin-source-html" type="text/html"> | |
<script src="http://www.polymer-project.org/platform.js"><\/script> | |
<link rel="import" href="http://www.polymer-project.org/components/polymer/polymer.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-scroll-header-panel/core-scroll-header-panel.html"> | |
<link rel="import" href="https://www.polymer-project.org/components/core-scroll-header-panel/demos/sample-content.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-list/core-list.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-header-panel/core-header-panel.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-toolbar/core-toolbar.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/paper-tabs/paper-tabs.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-icon-button/core-icon-button.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-icon/core-icon.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-item/core-item.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-card/core-card.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-menu/core-submenu.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-scaffold/core-scaffold.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-menu/core-menu.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-icon-button/core-icon-button.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-input/core-input.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-icons/core-icons.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/paper-checkbox/paper-checkbox.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/core-icons/av-icons.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/paper-fab/paper-fab.html"> | |
<link rel="import" href="http://www.polymer-project.org/components/paper-input/paper-input-decorator.html"> | |
<link rel="import" href="https://raw.githubusercontent.com/Polymer/polymer-tutorial/master/post-service/post-service.html"> | |
<style shim-shadowdom> | |
.content { | |
margin: 16px; | |
} | |
.rightColumn, .leftColumn { | |
display: inline-block; | |
width: 49%; | |
vertical-align: top; | |
} | |
.card-image h1, .card-image h2, .card-image h3, .card-image h4, .card-image h5, .card-image h6 { | |
position: absolute; | |
bottom: 0px; | |
width: 100%; | |
color: white; | |
margin: 0px; | |
padding: 6px; | |
border: none; | |
background: rgba(0, 0, 0, 0.65098); | |
} | |
.card { | |
border-width: 1px 1px 3px; | |
border-style: solid; | |
border-color: rgb(170, 170, 170) rgb(170, 170, 170) rgb(187, 187, 187); | |
padding: 0px; | |
margin: 15px; | |
overflow: hidden; | |
background: rgb(255, 255, 255); | |
} | |
.card h1 { | |
margin: 0px; | |
padding: 10px 10px 0px; | |
} | |
.card p { | |
margin: 0px; | |
padding: 10px; | |
} | |
.card-image { | |
width: 100%; | |
height: 200px; | |
padding: 0px; | |
margin: 0px; | |
position: relative; | |
overflow: hidden; | |
background-position: 50% 50%; | |
background-repeat: no-repeat; | |
} | |
.image1 { | |
background-image: url(http://uploads.webflow.com/52d4399e020acdcb61000001/52fd4c1ec5f87e8c21000a0f_Flat-Color-Abstract-City-Background_3.png); | |
} | |
.image2 { | |
background-image: url(http://lawebdelestudiante.es/wp-content/uploads/2013/01/A350Airbus.jpg); | |
} | |
.card-image .banner { | |
height: 50px; | |
width: 50px; | |
top: 0px; | |
right: 0px; | |
position: absolute; | |
background-image: url(https://www.polymer-project.org/tools/designer/components/images/new.png); | |
background-position: 100% 0%; | |
background-repeat: no-repeat; | |
} | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#core_menu { | |
font-size: 16px; | |
left: 330px; | |
top: 210px; | |
position: absolute; | |
} | |
#core_scaffold { | |
position: absolute; | |
top: 0px; | |
right: 0px; | |
bottom: 0px; | |
left: -10px; | |
} | |
#core_header_panel { | |
background-color: rgb(255, 255, 255); | |
} | |
#core_toolbar { | |
color: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#core_menu1 { | |
font-size: 16px; | |
} | |
#core_toolbar1 { | |
right: 0px; | |
left: 0px; | |
color: rgb(255, 255, 255); | |
fill: rgb(255, 255, 255); | |
top: 0px; | |
position: absolute; | |
background-color: rgb(79, 125, 201); | |
} | |
#section { | |
left: 0px; | |
top: 0px; | |
height: 100%; | |
position: absolute; | |
width: 100%; | |
} | |
#core_card { | |
position: absolute; | |
width: 300px; | |
height: 420px; | |
border-top-left-radius: 2px; | |
border-top-right-radius: 2px; | |
border-bottom-right-radius: 2px; | |
border-bottom-left-radius: 2px; | |
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; | |
left: 14px; | |
top: 26px; | |
background-color: rgb(255, 255, 255); | |
} | |
#core_header_panel1 { | |
width: 300px; | |
height: 400px; | |
} | |
#core_toolbar2 { | |
color: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#core_menu2 { | |
font-size: 16px; | |
left: 12px; | |
top: 82px; | |
position: absolute; | |
} | |
#core_icon { | |
left: 672px; | |
top: 20px; | |
position: absolute; | |
} | |
#core_icon1 { | |
left: 16px; | |
top: 10px; | |
position: absolute; | |
width: 32px; | |
height: 32px; | |
} | |
#core_input1 { | |
padding: 15px; | |
left: 44px; | |
top: 5px; | |
position: absolute; | |
width: 160px; | |
height: 20px; | |
} | |
#paper_fab { | |
overflow: visible; | |
left: 694px; | |
top: 960px; | |
position: absolute; | |
} | |
#core_menu_button1 { | |
left: 258px; | |
top: 10px; | |
position: absolute; | |
} | |
#core_item11 { | |
width: 240px; | |
height: 40px; | |
left: 0px; | |
top: 140px; | |
position: static; | |
} | |
#core_menu3 { | |
font-size: 16px; | |
left: 1230px; | |
top: 510px; | |
} | |
#core_icon_button1 { | |
left: 258px; | |
top: 10px; | |
position: absolute; | |
} | |
#core_icon_button { | |
left: 12px; | |
top: 10px; | |
position: absolute; | |
} | |
#input { | |
padding: 15px; | |
} | |
#div4 { | |
font-size: 16px; | |
padding-bottom: 8px; | |
position: static; | |
left: 50px; | |
top: 50px; | |
} | |
#core_icon3 { | |
left: 10px; | |
top: 260px; | |
position: absolute; | |
} | |
#core_card1 { | |
position: absolute; | |
width: 300px; | |
height: 300px; | |
border-top-left-radius: 2px; | |
border-top-right-radius: 2px; | |
border-bottom-right-radius: 2px; | |
border-bottom-left-radius: 2px; | |
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; | |
left: 344px; | |
top: 66px; | |
background-color: rgb(255, 255, 255); | |
} | |
#core_field1 { | |
left: 1120px; | |
top: 560px; | |
} | |
#div1 { | |
left: 82px; | |
top: 20px; | |
position: absolute; | |
} | |
</style> | |
</head> | |
<body unresolved> | |
<core-menu id="core_menu" selected="0"> | |
</core-menu> | |
<core-scaffold id="core_scaffold"> | |
<core-header-panel mode="seamed" id="core_header_panel" navigation flex> | |
<core-toolbar id="core_toolbar"> | |
<core-input id="core_input1">Admin</core-input> | |
<core-icon src="http://www.fao.org/fileadmin/templates/red-icean/img/nouser.png" icon="search" id="core_icon1"></core-icon> | |
</core-toolbar> | |
<core-menu id="core_menu1" selected="Item2" valueattr="label" theme="core-light-theme"> | |
</core-menu> | |
<core-menu id="core_menu2" selected="0" selectedindex="0"> | |
<core-submenu active id="core_submenu" icon="settings" label="Pipelines"> | |
<core-item id="core_item" label="FloraHolland" horizontal center layout active></core-item> | |
<core-item id="core_item1" label="AirBus" horizontal center layout></core-item> | |
</core-submenu> | |
<core-submenu id="core_submenu1" icon="settings" label="Participants"> | |
<core-item id="core_item2" label="Road Carrier" horizontal center layout></core-item> | |
<core-item id="core_item3" label="Customs" horizontal center layout></core-item> | |
<core-item id="core_item4" label="Freight Forwarder" horizontal center layout active>r</core-item> | |
</core-submenu> | |
</core-menu> | |
</core-header-panel> | |
<div id="div" tool>Pipe Lines</div> | |
<core-toolbar id="core_toolbar1"> | |
<core-icon icon="search" id="core_icon"></core-icon> | |
<core-icon-button icon="menu" id="core_icon_button"></core-icon-button> | |
<div id="div1" flex>Pipe Lines</div> | |
</core-toolbar> | |
<section id="section"> | |
<div class="card"> | |
<div id="div3" class="card-image image2"> | |
<div class="banner"></div> | |
<h2 id="h2">Airbus Supply Chain</h2> | |
</div> | |
<div class="content"> | |
<h2> | |
It will address a global supply chain for Airbus, an aerospace manufacturer which | |
imports parts for aircrafts from different parts of the world. In this demonstrator, we consider suppliers located in | |
the United States (US)</h2> | |
</div> | |
<div class="content"> | |
<div class="leftColumn"> | |
<h1> Actors </h1> | |
<core-item id="core_item11" icon="settings" src="https://cdn3.iconfinder.com/data/icons/black-easy/512/538474-user_512x512.png" label="DHL" horizontal center layout></core-item> | |
<core-item id="core_item11" icon="settings" src="https://cdn3.iconfinder.com/data/icons/black-easy/512/538474-user_512x512.png" label="P&G" horizontal center layout></core-item> | |
<core-item id="core_item11" icon="settings" src="https://cdn3.iconfinder.com/data/icons/black-easy/512/538474-user_512x512.png" label="ZLC" horizontal center layout></core-item> | |
</div> | |
<div class="rightColumn"> | |
<h1> Events </h1> | |
<core-item id="core_item12" src="https://cdn2.iconfinder.com/data/icons/flat-ui-icons-24-px/24/location-24-512.png" label="GPS" horizontal center layout></core-item> | |
<core-item id="core_item13" src="https://cdn1.iconfinder.com/data/icons/healthcare-and-medicine-simplicity/512/time_sheduled-512.png" label="ETA" horizontal center layout></core-item> | |
<core-item id="core_item14" src="http://cdn.flaticon.com/png/256/16789.png" label="Temperature" horizontal center layout></core-item> | |
</div> | |
</div> | |
</div> | |
<div class="card"> | |
<div id="div3" class="card-image image1"> | |
<div class="banner"></div> | |
<h2 id="h2">New supply chain</h2> | |
</div> | |
<div id="div4" class="content"> | |
<paper-input-decorator id="paper_input_decorator" label="Enter description..." floatinglabel layout vertical> | |
<paper-autogrow-textarea> | |
<textarea id="textarea" placeholder="Enter description..."></textarea> | |
</paper-autogrow-textarea> | |
</paper-input-decorator> | |
<div class="leftColumn"> | |
<h1> Actors </h1> | |
<br> | |
<div> | |
<paper-checkbox label="DHL" id="paper_checkbox"></paper-checkbox> | |
</div> | |
<div> | |
<paper-checkbox checked label="P&G" id="paper_checkbox1"></paper-checkbox> | |
</div> | |
<div> | |
<paper-checkbox checked label="ZLC" id="paper_checkbox2"></paper-checkbox> | |
</div> | |
</div> | |
<div class="rightColumn"> | |
<h1> Events </h1> | |
<br> | |
<div> | |
<paper-checkbox checked label="GPS" id="paper_checkbox"></paper-checkbox> | |
</div> | |
<div> | |
<paper-checkbox checked label="ETA" id="paper_checkbox1"></paper-checkbox> | |
</div> | |
<div> | |
<paper-checkbox label="Temperature" id="paper_checkbox2"></paper-checkbox> | |
</div> | |
</div> | |
</div> | |
</div> | |
<paper-fab icon="create" id="paper_fab" class="blue"></paper-fab> | |
</section> | |
</core-scaffold> | |
<script> | |
// custom transformation: scale header's title | |
var titleStyle = document.querySelector('.title').style; | |
addEventListener('core-header-transform', function(e) { | |
var d = e.detail; | |
var m = d.height - d.condensedHeight; | |
var scale = Math.max(0.75, (m - d.y) / (m / 0.25) + 0.75); | |
titleStyle.transform = titleStyle.webkitTransform = | |
'scale(' + scale + ') translateZ(0)'; | |
}); | |
<\/script> | |
<script> | |
var t = document.querySelector('list-test'); | |
t.data = []; | |
for (i=0; i< 30; i++) { | |
t.data.push({name: 'Bob'}); | |
} | |
<\/script> | |
</polymer-element | |
</body> | |
</html> | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment