Last active
August 29, 2015 14:14
-
-
Save globalepub/2adc70f315e78b23f3e9 to your computer and use it in GitHub Desktop.
designer
This file contains hidden or 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="../google-map/google-map-search.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../cool-clock/cool-clock.html"> | |
<link rel="import" href="../core-tooltip/core-tooltip.html"> | |
<link rel="import" href="../google-map/google-map-directions.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<link rel="import" href="../core-field/core-field.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.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_scaffold { | |
position: absolute; | |
top: 0px; | |
right: 0px; | |
bottom: 0px; | |
left: 0px; | |
width: 100%; | |
height: 100%; | |
} | |
#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; | |
} | |
#cool_clock { | |
width: 100px; | |
height: 50px; | |
left: 60px; | |
top: 430px; | |
position: absolute; | |
} | |
#cool_clock1 { | |
width: 200px; | |
height: 100px; | |
left: 30px; | |
top: 380px; | |
position: absolute; | |
} | |
#google_map { | |
width: 100%; | |
height: 100%; | |
display: block; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
} | |
#google_map_search { | |
left: 138px; | |
top: -10px; | |
position: absolute; | |
} | |
#input { | |
padding: 10px; | |
left: 5px; | |
top: 0px; | |
position: absolute; | |
margin: 10px; | |
width: 80%; | |
background-color: rgb(255, 255, 255); | |
} | |
#core_selector { | |
width: 100%; | |
height: 50px; | |
left: 110px; | |
top: 390px; | |
position: absolute; | |
} | |
#paper_tab { | |
width: 120px; | |
height: 40px; | |
left: 690px; | |
top: 320px; | |
position: absolute; | |
} | |
#inputs { | |
opacity: 0.8; | |
position: absolute; | |
left: 25px; | |
top: 25px; | |
z-index: 100; | |
border: 50px; | |
width: 200px; | |
height: 70px; | |
background-color: rgb(255, 255, 255); | |
} | |
#core_field1 { | |
border: 3px; | |
} | |
#core_field { | |
border: 3px; | |
background-color: rgb(255, 255, 255); | |
} | |
#core_selector1 { | |
left: 25px; | |
top: 100px; | |
position: absolute; | |
border: 12px; | |
margin: 5px; | |
background: rgb(206, 206, 206); | |
} | |
#core_item8 { | |
padding: 3px; | |
cursor: pointer !important; | |
} | |
#core_item9 { | |
padding: 10px; | |
cursor: pointer !important; | |
} | |
#core_item7 { | |
padding: 3px; | |
cursor: pointer !important; | |
} | |
#core_tooltip { | |
left: 70px; | |
top: 380px; | |
position: absolute; | |
} | |
</style> | |
<core-scaffold id="core_scaffold"> | |
<core-header-panel mode="seamed" id="core_header_panel" navigation flex> | |
<core-toolbar id="core_toolbar"> | |
<google-map-search id="google_map_search"></google-map-search> | |
<input committedvalue="Lomé, Togo" id="input" value="Lomé, Togo" placeholder="Recherche" is="core-input"> | |
</core-toolbar> | |
<core-menu selected="Restaurant | Bar" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme"> | |
<core-item id="core_item" icon="store" on-tap="{{ RestoBar }}" label="Restaurant | Bar" horizontal center layout active></core-item> | |
<core-item id="core_item1" icon="shop-two" label="Supermarché | Boutique" horizontal center layout></core-item> | |
<core-item id="core_item2" icon="perm-media" label="Night Club | Beach" horizontal center layout></core-item> | |
<core-item id="core_item3" icon="cloud" label="Clinique | Pharmacie" horizontal center layout></core-item> | |
<core-item id="core_item4" icon="work" label="PME" horizontal center layout></core-item> | |
<core-item id="core_item5" icon="view-agenda" label="Evénement | Concert" horizontal center layout></core-item> | |
<core-item id="core_item6" icon="settings-phone" on-tap="{{ OpTelecom }}" label="Opérateur Telecom" horizontal center layout active></core-item> | |
</core-menu> | |
<cool-clock id="cool_clock"></cool-clock> | |
<core-selector selected="0" id="core_selector"></core-selector> | |
<core-tooltip label="111, 117, 118, 1236, 1237, 1238, 1239" noarrow id="core_tooltip"> | |
<span id="span">Numéro utile</span> | |
</core-tooltip> | |
</core-header-panel> | |
<div id="div" tool>228Show | LOME - Le Togo en clics !</div> | |
<google-map-directions map="{{ map }}" startaddress="{{ start }}" endaddress="{{ end }}" travelmode="{{ travelMode.label }}" id="google_map_directions"> | |
</google-map-directions> | |
<core-selector selecteditem="{{ travelMode }}" id="core_selector2"> | |
</core-selector> | |
<paper-tab id="paper_tab" inline flex center-center horizontal layout>TAB</paper-tab> | |
<div id="inputs" vertical layout> | |
<core-field id="{{ $.google_map_search.start }}" center horizontal layout> | |
<core-icon icon="icons:search" id="core_icon1"></core-icon> | |
<input committedvalue="Dapaon" id="input1" value="{{ $.input.start }}" placeholder="Adresse du début" is="core-input"> | |
</core-field> | |
<core-field id="{{ $.google_map_search.end }}" center horizontal layout> | |
<core-icon icon="icons:search" id="core_icon2"></core-icon> | |
<input committedvalue="Lome" id="input2" value="{{ $.input.end }}" placeholder="Adresse de fin" is="core-input"> | |
</core-field> | |
</div> | |
<google-map latitude="6.1356366" longitude="1.2184307" zoom="15" id="google_map"></google-map> | |
<core-selector selected="2" selectedindex="2" itemsselector="{{ $.google_map_directions.map }}" id="core_selector1" layout horizontal> | |
<core-item id="core_item8" icon="maps:directions-car" label="En voiture" horizontal center layout></core-item> | |
<core-item id="core_item9" icon="maps:directions-walk" label="A pied" horizontal center layout></core-item> | |
<core-item id="core_item7" icon="maps:directions-bike" label="A moto" horizontal center layout active></core-item> | |
</core-selector> | |
</core-scaffold> | |
</template> | |
<script> | |
Polymer({ | |
RestoBar: function (){ | |
this.$.google_map.mapType = "roadmap"; | |
}, | |
}); | |
</script> | |
</polymer-element> |
This file contains hidden or 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="../google-map/google-map-search.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../cool-clock/cool-clock.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_scaffold { | |
position: absolute; | |
top: 0px; | |
right: 0px; | |
bottom: 0px; | |
left: 0px; | |
width: 100%; | |
height: 100%; | |
} | |
#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; | |
} | |
#cool_clock { | |
width: 100px; | |
height: 50px; | |
left: 60px; | |
top: 430px; | |
position: absolute; | |
} | |
#cool_clock1 { | |
width: 200px; | |
height: 100px; | |
left: 30px; | |
top: 380px; | |
position: absolute; | |
} | |
#google_map { | |
width: 100%; | |
height: 100%; | |
display: block; | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
} | |
#google_map_search { | |
left: 138px; | |
top: -10px; | |
position: absolute; | |
} | |
#input { | |
padding: 10px; | |
left: 5px; | |
top: 0px; | |
position: absolute; | |
margin: 10px; | |
width: 80%; | |
background-color: rgb(255, 255, 255); | |
} | |
#core_selector { | |
width: 100%; | |
height: 50px; | |
left: 110px; | |
top: 390px; | |
position: absolute; | |
} | |
</style> | |
<core-scaffold id="core_scaffold"> | |
<core-header-panel mode="seamed" id="core_header_panel" navigation flex> | |
<core-toolbar id="core_toolbar"> | |
<google-map-search id="google_map_search"></google-map-search> | |
<input id="input" placeholder="Recherche" is="core-input"> | |
</core-toolbar> | |
<core-menu selected="Restaurant | Bar" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme"> | |
<core-item id="core_item" icon="store" on-tap="{{ RestoBar }}" label="Restaurant | Bar" horizontal center layout active></core-item> | |
<core-item id="core_item1" icon="shop" label="Supermarché | Boutique" horizontal center layout active></core-item> | |
<core-item id="core_item2" icon="perm-media" label="Night Club | Beach" horizontal center layout></core-item> | |
<core-item id="core_item3" icon="cloud" label="Clinique | Pharmacie" horizontal center layout></core-item> | |
<core-item id="core_item4" icon="work" label="PME" horizontal center layout active></core-item> | |
<core-item id="core_item5" icon="view-agenda" label="Evénement | Concert" horizontal center layout active></core-item> | |
<core-item id="core_item6" icon="settings-phone" label="Numéro utile" horizontal center layout active></core-item> | |
</core-menu> | |
<cool-clock id="cool_clock"></cool-clock> | |
<core-selector selected="0" id="core_selector"></core-selector> | |
</core-header-panel> | |
<div id="div" tool>228Show - Le Togo en clics !</div> | |
<google-map zoom="9" showcentermarker id="google_map"></google-map> | |
</core-scaffold> | |
</template> | |
<script> | |
Polymer({ | |
RestoBar: function (){ | |
this.$.google_map.mapType = ""; | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment