Last active
November 9, 2015 10:56
-
-
Save hjroh0315/b695a246326330377205 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-ajax/core-ajax.html"> | |
<link rel="import" href="../google-map/google-map-search.html"> | |
<link rel="import" href="../google-map/google-map-directions.html"> | |
<link rel="import" href="../paper-input/paper-input.html"> | |
<link rel="import" href="../speech-mic/speech-mic.html"> | |
<link rel="import" href="../paper-radio-group/paper-radio-group.html"> | |
<link rel="import" href="../paper-radio-button/paper-radio-button.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_ajax { | |
left: 1150px; | |
top: 420px; | |
position: absolute; | |
} | |
#google_map_directions { | |
left: 1310px; | |
top: 640px; | |
position: absolute; | |
} | |
#paper_input { | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
} | |
#google_map { | |
width: 1920px; | |
height: 760px; | |
display: block; | |
left: -90px; | |
top: 80px; | |
position: absolute; | |
} | |
#google_map_search1 { | |
left: 1170px; | |
top: 0px; | |
position: absolute; | |
} | |
#speech_mic { | |
left: 1880px; | |
top: 0px; | |
position: absolute; | |
} | |
#paper_input1 { | |
left: 0px; | |
top: 40px; | |
position: absolute; | |
width: 840px; | |
height: 40px; | |
} | |
#paper_input2 { | |
left: 840px; | |
top: 40px; | |
position: absolute; | |
width: 990px; | |
height: 40px; | |
} | |
#paper_item { | |
left: 1610px; | |
top: 640px; | |
} | |
#paper_toggle_button { | |
left: 1720px; | |
top: 730px; | |
} | |
#paper_tabs { | |
width: 480px; | |
color: rgb(255, 255, 255); | |
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px; | |
left: 1620px; | |
top: 700px; | |
background-color: rgb(0, 188, 212); | |
} | |
#paper_radio_group { | |
left: 0px; | |
top: 840px; | |
position: absolute; | |
} | |
</style> | |
<core-ajax handleas="json" method="GET" id="core_ajax" hidden></core-ajax> | |
<google-map-search map="{{ $.google_map.map }}" query="{{ $.paper_input.value }}" id="google_map_search"></google-map-search> | |
<google-map-directions map="{{ $.google_map.map }}" startaddress="{{ $.paper_input1.value }}" endaddress="{{ $.paper_input2.value }}" travelmode="{{ $.paper_radio_group.selected }}" id="google_map_directions">Hello</google-map-directions> | |
<paper-input label="Type something..." value="{{ $.speech_mic.transcript }}" committedvalue="Eiffel tower" id="paper_input">{{ $.speech_mic.transcript }}</paper-input> | |
<paper-input label="Start" id="paper_input1"></paper-input> | |
<speech-mic id="speech_mic"></speech-mic> | |
<paper-input label="End" id="paper_input2"></paper-input> | |
<div id="inputs"> | |
</div> | |
<paper-radio-group selected="DRIVING" valueattr="label" selectedindex="0" id="paper_radio_group"> | |
<paper-radio-button checked label="DRIVING" id="paper_radio_button"></paper-radio-button> | |
<paper-radio-button label="WALKING" id="paper_radio_button"></paper-radio-button> | |
<paper-radio-button label="BICYCLING" id="paper_radio_button"></paper-radio-button> | |
<paper-radio-button label="TRANSIT" id="paper_radio_button"></paper-radio-button> | |
</paper-radio-group> | |
<google-map latitude="{{ $.google_map_search.result.latitude }}" longitude="{{ $.google_map_search.result.longitude }}" zoom="19" maptype="hybrid" signedin id="google_map"></google-map> | |
</template> | |
<script> | |
Polymer({ | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment