CSSISSUE : AADHAVAN
This commit is contained in:
parent
ace083b56c
commit
84e5110f78
12
addform.html
12
addform.html
@ -439,8 +439,8 @@
|
|||||||
overflow-x: clip;
|
overflow-x: clip;
|
||||||
max-height: 750px;
|
max-height: 750px;
|
||||||
padding:0 10px 20px;
|
padding:0 10px 20px;
|
||||||
width: 314px;
|
/* width: 314px; */
|
||||||
/* width: 285px; */
|
width: 285px;
|
||||||
height: -webkit-fill-available;
|
height: -webkit-fill-available;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6068,7 +6068,7 @@ setInterval(removeNonExistentIdseveryTime, 1000)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
//Start this for Fcous where drag and drop using Arrow
|
<!-- //Start this for Fcous where drag and drop using Arrow -->
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('click', handleClick);
|
document.addEventListener('click', handleClick);
|
||||||
|
|
||||||
@ -6082,10 +6082,10 @@ setInterval(removeNonExistentIdseveryTime, 1000)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
//End this for Focus where drag and drop using Arrow
|
<!-- //End this for Focus where drag and drop using Arrow -->
|
||||||
|
|
||||||
|
|
||||||
//Start this for Highlight the All Div when its focus
|
<!-- Start this for Highlight the All Div when its focus -->
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener('focus', function(event) {
|
document.addEventListener('focus', function(event) {
|
||||||
if (event.target.className == "jodit-wysiwyg") {
|
if (event.target.className == "jodit-wysiwyg") {
|
||||||
@ -6096,7 +6096,7 @@ setInterval(removeNonExistentIdseveryTime, 1000)
|
|||||||
event.target.classList.remove('focused');
|
event.target.classList.remove('focused');
|
||||||
}, true);
|
}, true);
|
||||||
</script>
|
</script>
|
||||||
//End this for Highlight the All Div when its focus
|
<!-- //End this for Highlight the All Div when its focus -->
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@ -701,14 +701,14 @@ function duplicateFile(oldfilename) {
|
|||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: 'Enter Filename',
|
title: 'Enter Filename',
|
||||||
input: 'text',
|
input: 'text',
|
||||||
inputValue: '.xml',
|
inputValue: '',
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: 'Submit',
|
confirmButtonText: 'Submit',
|
||||||
cancelButtonText: 'Cancel',
|
cancelButtonText: 'Cancel',
|
||||||
inputValidator: (value) => {
|
inputValidator: (value) => {
|
||||||
// console.log(value);
|
// console.log(value);
|
||||||
const entervalue =value
|
const entervalue =value
|
||||||
if (value == '.xml') {
|
if (value == '') {
|
||||||
return 'You need to enter Filename!'
|
return 'You need to enter Filename!'
|
||||||
}
|
}
|
||||||
else if (value){
|
else if (value){
|
||||||
@ -720,7 +720,7 @@ function duplicateFile(oldfilename) {
|
|||||||
const jsonFilePath = `${xmlPath}${jsonFileName}`;
|
const jsonFilePath = `${xmlPath}${jsonFileName}`;
|
||||||
|
|
||||||
|
|
||||||
const newXmlFileNameParts = entervalue.split('.xml');
|
const newXmlFileNameParts = entervalue;
|
||||||
const newXmlBaseName = newXmlFileNameParts[0];
|
const newXmlBaseName = newXmlFileNameParts[0];
|
||||||
const newJsonFileName = `${newXmlBaseName}_answer.json`;
|
const newJsonFileName = `${newXmlBaseName}_answer.json`;
|
||||||
|
|
||||||
@ -747,7 +747,7 @@ function duplicateFile(oldfilename) {
|
|||||||
}else{
|
}else{
|
||||||
try {
|
try {
|
||||||
const content = fs.readFileSync(`${xmlFilePath}${oldfilename}`, 'utf-8');
|
const content = fs.readFileSync(`${xmlFilePath}${oldfilename}`, 'utf-8');
|
||||||
fs.writeFileSync(`${xmlFilePath}${entervalue}`, content, 'utf-8');
|
fs.writeFileSync(`${xmlFilePath}${entervalue}.xml`, content, 'utf-8');
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: "File Duplicated",
|
title: "File Duplicated",
|
||||||
icon: "success"
|
icon: "success"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user