Widget:WJG Sandbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1,034: | Line 1,034: | ||
for(var i=0, len=event.data.answeredRight; i<len; i++){ | for(var i=0, len=event.data.answeredRight; i<len; i++){ | ||
myTotal += qdist[i]; //Iterate over your first array and then grab the second element add the values up | myTotal += qdist[i]; //Iterate over your first array and then grab the second element add the values up | ||
} | } | ||
datas += percent + "%<br /><br />Click the Navigation Buttons on the left to review the questions you answered.<br />"; | datas += percent + "%<br /><br />Click the Navigation Buttons on the left to review the questions you answered.<br />"; | ||
datas += "<br />You scored in the " + myTotal + " percentile. <br /><br />"; | datas += "<br />You scored in the " + myTotal*100 + " percentile. <br /><br />"; | ||
datas += "<canvas id='simExams' width='600' height='400'></canvas>"; | datas += "<canvas id='simExams' width='600' height='400'></canvas>"; |