ASETTINGWORKAREA : AADHAVAN
This commit is contained in:
parent
254a0a1ae0
commit
87e10fe685
28
addform.html
28
addform.html
@ -65,6 +65,7 @@
|
||||
|
||||
<style>
|
||||
|
||||
|
||||
.sectionTitleTabWorking{
|
||||
border: white !important;
|
||||
width: 0px !important;
|
||||
@ -953,8 +954,15 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
document.getElementById('sendMessageButton').addEventListener('click', function () {
|
||||
sendMessage();
|
||||
|
||||
var workSpaceTextArea = document.getElementById('Jodit_RTE_workarea')
|
||||
workSpaceTextArea.innerHTML= '<p><br></p>';
|
||||
|
||||
workSpaceTextArea.click();
|
||||
|
||||
});
|
||||
|
||||
document.getElementById('workarea').addEventListener('keydown', function (event) {
|
||||
@ -1116,7 +1124,7 @@ async function convertToLatex(text, mathstatus) {
|
||||
</div>
|
||||
<div class="col-6" style="display: flex; align-items: center; position: relative; top: 10px;" >
|
||||
<button onclick="clearMessage()" id="clearMessageButton" class="sendMessageButton" type="button" style="position: relative; right: 5px;">Clear</button>
|
||||
<button id="sendMessageButton" class="sendMessageButton" type="button">Add</button>
|
||||
<button id="sendMessageButton" class="sendMessageButton" type="button">Add</button>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
@ -6106,7 +6114,7 @@ setInterval(removeNonExistentIdseveryTime, 1000)
|
||||
<script>
|
||||
setTimeout(function() {
|
||||
appSettingHide();
|
||||
}, 2000);
|
||||
}, 1500);
|
||||
|
||||
|
||||
function appSettingHide(){
|
||||
@ -6124,15 +6132,12 @@ setInterval(removeNonExistentIdseveryTime, 1000)
|
||||
|
||||
valuesArray.forEach(value => {
|
||||
if(value === 'WorkArea'){
|
||||
const mathNameValuesChoices =document.querySelectorAll('.math');
|
||||
mathNameValuesChoices.forEach(function (mathNameValuesChoice){
|
||||
mathNameValuesChoice.style="display:none;";
|
||||
mathNameValuesChoice.previousSibling.previousSibling.style = "display:none;";
|
||||
})
|
||||
}else if( value === 'SubTitle'){
|
||||
|
||||
var workArea = document.getElementById('sidebarToggle2');
|
||||
workArea.style.display = 'none';
|
||||
|
||||
}else if( value === 'SubTitle'){
|
||||
|
||||
|
||||
var subTitles= document.querySelectorAll('label')
|
||||
subTitles.forEach(function (subTitle){
|
||||
if (subTitle.innerHTML == "Subtitle:") {
|
||||
@ -6141,6 +6146,11 @@ setInterval(removeNonExistentIdseveryTime, 1000)
|
||||
})
|
||||
}else if(value === 'MathCheckbox'){
|
||||
|
||||
const mathNameValuesChoices =document.querySelectorAll('.math');
|
||||
mathNameValuesChoices.forEach(function (mathNameValuesChoice){
|
||||
mathNameValuesChoice.style="display:none;";
|
||||
mathNameValuesChoice.previousSibling.previousSibling.style = "display:none;";
|
||||
})
|
||||
const mathNameValues =document.querySelectorAll('.mathQuestions');
|
||||
mathNameValues.forEach(function (mathNameValue){
|
||||
mathNameValue.style="display:none;";
|
||||
|
||||
@ -1 +1 @@
|
||||
{"AppSetting":["WorkArea,SubTitle,MathCheckbox,TextQuestionButton,MCQQuestionButton"]}
|
||||
{"AppSetting":["SubTitle,TextQuestionButton,MCQQuestionButton"]}
|
||||
@ -1 +1 @@
|
||||
{"AppSetting":[""]}
|
||||
{"AppSetting":["WorkArea,MathCheckbox"]}
|
||||
@ -46,8 +46,10 @@
|
||||
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css"> -->
|
||||
|
||||
<style>
|
||||
|
||||
.switch-label {
|
||||
width: -webkit-fill-available;
|
||||
width: 20px !important;
|
||||
/* width: -webkit-fill-available; */
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
margin-right: 10px;
|
||||
@ -93,7 +95,7 @@
|
||||
}
|
||||
|
||||
.option:checked + .switch-label::after {
|
||||
left: calc(14% - 16px); /* Adjusted for circle size */
|
||||
left: calc(93% - 16px); /* Adjusted for circle size */
|
||||
}
|
||||
|
||||
|
||||
@ -707,7 +709,17 @@ function duplicateFile(oldfilename) {
|
||||
cancelButtonText: 'Cancel',
|
||||
inputValidator: (value) => {
|
||||
// console.log(value);
|
||||
const entervalue =value
|
||||
|
||||
|
||||
function removeXmlExtension(value) {
|
||||
if (value.endsWith('.xml')) {
|
||||
return value.slice(0, -4);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
const entervalue = removeXmlExtension(value);
|
||||
|
||||
if (value == '') {
|
||||
return 'You need to enter Filename!'
|
||||
}
|
||||
@ -886,6 +898,10 @@ settingBtn.onclick = function() {
|
||||
};
|
||||
|
||||
function openPopup() {
|
||||
var headermenu = document.querySelector('.heder-menu')
|
||||
|
||||
headermenu.style.display= 'none';
|
||||
|
||||
const popup = document.createElement('div');
|
||||
popup.className = 'popup';
|
||||
|
||||
@ -925,11 +941,16 @@ function openPopup() {
|
||||
|
||||
// Create label for the checkbox
|
||||
const label = document.createElement('label');
|
||||
label.textContent = option.label; // Set label text
|
||||
// label.textContent = option.label; // Set label text
|
||||
label.setAttribute('for', `switch-${option.value}`); // Set for attribute to match the checkbox's id attribute
|
||||
label.className = 'switch-label'; // Add class name if needed
|
||||
popupContent.appendChild(label);
|
||||
|
||||
const label2 = document.createElement('label');
|
||||
label2.textContent = option.label;
|
||||
popupContent.appendChild(label2);
|
||||
|
||||
|
||||
popupContent.appendChild(document.createElement('br'));
|
||||
});
|
||||
|
||||
@ -955,7 +976,11 @@ function openPopup() {
|
||||
|
||||
// Function to close popup and hide overlay
|
||||
function closePopup() {
|
||||
const popup = document.querySelector('.popup');
|
||||
var headermenu = document.querySelector('.heder-menu')
|
||||
|
||||
headermenu.style.display= 'block';
|
||||
|
||||
const popup = document.querySelector('.popup');
|
||||
if (popup) {
|
||||
popup.parentNode.removeChild(popup);
|
||||
}
|
||||
@ -965,7 +990,11 @@ function closePopup() {
|
||||
|
||||
// Function to submit selected values to server
|
||||
function submitValues() {
|
||||
// const selectedValues = Array.from(document.querySelectorAll('input[class=option]:checked')).map(input => input.value);
|
||||
var headermenu = document.querySelector('.heder-menu')
|
||||
|
||||
headermenu.style.display= 'block';
|
||||
|
||||
// const selectedValues = Array.from(document.querySelectorAll('input[class=option]:checked')).map(input => input.value);
|
||||
|
||||
const allOptions = Array.from(document.querySelectorAll('input[class=option]'));
|
||||
|
||||
@ -1003,7 +1032,7 @@ function submitValues() {
|
||||
|
||||
|
||||
<script>
|
||||
function popupCheck() {
|
||||
function popupCheck() {
|
||||
const filePath = path.join(__dirname, `./assets/appSetting/AppSetting.json`);
|
||||
fs.readFile(filePath, 'utf8', (err, data) => {
|
||||
if (err) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user