Spaces:
Sleeping
Sleeping
Update templates/proposed-GUI.html
Browse files- templates/proposed-GUI.html +21 -2
templates/proposed-GUI.html
CHANGED
|
@@ -1391,6 +1391,7 @@ document.getElementById('pdftodxfFile').addEventListener('input',function(){
|
|
| 1391 |
});
|
| 1392 |
function ImgSide(imgdata, spreadsheetLink, pdfLink) {
|
| 1393 |
var backimg = document.getElementById('backgroundimg');
|
|
|
|
| 1394 |
|
| 1395 |
// Create a container for the image and buttons
|
| 1396 |
var imgContainer = document.createElement('div');
|
|
@@ -1451,6 +1452,16 @@ function ImgSide(imgdata, spreadsheetLink, pdfLink) {
|
|
| 1451 |
|
| 1452 |
backimg.appendChild(imgContainer);
|
| 1453 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1454 |
|
| 1455 |
function getData(form) {
|
| 1456 |
|
|
@@ -1692,8 +1703,8 @@ if (formvalues['selectprojs'].startsWith('1.0') || formvalues['selectprojs'].st
|
|
| 1692 |
const interval = 6000;
|
| 1693 |
const initialDelay = 0;
|
| 1694 |
console.log('Starting first AJAX request...');
|
| 1695 |
-
let delrows1=
|
| 1696 |
-
let delrows2=
|
| 1697 |
|
| 1698 |
|
| 1699 |
// First AJAX request
|
|
@@ -1754,6 +1765,14 @@ async function fetchAndCompareData() {
|
|
| 1754 |
console.log('Differences found:', delrows1, delrows2);
|
| 1755 |
if (confirm("Changes have been made in the markups. Would you like to save and view them in the legend?")) {
|
| 1756 |
delrows1=delrows2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1757 |
await $.ajax({
|
| 1758 |
type: "POST",
|
| 1759 |
url: "/deletemarkupsroute",
|
|
|
|
| 1391 |
});
|
| 1392 |
function ImgSide(imgdata, spreadsheetLink, pdfLink) {
|
| 1393 |
var backimg = document.getElementById('backgroundimg');
|
| 1394 |
+
backimg.innerHTML=''
|
| 1395 |
|
| 1396 |
// Create a container for the image and buttons
|
| 1397 |
var imgContainer = document.createElement('div');
|
|
|
|
| 1452 |
|
| 1453 |
backimg.appendChild(imgContainer);
|
| 1454 |
}
|
| 1455 |
+
function updatepreview(pdfname){
|
| 1456 |
+
console.log('pdfpath',pdfname)
|
| 1457 |
+
|
| 1458 |
+
$.get( '/updatepreviewimg/'+ JSON.stringify(pdfname))
|
| 1459 |
+
.success( function(data) {
|
| 1460 |
+
document.getElementById("loading").hidden = true;
|
| 1461 |
+
ImgSide(data,spreadsheetURL,dropboxLink)
|
| 1462 |
+
|
| 1463 |
+
})
|
| 1464 |
+
}
|
| 1465 |
|
| 1466 |
function getData(form) {
|
| 1467 |
|
|
|
|
| 1703 |
const interval = 6000;
|
| 1704 |
const initialDelay = 0;
|
| 1705 |
console.log('Starting first AJAX request...');
|
| 1706 |
+
let delrows1=''; // Define delrows1 in a broader scope
|
| 1707 |
+
let delrows2=''; // Define delrows1 in a broader scope
|
| 1708 |
|
| 1709 |
|
| 1710 |
// First AJAX request
|
|
|
|
| 1765 |
console.log('Differences found:', delrows1, delrows2);
|
| 1766 |
if (confirm("Changes have been made in the markups. Would you like to save and view them in the legend?")) {
|
| 1767 |
delrows1=delrows2
|
| 1768 |
+
document.getElementById("loading").hidden = false;
|
| 1769 |
+
document.getElementById("loading").style.marginTop='20%'
|
| 1770 |
+
document.getElementById("loading").style.marginLeft='75%'
|
| 1771 |
+
|
| 1772 |
+
updatepreview([pdfpath,Object.fromEntries(formData)['measureselectname']])
|
| 1773 |
+
|
| 1774 |
+
// document.getElementsByClassName('imgContainer')[0].src=''
|
| 1775 |
+
|
| 1776 |
await $.ajax({
|
| 1777 |
type: "POST",
|
| 1778 |
url: "/deletemarkupsroute",
|