Last active
August 29, 2015 14:23
-
-
Save tchansen/043902bb1d51b40a952d to your computer and use it in GitHub Desktop.
designer
This file contains hidden or 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="../paper-tabs/paper-tabs.html"> | |
<link rel="import" href="../paper-tabs/paper-tab.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-item/paper-item.html"> | |
<link rel="import" href="../paper-input/paper-input.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#paper_input { | |
left: 550px; | |
top: 220px; | |
position: absolute; | |
} | |
#paper_button { | |
left: 710px; | |
top: 230px; | |
position: absolute; | |
} | |
#paper_item { | |
left: 420px; | |
top: 220px; | |
position: absolute; | |
} | |
#name_input { | |
left: 45px; | |
top: 87px; | |
position: absolute; | |
} | |
#name_item { | |
left: 35px; | |
top: 37px; | |
position: absolute; | |
} | |
#join_button { | |
left: 288px; | |
top: 97px; | |
position: absolute; | |
border: solid; | |
} | |
#section { | |
width: 420px; | |
height: 630px; | |
border: 5px solid rgb(204, 204, 204); | |
left: 250px; | |
top: 0px; | |
position: absolute; | |
} | |
#paper_tabs { | |
color: rgb(255, 255, 255); | |
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px; | |
background-color: rgb(0, 188, 212); | |
} | |
</style> | |
<section id="section" vertical layout> | |
<paper-tabs noink nobar selected="1" selectedindex="1" id="paper_tabs" horizontal center layout> | |
<paper-tab id="paper_tab" inline flex center-center horizontal layout>ITEM ONE</paper-tab> | |
<paper-tab id="paper_tab1" inline flex center-center horizontal layout active>ITEM TWO</paper-tab> | |
</paper-tabs> | |
<section id="section1" flex relative> | |
<paper-item id="name_item" icon="settings" label="Item">Name:</paper-item> | |
<paper-input label="Type your name..." id="name_input"></paper-input> | |
</section> | |
<paper-button id="join_button" on-click="go_to_tab2">Show Games</paper-button> | |
</section> | |
</template> | |
<script> | |
Polymer({ | |
is: 'my-element', | |
go_to_tab2: function () { | |
alert("Hello " + name_input); | |
} | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment