Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.89 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-field/core-field.html">
  8. <link rel="import" href="../core-icon/core-icon.html">
  9. <link rel="import" href="../core-input/core-input.html">
  10. <link rel="import" href="../core-icons/core-icons.html">
  11. <link rel="import" href="../speech-mic/speech-mic.html">
  12. <link rel="import" href="../core-menu/core-submenu.html">
  13. <link rel="import" href="../core-animated-pages/core-animated-pages.html">
  14. <link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
  15. <link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
  16. <link rel="import" href="../core-animated-pages/transitions/slide-down.html">
  17. <link rel="import" href="../core-animated-pages/transitions/slide-up.html">
  18. <link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
  19. <link rel="import" href="../paper-input/paper-input.html">
  20. <link rel="import" href="../topeka-elements/category-icons.html">
  21.  
  22. <polymer-element name="my-element">
  23.  
  24. <template>
  25. <style>
  26. :host {
  27. position: absolute;
  28. width: 100%;
  29. height: 100%;
  30. box-sizing: border-box;
  31. }
  32. #svg {
  33. pointer-events: none;
  34. width: 24px;
  35. height: 24px;
  36. vertical-align: middle;
  37. }
  38. #core_scaffold {
  39. top: 0px;
  40. right: 0px;
  41. bottom: 0px;
  42. left: 0px;
  43. position: absolute;
  44. width: 100%;
  45. height: 100%;
  46. }
  47. #core_header_panel {
  48. background-color: rgb(255, 255, 255);
  49. }
  50. #core_toolbar {
  51. color: rgb(255, 255, 255);
  52. background-color: rgb(79, 125, 201);
  53. }
  54. #core_menu {
  55. font-size: 16px;
  56. }
  57. #core_animated_pages {
  58. width: 420px;
  59. height: 582px;
  60. overflow: hidden;
  61. left: 670px;
  62. top: 360px;
  63. position: absolute;
  64. background-color: rgb(238, 238, 238);
  65. }
  66. #core_field {
  67. left: 78px;
  68. top: 10px;
  69. position: absolute;
  70. background-color: rgb(255, 255, 255);
  71. }
  72. #paper_input {
  73. left: 310px;
  74. top: 160px;
  75. position: absolute;
  76. }
  77. #section3 {
  78. box-sizing: border-box;
  79. width: 420px;
  80. height: 582px;
  81. left: 870px;
  82. top: 200px;
  83. position: absolute;
  84. }
  85. #toolbar {
  86. box-sizing: border-box;
  87. height: 15%;
  88. position: relative;
  89. color: rgb(255, 255, 255);
  90. font-size: 48px;
  91. background-color: rgb(0, 187, 211);
  92. }
  93. #tiles-container {
  94. padding-left: 3px;
  95. height: 85%;
  96. }
  97. #tile-profile {
  98. box-sizing: border-box;
  99. float: left;
  100. height: 30%;
  101. width: 48%;
  102. margin: 3px;
  103. background-color: rgb(204, 204, 204);
  104. }
  105. #core_icon1 {
  106. height: 128px;
  107. width: 128px;
  108. }
  109. #div1 {
  110. padding: 8px;
  111. color: rgb(255, 255, 255);
  112. background-color: rgb(170, 170, 170);
  113. }
  114. #tile-general {
  115. box-sizing: border-box;
  116. float: left;
  117. height: 30%;
  118. width: 48%;
  119. margin: 3px;
  120. }
  121. #section5 {
  122. background-color: rgb(255, 255, 141);
  123. }
  124. #core_icon2 {
  125. height: 128px;
  126. width: 128px;
  127. }
  128. #div2 {
  129. padding: 8px;
  130. color: rgb(255, 255, 255);
  131. background-color: rgb(255, 235, 59);
  132. }
  133. #div3 {
  134. box-sizing: border-box;
  135. float: left;
  136. height: 30%;
  137. width: 48%;
  138. margin: 3px;
  139. background-color: rgb(185, 246, 202);
  140. }
  141. #core_icon3 {
  142. height: 128px;
  143. width: 128px;
  144. }
  145. #div4 {
  146. padding: 8px;
  147. color: rgb(255, 255, 255);
  148. background-color: rgb(15, 157, 88);
  149. }
  150. #div5 {
  151. box-sizing: border-box;
  152. float: left;
  153. height: 30%;
  154. width: 48%;
  155. margin: 3px;
  156. background-color: rgb(255, 138, 128);
  157. }
  158. #core_icon4 {
  159. height: 128px;
  160. width: 128px;
  161. }
  162. #div6 {
  163. padding: 8px;
  164. color: rgb(255, 255, 255);
  165. background-color: rgb(219, 68, 55);
  166. }
  167. #div7 {
  168. box-sizing: border-box;
  169. float: left;
  170. height: 30%;
  171. width: 48%;
  172. margin: 3px;
  173. background-color: rgb(130, 177, 255);
  174. }
  175. #core_icon5 {
  176. height: 128px;
  177. width: 128px;
  178. }
  179. #div8 {
  180. padding: 8px;
  181. color: rgb(255, 255, 255);
  182. background-color: rgb(66, 133, 244);
  183. }
  184. #div9 {
  185. box-sizing: border-box;
  186. float: left;
  187. height: 30%;
  188. width: 48%;
  189. margin: 3px;
  190. background-color: rgb(179, 136, 255);
  191. }
  192. #core_icon6 {
  193. height: 128px;
  194. width: 128px;
  195. }
  196. #div10 {
  197. padding: 8px;
  198. color: rgb(255, 255, 255);
  199. background-color: rgb(126, 87, 194);
  200. }
  201. </style>
  202. <core-scaffold id="core_scaffold">
  203. <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
  204. <core-toolbar id="core_toolbar">
  205. <core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
  206. <core-icon icon="search" id="core_icon"></core-icon>
  207. <core-input id="core_input" value="{{ $.speech_mic.transcript }}">Search...</core-input>
  208. <speech-mic transcript="what up" completetranscript="what up" language="de-DE" id="speech_mic"></speech-mic>
  209. </core-field>
  210. </core-toolbar>
  211. <core-menu selected="Inhaltsstoffe" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
  212. <core-item id="menu_item_inhalt" label="Inhaltsstoffe" icon="input" on-tap="{{ showRoad }}" horizontal center layout active></core-item>
  213. <core-item id="menu_item_zutat" label="Zutaten" icon="content-paste" on-tap="{{ showRoad }}" horizontal center layout active></core-item>
  214. <core-item id="menu_item_rezept" label="Rezepte" icon="receipt" on-tap="{{ showSat }}" horizontal center layout active></core-item>
  215. </core-menu>
  216. </core-header-panel>
  217. <div id="div" tool>Title</div>
  218. <core-animated-pages selectedindex="0" notap id="core_animated_pages">
  219. <section id="section" layout horizontal center center-justified active>
  220. </section>
  221. <section id="section1">
  222. </section>
  223. <section id="section2">
  224. </section>
  225. </core-animated-pages>
  226. <paper-input label="Type something..." value="{{ $.speech_mic.transcript }}" id="paper_input"></paper-input>
  227. <section id="section3" layout vertical designmeta="quiz-demo-grid">
  228. <div id="toolbar" class="tall-toolbar categories" horizontal center-justified center layout>
  229. <span id="span">Quiz Demo</span>
  230. </div>
  231. <div id="tiles-container" class="tiles-container" layout wrap horizontal around-justified center relative>
  232. <div id="tile-profile" class="tile" layout vertical relative>
  233. <section id="section4" class="tile-top" flex layout horizontal center center-justified>
  234. <core-icon icon="category-icons:food" id="core_icon1" designmeta="topeka-icon"></core-icon>
  235. </section>
  236. <div id="div1" class="tile-bottom">
  237. Category 1
  238. </div>
  239. </div>
  240. <div id="tile-general" class="tile" layout vertical relative>
  241. <section id="section5" class="tile-top" flex layout horizontal center center-justified hero hero-id="top">
  242. <core-icon icon="category-icons:knowledge" id="core_icon2" cross-fade-delayed designmeta="topeka-icon"></core-icon>
  243. </section>
  244. <div id="div2" class="tile-bottom" hero hero-id="bottom">
  245. <span id="span1">General Knowledge</span>
  246. </div>
  247. </div>
  248. <div id="div3" class="tile" layout vertical relative>
  249. <section id="section6" class="tile-top" flex layout horizontal center center-justified>
  250. <core-icon icon="category-icons:history" id="core_icon3" designmeta="topeka-icon"></core-icon>
  251. </section>
  252. <div id="div4" class="tile-bottom">
  253. Category 2
  254. </div>
  255. </div>
  256. <div id="div5" class="tile" layout vertical relative>
  257. <section id="section7" class="tile-top" flex layout horizontal center center-justified>
  258. <core-icon icon="category-icons:geography" id="core_icon4" designmeta="topeka-icon"></core-icon>
  259. </section>
  260. <div id="div6" class="tile-bottom">
  261. Category 3
  262. </div>
  263. </div>
  264. <div id="div7" class="tile" layout vertical relative>
  265. <section id="section8" class="tile-top" flex layout horizontal center center-justified>
  266. <core-icon icon="category-icons:entertainment" id="core_icon5" designmeta="topeka-icon"></core-icon>
  267. </section>
  268. <div id="div8" class="tile-bottom">
  269. Category 4
  270. </div>
  271. </div>
  272. <div id="div9" class="tile" layout vertical relative>
  273. <section id="section9" class="tile-top" flex layout horizontal center center-justified>
  274. <core-icon icon="category-icons:music" id="core_icon6" designmeta="topeka-icon"></core-icon>
  275. </section>
  276. <div id="div10" class="tile-bottom">
  277. Category 5
  278. </div>
  279. </div>
  280. </div>
  281. </section>
  282. </core-scaffold>
  283. </template>
  284.  
  285. <script>
  286.  
  287. Polymer({
  288. showRoad: function () {
  289. this.$.google_map.mapType = 'roadmap';
  290. },
  291. showSat: function () {
  292. this.$.google_map.mapType = 'satellite';
  293. }
  294. });
  295.  
  296. </script>
  297.  
  298. </polymer-element>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement