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 25: | Line 25: | ||
} | } | ||
document.forms["PECalc"]["result"].value = score; | document.forms["PECalc"]["result"].value = score; | ||
if(score < 2){document.forms["PECalc"]["longaswer"].value = "DDimer"; | if(score < 2){document.forms["PECalc"]["longaswer"].value = "DDimer";} | ||
if(score >= 2 && score <= 6){document.forms["PECalc"]["longaswer"].value = "OBAUgaagd"; | if(score >= 2 && score <= 6){document.forms["PECalc"]["longaswer"].value = "OBAUgaagd";} | ||
if(score > 6){document.forms["PECalc"]["longaswer"].value = "You gonna die."; | if(score > 6){document.forms["PECalc"]["longaswer"].value = "You gonna die.";} | ||
} | } | ||
</script> | </script> |