Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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-input/core-input.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">
- <link rel="import" href="../google-map/google-map-marker.html">
- <polymer-element name="my-element">
- <template>
- <style>
- :host {
- position: absolute;
- width: 100%;
- height: 100%;
- box-sizing: border-box;
- }
- #section {
- box-sizing: border-box;
- width: 420px;
- height: 582px;
- left: 180px;
- top: 60px;
- position: absolute;
- }
- #section1 {
- background-color: rgb(255, 255, 141);
- }
- #div {
- box-sizing: border-box;
- height: 80px;
- padding: 24px;
- color: rgb(255, 255, 255);
- font-size: 32px;
- position: static;
- background-color: rgb(7, 92, 120);
- }
- #div2 {
- position: absolute;
- color: rgb(255, 255, 255);
- bottom: 50px;
- right: 24px;
- }
- #paper_fab {
- background-color: rgb(255, 64, 129);
- }
- #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: 400px;
- height: 300px;
- left: 400px;
- top: 220px;
- position: absolute;
- }
- #yt_search_video {
- width: 300px;
- height: 300px;
- left: 128px;
- top: 20px;
- position: absolute;
- }
- #google_map {
- width: 100%;
- height: 100%;
- display: block;
- left: 0px;
- top: 0px;
- position: absolute;
- }
- #google_map_search {
- left: 660px;
- top: 390px;
- position: absolute;
- }
- #input {
- padding: 15px;
- left: 10px;
- top: 8px;
- position: absolute;
- width: 200px;
- background-color: rgb(255, 255, 255);
- }
- </style>
- <core-scaffold id="core_scaffold">
- <core-header-panel mode="standard" id="core_header_panel" navigation flex>
- <core-toolbar id="core_toolbar">
- <input id="input" placeholder="type something..." is="core-input">
- </core-toolbar>
- <core-menu selected="Item1" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
- <core-item id="core_item" icon="settings" label="Item1" horizontal center layout active></core-item>
- <core-item id="core_item1" icon="settings" label="Item2" horizontal center layout></core-item>
- </core-menu>
- </core-header-panel>
- <div id="div" tool horizontal layout>Hello World</div>
- <google-map latitude="{{ $.google_map_search.result.latitude }}" longitude="{{ $.google_map_search.result.longitude }}" id="google_map">
- <google-map-marker lat="37.78" lgn="-122.41" title="SF Giants" draggable="true"></google-map-marker>
- </google-map>
- <google-map-search map="{{ $.google_map.map }}" query="{{ $.input.value }}" id="google_map_search"></google-map-search>
- </core-scaffold>
- </template>
- <script>
- Polymer({
- });
- </script>
- </polymer-element>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement