Created
August 22, 2014 19:29
-
-
Save davidrhyswhite/50b219038091b0e664ba 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="../paper-input/paper-input.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
body { | |
background-color: rgb(240, 240, 240); | |
} | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
box-sizing: border-box; | |
} | |
#paper_input { | |
left: 30px; | |
top: 30px; | |
position: absolute; | |
} | |
section#container { | |
padding: 30px; | |
background-color: rgb(255, 255, 255); | |
} | |
</style> | |
<section id="container"> | |
<paper-input type="number" id="day_rate" floatinglabel label="Day rate"></paper-input> | |
<p>Monthly rate: {{ ($.day_rate.value * 5) * 4 }}</p> | |
<paper-input type="number" id="weekly_expenses" floatinglabel label="Weekly expenses"></paper-input> | |
<p>Monthly Expenses: {{ $.weekly_expenses.value * 4 }}</p> | |
</section> | |
</template> | |
<script> | |
Polymer('my-element', { | |
}); | |
</script> | |
</polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment