Skip to content

Instantly share code, notes, and snippets.

@dsalychev
Last active August 29, 2015 14:24
Show Gist options
  • Save dsalychev/01e44c326a534b0308c4 to your computer and use it in GitHub Desktop.
Save dsalychev/01e44c326a534b0308c4 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<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-menu/core-submenu.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
top: 0px;
left: 0px;
}
#core_scaffold {
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
border: rgb(55, 7, 7);
position: absolute;
width: 100%;
height: 100%;
background-color: rgb(55, 7, 7);
}
#core_header_panel {
background-color: rgb(255, 255, 255);
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(72, 119, 178);
}
#core_menu {
font-size: 16px;
}
#paper_toast {
left: 0px;
top: 0px;
position: absolute;
}
#paper_toast1 {
left: 0px;
top: 0px;
position: absolute;
}
#paper_toast2 {
left: 0px;
top: 0px;
position: absolute;
}
#cool_clock {
width: 400px;
height: 300px;
left: 0px;
top: 0px;
position: absolute;
}
#notification_alert {
left: 450px;
top: 180px;
position: absolute;
}
#core_ajax {
left: 0px;
top: 0px;
position: absolute;
}
#core_card {
width: 300px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
height: 300px;
margin: 5px;
background-color: rgb(255, 255, 255);
}
#core_card1 {
width: 600px;
height: 300px;
border-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
margin: 5px;
background-color: rgb(255, 255, 255);
}
#div1 {
margin: 0px;
}
#core_icon_button {
left: 1610px;
top: 670px;
}
</style>
<core-scaffold id="core_scaffold" layout horizontal>
<core-header-panel mode="seamed" id="core_header_panel" navigation flex>
<core-toolbar id="core_toolbar">
</core-toolbar>
<core-menu selected="Roadmap" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
<core-item id="core_item" icon="settings" label="Roadmap" on-tap="{{ showRoad }}" horizontal center layout active></core-item>
<core-item id="core_item1" icon="settings" label="Satellite" on-tap="{{ showSat }}" horizontal center layout></core-item>
</core-menu>
</core-header-panel>
<div id="div" tool>GadgetKeeper Client Map</div>
<div id="div1" layout horizontal center-justified>
<core-card id="core_card" layout vertical>
<paper-button id="getThingsButton" on-tap="{{ getThings }}">Get Things</paper-button>
</core-card>
<core-card id="core_card1" layout vertical>xcvfxf</core-card>
</div>
</core-scaffold>
</template>
<script>
Polymer({
showRoad: function () {
this.$.google_map.mapType = 'roadmap';
},
showSat: function () {
this.$.google_map.mapType = 'satellite';
},
getThings: function () {
this.$.core_card1.textContent = 'Just a test';
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment