Skip to content

Instantly share code, notes, and snippets.

@xumx
Created June 27, 2014 09:25
Show Gist options
  • Save xumx/1ef83606722123b3c424 to your computer and use it in GitHub Desktop.
Save xumx/1ef83606722123b3c424 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../paper-ripple/paper-ripple.html">
<link rel="import" href="../paper-radio-group/paper-radio-group.html">
<link rel="import" href="../paper-radio-button/paper-radio-button.html">
<polymer-element name="smu-room">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
.room-type {
color: white;
font-size: 2em;
font-family: Helvetica;
width: 100%;
height: 100%;
}
#paper_radio_group {
left: 300px;
top: 370px;
position: absolute;
}
#core_card_1 {
width: 300px;
height: 300px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 140px;
top: 20px;
position: absolute;
background-color: rgb(63, 81, 181);
}
#paper_ripple_1 {
width: 300px;
height: 300px;
}
#div_1 {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#core_card_2 {
width: 300px;
height: 300px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 490px;
top: 20px;
position: absolute;
background-color: rgb(63, 81, 181);
}
#paper_ripple_2 {
width: 300px;
height: 300px;
}
#div_2 {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#core_card_3 {
width: 300px;
height: 300px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
left: 840px;
top: 20px;
position: absolute;
background-color: rgb(63, 81, 181);
}
#paper_ripple_3 {
width: 300px;
height: 300px;
}
#div_3 {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
</style>
<core-card id="core_card_1" class="room-type" room="SR" on-click="{{ choose }}" layout vertical>
<div id="div_1" horizontal layout center center-justified>Seminar Room</div>
<paper-ripple id="paper_ripple_1"></paper-ripple>
</core-card>
<core-card id="core_card_2" class="room-type" room="GSR" on-click="{{ choose }}" layout vertical>
<div id="div_2" horizontal layout center center-justified>Group Study Room</div>
<paper-ripple id="paper_ripple_2"></paper-ripple>
</core-card>
<core-card id="core_card_3" class="room-type" room="CR" on-click="{{ choose }}" layout vertical>
<div id="div_3" horizontal layout center center-justified>Class Room</div>
<paper-ripple id="paper_ripple_3"></paper-ripple>
</core-card>
<paper-radio-group selected="Radio Button" valueattr="label" selectedindex="5" id="paper_radio_group">
<paper-radio-button label="Any" id="paper_radio_button">
</paper-radio-button>
<paper-radio-button label="SIS" id="paper_radio_button1"></paper-radio-button>
<paper-radio-button label="SOA" id="paper_radio_button2"></paper-radio-button>
<paper-radio-button label="SOB" id="paper_radio_button3"></paper-radio-button>
<paper-radio-button label="SOE" id="paper_radio_button4"></paper-radio-button>
<paper-radio-button checked label="Library" id="paper_radio_button5"></paper-radio-button>
</paper-radio-group>
</template>
<script>
Polymer('smu-room', {
choose: function (event, info, target) {
console.dir(target.attributes.room.value);
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment