Widget:Test: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 29: | Line 29: | ||
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 | if(score == 1){document.forms["IMPROVEScore"]["longanswer"].value = "0.6%";} | ||
if(score >= | if(score == 2){document.forms["IMPROVEScore"]["longanswer"].value = "1%";} | ||
if(score == 3){document.forms["IMPROVEScore"]["longanswer"].value = "1.7%";} | |||
if(score == 4){document.forms["IMPROVEScore"]["longanswer"].value = "2.9%";} | |||
if(score >= 5){document.forms["IMPROVEScore"]["longanswer"].value = "7.2%";} | |||
} | } | ||
</script> | </script> |