Advertisement
Guest User

Untitled

a guest
May 29th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1. <link rel="import" href="../core-scaffold/core-scaffold.html">
  2. <link rel="import" href="../core-header-panel/core-header-panel.html">
  3. <link rel="import" href="../core-menu/core-menu.html">
  4. <link rel="import" href="../core-item/core-item.html">
  5. <link rel="import" href="../core-icon-button/core-icon-button.html">
  6. <link rel="import" href="../core-toolbar/core-toolbar.html">
  7. <link rel="import" href="../core-input/core-input.html">
  8. <link rel="import" href="../core-menu/core-submenu.html">
  9. <link rel="import" href="../google-map/google-map.html">
  10. <link rel="import" href="../google-map/google-map-search.html">
  11. <link rel="import" href="../google-map/google-map-marker.html">
  12.  
  13. <polymer-element name="my-element">
  14.  
  15. <template>
  16. <style>
  17. :host {
  18. position: absolute;
  19. width: 100%;
  20. height: 100%;
  21. box-sizing: border-box;
  22. }
  23. #section {
  24. box-sizing: border-box;
  25. width: 420px;
  26. height: 582px;
  27. left: 180px;
  28. top: 60px;
  29. position: absolute;
  30. }
  31. #section1 {
  32. background-color: rgb(255, 255, 141);
  33. }
  34. #div {
  35. box-sizing: border-box;
  36. height: 80px;
  37. padding: 24px;
  38. color: rgb(255, 255, 255);
  39. font-size: 32px;
  40. position: static;
  41. background-color: rgb(7, 92, 120);
  42. }
  43. #div2 {
  44. position: absolute;
  45. color: rgb(255, 255, 255);
  46. bottom: 50px;
  47. right: 24px;
  48. }
  49. #paper_fab {
  50. background-color: rgb(255, 64, 129);
  51. }
  52. #core_scaffold {
  53. position: absolute;
  54. top: 0px;
  55. right: 0px;
  56. bottom: 0px;
  57. left: 0px;
  58. width: 100%;
  59. height: 100%;
  60. }
  61. #core_header_panel {
  62. background-color: rgb(255, 255, 255);
  63. }
  64. #core_toolbar {
  65. color: rgb(255, 255, 255);
  66. background-color: rgb(79, 125, 201);
  67. }
  68. #core_menu {
  69. font-size: 16px;
  70. }
  71. #cool_clock {
  72. width: 400px;
  73. height: 300px;
  74. left: 400px;
  75. top: 220px;
  76. position: absolute;
  77. }
  78. #yt_search_video {
  79. width: 300px;
  80. height: 300px;
  81. left: 128px;
  82. top: 20px;
  83. position: absolute;
  84. }
  85. #google_map {
  86. width: 100%;
  87. height: 100%;
  88. display: block;
  89. left: 0px;
  90. top: 0px;
  91. position: absolute;
  92. }
  93. #google_map_search {
  94. left: 660px;
  95. top: 390px;
  96. position: absolute;
  97. }
  98. #input {
  99. padding: 15px;
  100. left: 10px;
  101. top: 8px;
  102. position: absolute;
  103. width: 200px;
  104. background-color: rgb(255, 255, 255);
  105. }
  106. </style>
  107. <core-scaffold id="core_scaffold">
  108. <core-header-panel mode="standard" id="core_header_panel" navigation flex>
  109. <core-toolbar id="core_toolbar">
  110. <input id="input" placeholder="type something..." is="core-input">
  111. </core-toolbar>
  112. <core-menu selected="Item1" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
  113. <core-item id="core_item" icon="settings" label="Item1" horizontal center layout active></core-item>
  114. <core-item id="core_item1" icon="settings" label="Item2" horizontal center layout></core-item>
  115. </core-menu>
  116. </core-header-panel>
  117. <div id="div" tool horizontal layout>Hello World</div>
  118. <google-map latitude="{{ $.google_map_search.result.latitude }}" longitude="{{ $.google_map_search.result.longitude }}" id="google_map">
  119. <google-map-marker lat="37.78" lgn="-122.41" title="SF Giants" draggable="true"></google-map-marker>
  120. </google-map>
  121. <google-map-search map="{{ $.google_map.map }}" query="{{ $.input.value }}" id="google_map_search"></google-map-search>
  122. </core-scaffold>
  123. </template>
  124.  
  125. <script>
  126.  
  127. Polymer({
  128.  
  129. });
  130.  
  131. </script>
  132.  
  133. </polymer-element>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement