From cc2fba0d485ec9ebf243d11a83168f81bdbb770e Mon Sep 17 00:00:00 2001 From: koushik2000 Date: Fri, 29 Mar 2019 19:24:21 +0530 Subject: [PATCH] exp 7 quiz issue is solved --- src/lab/exp1/results.htm | 2 +- src/lab/exp7/quizconfig.js | 2 +- src/lab/exp7/results.htm | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lab/exp1/results.htm b/src/lab/exp1/results.htm index 095bcfe..f5569e2 100644 --- a/src/lab/exp1/results.htm +++ b/src/lab/exp1/results.htm @@ -64,7 +64,7 @@

diff --git a/src/lab/exp7/quizconfig.js b/src/lab/exp7/quizconfig.js index c2ce470..9938b2c 100644 --- a/src/lab/exp7/quizconfig.js +++ b/src/lab/exp7/quizconfig.js @@ -27,7 +27,7 @@ for (q=1;q<=totalquestions;q++){ actualchoices[q]=thequestion[c].value } - if (actualchoices[q]!=correctchoices[q]){ //process an incorrect choice + if (actualchoices[q]==correctchoices[q]){ //process an incorrect choice if (incorrect==null) incorrect=q else diff --git a/src/lab/exp7/results.htm b/src/lab/exp7/results.htm index 095bcfe..4d04470 100644 --- a/src/lab/exp7/results.htm +++ b/src/lab/exp7/results.htm @@ -22,7 +22,7 @@

- The questions you got wrong: + The questions you got correct:

@@ -55,8 +55,8 @@ incorrect=incorrect[1].split("/") if (incorrect[incorrect.length-1]=='b') incorrect="" -document.result[0].value=totalquestions-incorrect.length+" out of "+totalquestions -document.result[2].value=(totalquestions-incorrect.length)/totalquestions*100+"%" +document.result[0].value=incorrect.length+" out of "+totalquestions +document.result[2].value=(incorrect.length)/totalquestions*100+"%" for (temp=0;temp