APPSETTINGISSUE : AADHAVAN
This commit is contained in:
parent
3a5087d1a2
commit
ace083b56c
1
AppSetting.json
Normal file
1
AppSetting.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"AppSetting":[""]}
|
||||||
@ -910,8 +910,8 @@ function openPopup() {
|
|||||||
{value: 'WorkArea', label: 'Work Area'},
|
{value: 'WorkArea', label: 'Work Area'},
|
||||||
{value: 'SubTitle', label: 'Sub Title'},
|
{value: 'SubTitle', label: 'Sub Title'},
|
||||||
{value: 'MathCheckbox', label: 'Math'},
|
{value: 'MathCheckbox', label: 'Math'},
|
||||||
{value: 'TextQuestionButton', label: 'Text Question Button'},
|
{value: 'TextQuestionButton', label: 'Text Question'},
|
||||||
{value: 'MCQQuestionButton', label: 'MCQ Question Button'}
|
{value: 'MCQQuestionButton', label: 'MCQ Question '}
|
||||||
];
|
];
|
||||||
|
|
||||||
radioOptions.forEach(option => {
|
radioOptions.forEach(option => {
|
||||||
@ -986,8 +986,9 @@ function submitValues() {
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
function popupCheck() {
|
function popupCheck() {
|
||||||
const parentFolder = path.dirname(__filename);
|
// const parentFolder = path.dirname(__filename);
|
||||||
const filePath = path.join(parentFolder, 'mathEnable.json');
|
// const filePath = path.join(parentFolder, 'mathEnable.json');
|
||||||
|
const filePath = `AppSetting.json`;
|
||||||
fs.readFile(filePath, 'utf8', (err, data) => {
|
fs.readFile(filePath, 'utf8', (err, data) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error('Error reading file:', err);
|
console.error('Error reading file:', err);
|
||||||
@ -995,8 +996,9 @@ function submitValues() {
|
|||||||
}
|
}
|
||||||
const jsonObject = JSON.parse(data);
|
const jsonObject = JSON.parse(data);
|
||||||
|
|
||||||
var aa= jsonObject.mathEnable;
|
var aa= jsonObject.AppSetting;
|
||||||
const inputString = aa[0];
|
const inputString = aa[0];
|
||||||
|
console.log(inputString);
|
||||||
|
|
||||||
const valuesArray = inputString.split(', ');
|
const valuesArray = inputString.split(', ');
|
||||||
valuesArray.forEach(value => {
|
valuesArray.forEach(value => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user