Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:6b328c3f9a049e4b5fc4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
<html>
 
<style>
.widget {
overflow: auto;
margin: 0;
padding: 0;
border: 0;
height: 100%;
width: 100%;
background: #E8E8E8;
font-family: "Arial", Arial, sans-serif;
line-height: .5;
}
#widget_title {
text-align: center;
font-weight: bold;
font-style: normal;
font-size: 14;
}
#widget_example {
text-align: center;
font-style: italic;
font-size: 11;
}
form {
text-align: center;
width: 100%;
margin: 5px auto;
padding: 5px;
}
form label {
text-align: left;
display: block;
margin: 0px 0 0px 40px;
width: 370px;
}s
form label input {
float: right;
}
#widget_result {
text-align: center;
}
</style>
 
<script type="text/javascript">
function calculate() {
event.preventDefault();
result = this.elements['widget_mr'].value * this.elements['widget_acf'].value;
document.getElementById("widget_result").innerHTML = result;
return false;
}
</script>
 
<div class="widget">
 
<p id="widget_title">What is your annual operating budget?</p>
<p id="widget_example">(See for example, Line 12 on your last IRS Form 990)</p>
 
 
<form id="widget_form" onsubmit="returncalculate()">
 
<label>Annual Consulting Fee: <input type="text" name="widget_acf"></label>
<label>Monthly Retainer: <input type="text" name="widget_mr"></label>
<input type="submit" value="Calculate">
 
</form>
 
 
<p id="widget_result">
<b>Output:</b> Calculation Results #
</p>
 
</div>
 
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.