From 1eb632f15a4bec8b212df2e819b2cf49a0d7a6ed Mon Sep 17 00:00:00 2001 From: Ashish1751 Date: Fri, 29 Mar 2019 15:41:04 +0530 Subject: [PATCH 1/3] Corrections are made in Result pages --- src/lab/exp10/quizconfig.js | 22 +++++++++++----------- src/lab/exp10/results.htm | 18 +++++++++--------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/lab/exp10/quizconfig.js b/src/lab/exp10/quizconfig.js index 34e066b..628a11d 100644 --- a/src/lab/exp10/quizconfig.js +++ b/src/lab/exp10/quizconfig.js @@ -19,7 +19,7 @@ correctchoices[5]='b' /////Don't edit beyond here////////////////////////// function gradeit(){ -var incorrect=null +var correct=null for (q=1;q<=totalquestions;q++){ var thequestion=eval("document.myquiz.question"+q) for (c=0;c') win2.document.write('

Solution to Quiz

') win2.document.write('
') for (i=1;i<=totalquestions;i++){ -for (temp=0;temp") } win2.document.write('
') -win2.document.write("
Note: The solutions in red are the ones to the questions you had incorrectly answered.
") +win2.document.write("
Note: The solutions in red are the ones to the questions you had correctly answered.
") win2.document.close() } diff --git a/src/lab/exp10/results.htm b/src/lab/exp10/results.htm index 095bcfe..7a2d48e 100644 --- a/src/lab/exp10/results.htm +++ b/src/lab/exp10/results.htm @@ -22,7 +22,7 @@

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

@@ -51,14 +51,14 @@ } -var incorrect=results[parse].split("=") -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+"%" -for (temp=0;temp From f92b426d5d34ddd769d73bb6a4a82a5c63f81bec Mon Sep 17 00:00:00 2001 From: Ashish1751 Date: Fri, 29 Mar 2019 15:45:19 +0530 Subject: [PATCH 2/3] Corrections are made in Result pages --- src/lab/exp9/quizconfig.js | 22 +++++++++++----------- src/lab/exp9/results.htm | 18 +++++++++--------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/lab/exp9/quizconfig.js b/src/lab/exp9/quizconfig.js index 0ca48f3..e88f558 100644 --- a/src/lab/exp9/quizconfig.js +++ b/src/lab/exp9/quizconfig.js @@ -17,7 +17,7 @@ correctchoices[3]='a' /////Don't edit beyond here////////////////////////// function gradeit(){ -var incorrect=null +var correct=null for (q=1;q<=totalquestions;q++){ var thequestion=eval("document.myquiz.question"+q) for (c=0;c') win2.document.write('

Solution to Quiz

') win2.document.write('
') for (i=1;i<=totalquestions;i++){ -for (temp=0;temp") } win2.document.write('
') -win2.document.write("
Note: The solutions in red are the ones to the questions you had incorrectly answered.
") +win2.document.write("
Note: The solutions in red are the ones to the questions you had correctly answered.
") win2.document.close() } diff --git a/src/lab/exp9/results.htm b/src/lab/exp9/results.htm index 095bcfe..7a2d48e 100644 --- a/src/lab/exp9/results.htm +++ b/src/lab/exp9/results.htm @@ -22,7 +22,7 @@

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

@@ -51,14 +51,14 @@ } -var incorrect=results[parse].split("=") -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+"%" -for (temp=0;temp From c114f5c46cc191c90e577641d32f9a01221fd154 Mon Sep 17 00:00:00 2001 From: Ashish1751 Date: Fri, 29 Mar 2019 15:47:10 +0530 Subject: [PATCH 3/3] Corrections are made in Result pages --- src/lab/exp8/quizconfig.js | 22 +++++++++++----------- src/lab/exp8/results.htm | 18 +++++++++--------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/lab/exp8/quizconfig.js b/src/lab/exp8/quizconfig.js index f88620b..81083f5 100644 --- a/src/lab/exp8/quizconfig.js +++ b/src/lab/exp8/quizconfig.js @@ -18,7 +18,7 @@ correctchoices[4]='a' /////Don't edit beyond here////////////////////////// function gradeit(){ -var incorrect=null +var correct=null for (q=1;q<=totalquestions;q++){ var thequestion=eval("document.myquiz.question"+q) for (c=0;c') win2.document.write('

Solution to Quiz

') win2.document.write('
') for (i=1;i<=totalquestions;i++){ -for (temp=0;temp") } win2.document.write('
') -win2.document.write("
Note: The solutions in red are the ones to the questions you had incorrectly answered.
") +win2.document.write("
Note: The solutions in red are the ones to the questions you had correctly answered.
") win2.document.close() } diff --git a/src/lab/exp8/results.htm b/src/lab/exp8/results.htm index 095bcfe..7a2d48e 100644 --- a/src/lab/exp8/results.htm +++ b/src/lab/exp8/results.htm @@ -22,7 +22,7 @@

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

@@ -51,14 +51,14 @@ } -var incorrect=results[parse].split("=") -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+"%" -for (temp=0;temp