Created
July 19, 2014 20:35
-
-
Save ther0y/79a0ed1d7c1f7476d030 to your computer and use it in GitHub Desktop.
designer
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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../google-map/google-map.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#core_header_panel1 { | |
width: 100%; | |
height: 100%; | |
} | |
#core_toolbar1 { | |
color: rgb(255, 255, 255); | |
background-color: rgb(0, 145, 234); | |
} | |
#section1 { | |
height: 100%; | |
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230)); | |
} | |
#core_toolbar { | |
right: 0px; | |
left: 1220px; | |
color: rgb(255, 255, 255); | |
fill: rgb(255, 255, 255); | |
top: 590px; | |
background-color: rgb(79, 125, 201); | |
} | |
#core_drawer_panel { | |
right: 0px; | |
bottom: 0px; | |
} | |
#section { | |
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; | |
background-color: rgb(1, 87, 155); | |
} | |
#section2 { | |
height: 100%; | |
box-sizing: border-box; | |
background-color: rgb(221, 221, 221); | |
} | |
#google_map1 { | |
width: 100%; | |
height: 100%; | |
display: block; | |
} | |
#google_map2 { | |
width: 400px; | |
height: 400px; | |
display: block; | |
left: 1210px; | |
top: 500px; | |
} | |
#core_menu { | |
font-size: 16px; | |
} | |
#core_menu1 { | |
font-size: 16px; | |
left: 1180px; | |
top: 430px; | |
} | |
</style> | |
<section id="section1" one flex> | |
<core-toolbar id="core_toolbar1"> | |
<core-icon-button icon="menu" id="core_icon_button1" on-click="{{ mnuClicked }}"></core-icon-button> | |
<span flex></span> | |
<div id="div1">Shahreman</div> | |
<span flex></span> | |
</core-toolbar> | |
<core-header-panel mode="standard" id="core_header_panel1"> | |
<core-drawer-panel selected="main" id="core_drawer_panel"> | |
<section id="section" drawer> | |
<core-menu selected="0" selectedindex="0" id="core_menu"> | |
<core-submenu active label="Topics" icon="expand-more" valueattr="name" id="core_submenu"> | |
<core-item label="Topic 1" size="24" id="core_item" horizontal center layout></core-item> | |
<core-item label="Topic 2" size="24" id="core_item1" horizontal center layout></core-item> | |
</core-submenu> | |
<core-submenu label="Favorites" icon="expand-more" valueattr="name" id="core_submenu1"> | |
<core-item label="Favorite 1" size="24" id="core_item2" horizontal center layout></core-item> | |
<core-item label="Favorite 2" size="24" id="core_item3" horizontal center layout></core-item> | |
<core-item label="Favorite 3" size="24" id="core_item4" horizontal center layout></core-item> | |
</core-submenu> | |
</core-menu> | |
</section> | |
<section id="section2" main> | |
<google-map apikey="AIzaSyDsI_DVe-9j2TfUeCo4kahFSRLtmIQGECo" latitude="36.56332" longitude="53.06009" zoom="13" disabledefaultui fittomarkers id="google_map1"></google-map> | |
</section> | |
</core-drawer-panel> | |
</core-header-panel> | |
</section> | |
</template> | |
<script> | |
Polymer('my-element', { | |
mnuClicked: function (e,d,s){alert(s)} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment