Last active
October 27, 2016 11:06
-
-
Save jamesmstone/89fd4a1160775ea7439a639b4ea2e444 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-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="../paper-toast/paper-toast.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="../paper-slider/paper-slider.html"> | |
<link rel="import" href="../paper-toggle-button/paper-toggle-button.html"> | |
<polymer-element name="x-subjects-page"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
top: 0px; | |
left: 0px; | |
} | |
#paper_slider { | |
left: 20px; | |
top: 80px; | |
position: absolute; | |
} | |
#paper_slider1 { | |
left: 20px; | |
top: 180px; | |
position: absolute; | |
} | |
#core_selector { | |
width: 100%; | |
height: 50px; | |
left: 180px; | |
top: 280px; | |
position: absolute; | |
} | |
#core_scaffold { | |
position: absolute; | |
top: 0px; | |
right: 0px; | |
bottom: 0px; | |
left: 0px; | |
} | |
#core_header_panel { | |
left: -10px; | |
top: 0px; | |
position: absolute; | |
background-color: rgb(255, 255, 255); | |
} | |
#core_toolbar { | |
color: rgb(255, 255, 255); | |
background-color: rgb(79, 125, 201); | |
} | |
#paper_toggle_button { | |
left: 30px; | |
top: 270px; | |
position: absolute; | |
} | |
#section { | |
left: 600px; | |
top: 300px; | |
position: absolute; | |
} | |
#section1 { | |
left: 990px; | |
top: 330px; | |
} | |
#section2 { | |
left: 640px; | |
top: 290px; | |
position: absolute; | |
} | |
#paper_toast { | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
} | |
#core_card { | |
position: absolute; | |
width: 300px; | |
height: 300px; | |
border-radius: 2px; | |
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px; | |
left: 350px; | |
top: 110px; | |
background-color: rgb(255, 255, 255); | |
} | |
#core_ajax { | |
left: 0px; | |
top: 0px; | |
position: absolute; | |
} | |
</style> | |
<core-selector selected="0" id="core_selector"></core-selector> | |
<core-scaffold id="core_scaffold"> | |
<div id="div" tool>Subjects</div> | |
<iron-list id="iron_list" items> | |
<template id="template"></template> | |
</iron-list> | |
<iron-ajax auto url="https://www.googleapis.com/youtube/v3/search" params='{"part":"snippet", "q":"polymer", "key": "YOUTUBE_API_KEY", "type": "video"}' handle-as="json" on-response="handleResponse" debounce-duration="300"></iron-ajax> | |
<paper-toast text="{{ $.core_ajax.page_loading }}" id="paper_toast" touch-action="none" class="core-transition-bottom core-transition"></paper-toast> | |
<core-header-panel mode="seamed" id="core_header_panel" navigation flex> | |
<core-toolbar id="core_toolbar"> | |
<h2>Words</h2> | |
<paper-slider pin value="47" id="paper_slider"></paper-slider> | |
<paper-slider pin value="76" id="paper_slider1"></paper-slider> | |
<paper-toggle-button checked id="paper_toggle_button" touch-action="pan-y">y</paper-toggle-button> | |
</core-toolbar> | |
</core-header-panel> | |
</core-scaffold> | |
</template> | |
<script> | |
Polymer({ | |
j: false, | |
page_loading: false | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Edit
Preview