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-field/core-field.html">
- <link rel="import" href="../core-icon/core-icon.html">
- <link rel="import" href="../core-input/core-input.html">
- <link rel="import" href="../core-icons/core-icons.html">
- <link rel="import" href="../speech-mic/speech-mic.html">
- <link rel="import" href="../core-menu/core-submenu.html">
- <link rel="import" href="../core-animated-pages/core-animated-pages.html">
- <link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
- <link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
- <link rel="import" href="../core-animated-pages/transitions/slide-down.html">
- <link rel="import" href="../core-animated-pages/transitions/slide-up.html">
- <link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
- <link rel="import" href="../paper-input/paper-input.html">
- <link rel="import" href="../topeka-elements/category-icons.html">
- <polymer-element name="my-element">
- <template>
- <style>
- :host {
- position: absolute;
- width: 100%;
- height: 100%;
- box-sizing: border-box;
- }
- #svg {
- pointer-events: none;
- width: 24px;
- height: 24px;
- vertical-align: middle;
- }
- #core_scaffold {
- top: 0px;
- right: 0px;
- bottom: 0px;
- left: 0px;
- position: absolute;
- 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;
- }
- #core_animated_pages {
- width: 420px;
- height: 582px;
- overflow: hidden;
- left: 670px;
- top: 360px;
- position: absolute;
- background-color: rgb(238, 238, 238);
- }
- #core_field {
- left: 78px;
- top: 10px;
- position: absolute;
- background-color: rgb(255, 255, 255);
- }
- #paper_input {
- left: 310px;
- top: 160px;
- position: absolute;
- }
- #section3 {
- box-sizing: border-box;
- width: 420px;
- height: 582px;
- left: 870px;
- top: 200px;
- position: absolute;
- }
- #toolbar {
- box-sizing: border-box;
- height: 15%;
- position: relative;
- color: rgb(255, 255, 255);
- font-size: 48px;
- background-color: rgb(0, 187, 211);
- }
- #tiles-container {
- padding-left: 3px;
- height: 85%;
- }
- #tile-profile {
- box-sizing: border-box;
- float: left;
- height: 30%;
- width: 48%;
- margin: 3px;
- background-color: rgb(204, 204, 204);
- }
- #core_icon1 {
- height: 128px;
- width: 128px;
- }
- #div1 {
- padding: 8px;
- color: rgb(255, 255, 255);
- background-color: rgb(170, 170, 170);
- }
- #tile-general {
- box-sizing: border-box;
- float: left;
- height: 30%;
- width: 48%;
- margin: 3px;
- }
- #section5 {
- background-color: rgb(255, 255, 141);
- }
- #core_icon2 {
- height: 128px;
- width: 128px;
- }
- #div2 {
- padding: 8px;
- color: rgb(255, 255, 255);
- background-color: rgb(255, 235, 59);
- }
- #div3 {
- box-sizing: border-box;
- float: left;
- height: 30%;
- width: 48%;
- margin: 3px;
- background-color: rgb(185, 246, 202);
- }
- #core_icon3 {
- height: 128px;
- width: 128px;
- }
- #div4 {
- padding: 8px;
- color: rgb(255, 255, 255);
- background-color: rgb(15, 157, 88);
- }
- #div5 {
- box-sizing: border-box;
- float: left;
- height: 30%;
- width: 48%;
- margin: 3px;
- background-color: rgb(255, 138, 128);
- }
- #core_icon4 {
- height: 128px;
- width: 128px;
- }
- #div6 {
- padding: 8px;
- color: rgb(255, 255, 255);
- background-color: rgb(219, 68, 55);
- }
- #div7 {
- box-sizing: border-box;
- float: left;
- height: 30%;
- width: 48%;
- margin: 3px;
- background-color: rgb(130, 177, 255);
- }
- #core_icon5 {
- height: 128px;
- width: 128px;
- }
- #div8 {
- padding: 8px;
- color: rgb(255, 255, 255);
- background-color: rgb(66, 133, 244);
- }
- #div9 {
- box-sizing: border-box;
- float: left;
- height: 30%;
- width: 48%;
- margin: 3px;
- background-color: rgb(179, 136, 255);
- }
- #core_icon6 {
- height: 128px;
- width: 128px;
- }
- #div10 {
- padding: 8px;
- color: rgb(255, 255, 255);
- background-color: rgb(126, 87, 194);
- }
- </style>
- <core-scaffold id="core_scaffold">
- <core-header-panel mode="seamed" id="core_header_panel" navigation flex>
- <core-toolbar id="core_toolbar">
- <core-field id="core_field" icon="search" theme="core-light-theme" center horizontal layout>
- <core-icon icon="search" id="core_icon"></core-icon>
- <core-input id="core_input" value="{{ $.speech_mic.transcript }}">Search...</core-input>
- <speech-mic transcript="what up" completetranscript="what up" language="de-DE" id="speech_mic"></speech-mic>
- </core-field>
- </core-toolbar>
- <core-menu selected="Inhaltsstoffe" valueattr="label" selectedindex="0" id="core_menu" theme="core-light-theme">
- <core-item id="menu_item_inhalt" label="Inhaltsstoffe" icon="input" on-tap="{{ showRoad }}" horizontal center layout active></core-item>
- <core-item id="menu_item_zutat" label="Zutaten" icon="content-paste" on-tap="{{ showRoad }}" horizontal center layout active></core-item>
- <core-item id="menu_item_rezept" label="Rezepte" icon="receipt" on-tap="{{ showSat }}" horizontal center layout active></core-item>
- </core-menu>
- </core-header-panel>
- <div id="div" tool>Title</div>
- <core-animated-pages selectedindex="0" notap id="core_animated_pages">
- <section id="section" layout horizontal center center-justified active>
- </section>
- <section id="section1">
- </section>
- <section id="section2">
- </section>
- </core-animated-pages>
- <paper-input label="Type something..." value="{{ $.speech_mic.transcript }}" id="paper_input"></paper-input>
- <section id="section3" layout vertical designmeta="quiz-demo-grid">
- <div id="toolbar" class="tall-toolbar categories" horizontal center-justified center layout>
- <span id="span">Quiz Demo</span>
- </div>
- <div id="tiles-container" class="tiles-container" layout wrap horizontal around-justified center relative>
- <div id="tile-profile" class="tile" layout vertical relative>
- <section id="section4" class="tile-top" flex layout horizontal center center-justified>
- <core-icon icon="category-icons:food" id="core_icon1" designmeta="topeka-icon"></core-icon>
- </section>
- <div id="div1" class="tile-bottom">
- Category 1
- </div>
- </div>
- <div id="tile-general" class="tile" layout vertical relative>
- <section id="section5" class="tile-top" flex layout horizontal center center-justified hero hero-id="top">
- <core-icon icon="category-icons:knowledge" id="core_icon2" cross-fade-delayed designmeta="topeka-icon"></core-icon>
- </section>
- <div id="div2" class="tile-bottom" hero hero-id="bottom">
- <span id="span1">General Knowledge</span>
- </div>
- </div>
- <div id="div3" class="tile" layout vertical relative>
- <section id="section6" class="tile-top" flex layout horizontal center center-justified>
- <core-icon icon="category-icons:history" id="core_icon3" designmeta="topeka-icon"></core-icon>
- </section>
- <div id="div4" class="tile-bottom">
- Category 2
- </div>
- </div>
- <div id="div5" class="tile" layout vertical relative>
- <section id="section7" class="tile-top" flex layout horizontal center center-justified>
- <core-icon icon="category-icons:geography" id="core_icon4" designmeta="topeka-icon"></core-icon>
- </section>
- <div id="div6" class="tile-bottom">
- Category 3
- </div>
- </div>
- <div id="div7" class="tile" layout vertical relative>
- <section id="section8" class="tile-top" flex layout horizontal center center-justified>
- <core-icon icon="category-icons:entertainment" id="core_icon5" designmeta="topeka-icon"></core-icon>
- </section>
- <div id="div8" class="tile-bottom">
- Category 4
- </div>
- </div>
- <div id="div9" class="tile" layout vertical relative>
- <section id="section9" class="tile-top" flex layout horizontal center center-justified>
- <core-icon icon="category-icons:music" id="core_icon6" designmeta="topeka-icon"></core-icon>
- </section>
- <div id="div10" class="tile-bottom">
- Category 5
- </div>
- </div>
- </div>
- </section>
- </core-scaffold>
- </template>
- <script>
- Polymer({
- showRoad: function () {
- this.$.google_map.mapType = 'roadmap';
- },
- showSat: function () {
- this.$.google_map.mapType = 'satellite';
- }
- });
- </script>
- </polymer-element>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement