From fecf3654628b3e2bac95dfc676abbf85398b5154 Mon Sep 17 00:00:00 2001 From: aadhavan valli Date: Fri, 13 Oct 2023 15:25:50 +0530 Subject: [PATCH] CHECK_QUESTION_GROUP : AADHAVAN --- QuestionPaperPreview.js | 6 +-- addform.html | 60 +++++++++++++++++++++------ checkParent.js | 25 +++++++++++ json2html.js | 8 ++-- xml2json.js | 9 ++-- xml2json_for_Questionpaper_preview.js | 17 +++++--- 6 files changed, 96 insertions(+), 29 deletions(-) create mode 100644 checkParent.js diff --git a/QuestionPaperPreview.js b/QuestionPaperPreview.js index d5aea5f..99402a4 100644 --- a/QuestionPaperPreview.js +++ b/QuestionPaperPreview.js @@ -1,7 +1,7 @@ function QuestionPaperPreview(jsonData){ // The provided JSON data - +// console.log(jsonData) function convertToLatex(text, mathstatus) { // Parse mathstatus into a boolean const mathStatusBoolean = JSON.parse(mathstatus); @@ -67,10 +67,10 @@ function GroupQuestion(question, questionIndex, depth) { questionPaper += `${question.group_title}`; questionPaper += `${question.group_description}`; const nestedQuestions = question.questions; - // Process nested questions in the same way nestedQuestions.forEach((nestedQuestion) => { - processQuestion(nestedQuestion, questionIndex, depth); + // processQuestion(nestedQuestion, questionIndex, depth); + CheakQnType(nestedQuestion,questionIndex,depth); }); } diff --git a/addform.html b/addform.html index ac6343c..706ba22 100644 --- a/addform.html +++ b/addform.html @@ -542,7 +542,13 @@ + + + + + +