Skip to content

Instantly share code, notes, and snippets.

@rizrmd
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save rizrmd/3a3c16c86a782b32c9a1 to your computer and use it in GitHub Desktop.

Select an option

Save rizrmd/3a3c16c86a782b32c9a1 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../ace-element/ace-element.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../paper-calculator/paper-calculator.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#ace_element {
width: 100%;
height: 100%;
left: 0px;
top: 0px;
position: absolute;
opacity: 0.6;
}
#paper_button {
left: 70px;
top: 410px;
position: absolute;
}
#paper_calculator {
width: 400px;
height: 560px;
left: 400px;
top: 110px;
position: absolute;
}
</style>
<ace-element editorvalue="grewgweg" id="ace_element">function test() {
var x = true;
}</ace-element>
<paper-button id="paper_button">button</paper-button>
<paper-calculator responsivewidth="2000px" id="paper_calculator"></paper-calculator>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment