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 3: Line 3:
$(document).ready(function () {
$(document).ready(function () {
$("#calc").click(function () {
$("#calc").click(function () {
//Modify Below
var temp = 0;
var temp = 0;
temp = (140 - parseInt($("#input2").val())) * parseInt($("#input1").val());
temp = (140 - parseInt($("#input2").val())) * parseInt($("#input1").val());
Line 13: Line 14:
}
}
$("#output").html(temp);
$("#output").html(temp);
//Don't touch!
});
});
});
});

Revision as of 15:41, 13 March 2014