Widget:PE calculator: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 7: | Line 7: | ||
} | } | ||
if(document.forms["PECalc"]["input2"].checked == 1){ | if(document.forms["PECalc"]["input2"].checked == 1){ | ||
score += | score += 1.5; | ||
} | } | ||
if(document.forms["PECalc"]["input3"].checked == 1){ | if(document.forms["PECalc"]["input3"].checked == 1){ | ||
score += | score += 1; | ||
} | } | ||
if(document.forms["PECalc"]["input4"].checked == 1){ | if(document.forms["PECalc"]["input4"].checked == 1){ | ||
score += | score += 1; | ||
} | } | ||
if(document.forms["PECalc"]["input5"].checked == 1){ | if(document.forms["PECalc"]["input5"].checked == 1){ | ||
score += | score += 1.5; | ||
} | } | ||
if(document.forms["PECalc"]["input6"].checked == 1){ | if(document.forms["PECalc"]["input6"].checked == 1){ | ||
score += | score += 3; | ||
} | } | ||
if(document.forms["PECalc"]["input7"].checked == 1){ | if(document.forms["PECalc"]["input7"].checked == 1){ | ||
score += | score += 3; | ||
} | } | ||
document.forms["PECalc"]["result"].value = score; | document.forms["PECalc"]["result"].value = score; |