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