Last active
August 29, 2015 14:18
-
-
Save alexlevy0/30ce604c955be212df7b 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-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-field/core-field.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../speech-mic/speech-mic.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../google-map/google-map.html"> | |
<link rel="import" href="../google-map/google-map-search.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#core_scaffold { | |
top: 0px; | |
right: 0px; | |
bottom: 0px; | |
left: 0px; | |
position: absolute; | |
} | |
#core_header_panel { | |
background-color: rgb(255, 255, 255); | |
} | |
#core_toolbar { | |
color: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#core_menu { | |
font-size: 16px; | |
} | |
#core_menu_button { | |
left: 1810px; | |
top: 470px; | |
} | |
#core_item2 { | |
left: 1790px; | |
top: 390px; | |
} | |
#core_toolbar1 { | |
right: 0px; | |
left: 1660px; | |
color: rgb(255, 255, 255); | |
fill: rgb(255, 255, 255); | |
top: 430px; | |
background-color: rgb(79, 125, 201); | |
} | |
#core_icon_button { | |
left: 1620px; | |
top: 730px; | |
} | |
#core_menu1 { | |
font-size: 16px; | |
left: 1600px; | |
top: 450px; | |
} | |
#core_pages { | |
width: 400px; | |
height: 400px; | |
border: 1px solid silver; | |
left: 1650px; | |
top: 540px; | |
} | |
#ace_element { | |
width: 400px; | |
height: 300px; | |
left: 1620px; | |
top: 300px; | |
} | |
#code_mirror { | |
width: 400px; | |
height: 300px; | |
left: 1640px; | |
top: 370px; | |
} | |
#cool_clock { | |
width: 400px; | |
height: 300px; | |
left: 1570px; | |
top: 420px; | |
} | |
#google_map { | |
width: 100%; | |
height: 100%; | |
display: block; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
} | |
#input1 { | |
padding: 15px; | |
left: 1710px; | |
top: 750px; | |
} | |
#core_scroll_header_panel { | |
width: 380px; | |
height: 460px; | |
left: 1670px; | |
top: 560px; | |
} | |
#core_submenu { | |
left: 1710px; | |
top: 730px; | |
} | |
#core_tooltip { | |
left: 1650px; | |
top: 770px; | |
} | |
#speech_mic { | |
left: 202px; | |
top: 14px; | |
position: absolute; | |
width: 40px; | |
height: 40px; | |
} | |
#yt_search_video { | |
width: 300px; | |
height: 300px; | |
left: 1620px; | |
top: 670px; | |
} | |
#google_map_search1 { | |
left: 1150px; | |
top: 10px; | |
position: absolute; | |
} | |
#google_map_directions { | |
left: 1640px; | |
top: 550px; | |
} | |
#google_map1 { | |
width: 400px; | |
height: 400px; | |
display: block; | |
left: 1660px; | |
top: 470px; | |
} | |
#paper_fab { | |
left: 1590px; | |
top: 630px; | |
} | |
#div1 { | |
left: 1610px; | |
top: 580px; | |
} | |
#paper_icon_button { | |
left: 1730px; | |
top: 590px; | |
} | |
#core_field { | |
left: 10px; | |
top: 12px; | |
position: absolute; | |
width: 230px; | |
height: 40px; | |
background-color: rgb(252, 252, 252); | |
} | |
#core_icon { | |
width: 30px; | |
height: 30px; | |
} | |
#input { | |
padding: 15px; | |
} | |
</style> | |
<core-scaffold id="core_scaffold"> | |
<core-header-panel mode="seamed" id="core_header_panel" navigation flex> | |
<core-toolbar id="core_toolbar"> | |
<core-field id="core_field" icon="search" theme="core-light-theme" horizontal layout center> | |
<core-icon icon="search" id="core_icon"></core-icon> | |
<input id="input" value="{{ $.speech_mic.transcript }}" placeholder="type something..." is="core-input"> | |
</core-field> | |
<speech-mic language="fr-FR" id="speech_mic"></speech-mic> | |
</core-toolbar> | |
<core-menu selected="Roadmap" valueattr="label" selectedindex="5" id="core_menu" theme="core-light-theme"> | |
<core-item id="profil" icon="settings" label="Profil" horizontal center layout></core-item> | |
<core-item id="magasin" icon="settings" label="Magasin" horizontal center layout></core-item> | |
<core-item id="panier" icon="settings" label="Panier" horizontal center layout active></core-item> | |
<core-item id="parametre" icon="settings" label="Parametre" horizontal center layout></core-item> | |
<core-item id="condition" icon="settings" label="CGV / CGU" horizontal center layout></core-item> | |
<core-item id="roadmap" on-tap="{{ showRoad }}" icon="settings" label="Roadmap" horizontal center layout active></core-item> | |
<core-item id="satellite" on-tap="{{ showSat }}" icon="settings" label="Satellite" horizontal center layout></core-item> | |
</core-menu> | |
</core-header-panel> | |
<div id="div" tool>Top Apéro</div> | |
<google-map latitude="{{ $.google_map_search.result.latitude }}" longitude="{{ $.google_map_search.result.longitude }}" zoom="13" disabledefaultui signedin id="google_map"></google-map> | |
<google-map-search map="{{ $.google_map.map }}" query="{{ $.input.value }}" id="google_map_search"></google-map-search> | |
</core-scaffold> | |
</template> | |
<script> | |
Polymer({ | |
showRoad: function () { | |
this.$.google_map.mapType = 'roadmap'; | |
}, | |
showSat: function () { | |
this.$.google_map.mapType = 'satellite'; | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment