Widget:PE calculator: Difference between revisions

Jump to navigation Jump to search
No edit summary
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 && score <= 6){document.forms["PECalc"]["longaswer"].value = "OBAUgaagd";
if(score > 6){document.forms["PECalc"]["longaswer"].value = "You gonna die.";
}
}
</script>
</script>
Line 37: Line 40:
<tr><td>Malignancy (treatment for within 6 months, palliative)</td><td><input type="checkbox" name="input3" value="1.0" onchange="calcScore();" /></td></tr>
<tr><td>Malignancy (treatment for within 6 months, palliative)</td><td><input type="checkbox" name="input3" value="1.0" onchange="calcScore();" /></td></tr>
</table>
</table>
Score: <input type="text" name="result" />
Score: <input type="text" name="result" /><br />
<textarea name="longanswer"></textarea>
</form>
</form>
</includeonly>
</includeonly>

Revision as of 18:02, 11 May 2012