Widget:Test: Difference between revisions

Jump to navigation Jump to search
Mehdi Pahlavani (talk | contribs)
No edit summary
Mehdi Pahlavani (talk | contribs)
No edit summary
Line 4: Line 4:
var score = 0;
var score = 0;
if(document.forms["IMPROVEScore"]["input1"].checked == 1){
if(document.forms["IMPROVEScore"]["input1"].checked == 1){
score += 2;
score += 3;
}
}


if(document.forms["IMPROVEScore"]["input2"].checked == 1){
if(document.forms["IMPROVEScore"]["input2"].checked == 1){
score += 1;
score += 2;
}
}
if(document.forms["IMPROVEScore"]["input3"].checked == 1){
if(document.forms["IMPROVEScore"]["input3"].checked == 1){
score += 1;
score += 2;
}
}
if(document.forms["IMPROVEScore"]["input4"].checked == 1){
if(document.forms["IMPROVEScore"]["input4"].checked == 1){
score += 1;
score += 2;
}
}
if(document.forms["IMPROVEScore"]["input5"].checked == 1){
if(document.forms["IMPROVEScore"]["input5"].checked == 1){

Revision as of 15:14, 13 October 2017