fix: removed quiz result view

This commit is contained in:
Jannat Patel
2022-11-25 09:02:19 +05:30
parent 807f77755e
commit 9a183d2ef1
5 changed files with 21 additions and 10 deletions

View File

@@ -234,6 +234,7 @@ const check_answer = (e = undefined) => {
const parse_options = () => {
let answer = [];
let is_correct = [];
$(".active-question input").each((i, element) => {
let correct = parseInt($(element).attr("data-correct"));
if ($(element).prop("checked")) {
@@ -247,7 +248,7 @@ const parse_options = () => {
: add_icon(element, "minus-circle");
}
});
console.log(answer, is_correct)
return [answer, is_correct];
};