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
Line 4: Line 4:
$("#calc").click(function(){
$("#calc").click(function(){
var temp = 0;
var temp = 0;
temp = (140 - parseInt($("#input2").html()) * parseInt($("#input1").html()));
temp = (140 - parseInt($("#input2").val()) * parseInt($("#input1").val()));
console.log(temp);
console.log(temp);
temp = temp / (parseInt($("#input3").html()) * 72)
temp = temp / (parseInt($("#input3").val()) * 72)
console.log(temp);
console.log(temp);
if ($("#input4").is(':checked')) {
if ($("#input4").is(':checked')) {

Revision as of 15:32, 13 March 2014