Widget:IMPROVEScore: Difference between revisions

Jump to navigation Jump to search
(Created page with "<includeonly> <script type="text/javascript"> function calcScore(){ var score = 0; if(document.forms["IMPROVEScore"]["input1"].checked == 1){ score += 3; } if(document.forms[...")
 
No edit summary
Line 27: Line 27:
document.forms["IMPROVEScore"]["result"].value = score;
document.forms["IMPROVEScore"]["result"].value = score;
if(score == 0){document.forms["IMPROVEScore"]["longanswer"].value = "0.4%";}
if(score == 0){document.forms["IMPROVEScore"]["longanswer"].value = "0.4%";}
if(score == 1 || score == 2){document.forms["IMPROVEScore"]["longanswer"].value = "0.6%";}
if(score == 1){document.forms["IMPROVEScore"]["longanswer"].value = "0.6%";}
if(score == 2){document.forms["IMPROVEScore"]["longanswer"].value = "1.0%";}
if(score == 2){document.forms["IMPROVEScore"]["longanswer"].value = "1.0%";}
}
}

Revision as of 14:43, 13 October 2017