From 3e849963457edf3160fccf9bb25e3248ad382fa6 Mon Sep 17 00:00:00 2001 From: aadhavan Date: Thu, 30 Nov 2023 11:43:11 +0530 Subject: [PATCH] PREVIEWALGIN QUILLTABLE : AADHAVAN --- QuestionPaperPreview.js | 8 +- QuestionPreview.html | 97 +++++- addform.html | 633 +++++++++++++++++++++++++++++++------- dashboard.html | 28 +- decode.js | 11 +- encode.js | 12 +- envConvertBasetoString.js | 66 ++++ html2json.js | 11 +- imageresize.min.js | 1 - index.js | 8 +- json2html.js | 24 +- json2xml.js | 6 +- main.js | 30 +- nav_pane.js | 59 +++- package-lock.json | 87 ++++++ package.json | 11 +- savexml.js | 16 +- style.css | 4 +- xml/Sample.xml | 2 +- xml2json.js | 18 +- 20 files changed, 944 insertions(+), 188 deletions(-) create mode 100644 envConvertBasetoString.js delete mode 100644 imageresize.min.js diff --git a/QuestionPaperPreview.js b/QuestionPaperPreview.js index 5088d15..c8455ea 100644 --- a/QuestionPaperPreview.js +++ b/QuestionPaperPreview.js @@ -151,6 +151,7 @@ function QuestionPaperPreview(jsonData){ let cleanedText=cleanedTex.replace('

','').replace('

','') var question_id_length =cleanedText.length; if (question_id_length == 1) { + GroupQuestionTilteAlign =15 } else if (question_id_length == 3) { GroupQuestionTilteAlign =33 @@ -169,7 +170,7 @@ function QuestionPaperPreview(jsonData){ // const questionId =`

${cleanedText})

` const questionId =cleanedText - console.log(questionId); + // console.log(questionId); const questionGroupSetP = `${question.group_title}`; const questionGroupmodify =questionGroupSetP.replaceAll('

', `

`) @@ -205,16 +206,16 @@ function QuestionPaperPreview(jsonData){ questionPaper += `

${questionGroupDescription}
`; depth2++ } else if (question.question) { + console.log(question); let cleanedTex = question.questionId.replace(/\s+/g, ' ').trim(); let cleanedText=cleanedTex.replace('

','').replace('

','') - var question_id_length =cleanedText.length; - console.log(question_id_length); if (question_id_length == 1) { GroupQuestionTilteAlign =14 } else if (question_id_length == 3) { GroupQuestionTilteAlign =26 }else if(question_id_length == 5){ + GroupQuestionTilteAlign =41 }else if(question_id_length == 7) { GroupQuestionTilteAlign =54 @@ -229,7 +230,6 @@ function QuestionPaperPreview(jsonData){ // const questionId =`

${cleanedText})

`; const questionI =cleanedText; var questionId = questionI.replace('

', '

'); - console.log(questionId); const questionTex = question.question; const questionText = questionTex.replaceAll('

', `

`); diff --git a/QuestionPreview.html b/QuestionPreview.html index 3e3b302..a761e6c 100644 --- a/QuestionPreview.html +++ b/QuestionPreview.html @@ -49,6 +49,29 @@