Widget:RimCalc: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
weight = parseInt($("#input1").val()); | weight = parseInt($("#input1").val()); | ||
} | } | ||
age = parseInt($("#input2").val( | age = parseInt($("#input2").val()); | ||
serum = parseFloat($("#input3").val()); | serum = parseFloat($("#input3").val()); | ||
temp = (140 - age) * weight; | temp = (140 - age) * weight; | ||
Line 30: | Line 30: | ||
$("#output").append("<br />250-500 mg q18h") | $("#output").append("<br />250-500 mg q18h") | ||
} | } | ||
//Don't touch! | //Don't touch below! | ||
}); | }); | ||
}); | }); | ||
Line 36: | Line 36: | ||
</script> | </script> | ||
<table> | <table> | ||
<tr><td>Weight (kg):</td><td> <input type="text" id="input1" /></td><td><select id="wtype"><option value="Kilograms" /><option value="Pounds" /></select></td></tr> | <tr><td>Weight (kg):</td><td> <input type="text" id="input1" /></td><td><select id="wtype"><option value="Kilograms">Kilograms</option><option value="Pounds">Pounds</option></select></td></tr> | ||
<tr><td>Age: </td><td><input type="text" id="input2" /></td><td></td></tr> | <tr><td>Age: </td><td><input type="text" id="input2" /></td><td></td></tr> | ||
<tr><td>Serum: </td><td><input type="text" id="input3" /></td><td></td></tr> | <tr><td>Serum: </td><td><input type="text" id="input3" /></td><td></td></tr> |