Widget:Apgarscore: Difference between revisions

Jump to navigation Jump to search
Ssharfaei (talk | contribs)
No edit summary
Ssharfaei (talk | contribs)
No edit summary
Line 3: Line 3:
function calcScore(){
function calcScore(){
var score = 0;
var score = 0;
if(document.forms["Apgarscore"]["input1"].checked == 1){score += 2;}
if(document.forms["Apgarscore"]["input2"].checked == 1){score += 1;}
if(document.forms["Apgarscore"]["input3"].checked == 1){score += 0;}
if(document.forms["Apgarscore"]["input4"].checked == 1){score += 2;}
if(document.forms["Apgarscore"]["input4"].checked == 1){score += 2;}
if(document.forms["Apgarscore"]["input5"].checked == 1){score += 1;}
if(document.forms["Apgarscore"]["input5"].checked == 1){score += 1;}

Revision as of 05:53, 24 November 2018