Spaces:
Sleeping
Sleeping
Update templates/proposed-GUI.html
Browse files
templates/proposed-GUI.html
CHANGED
|
@@ -1497,8 +1497,10 @@ function getData(form) {
|
|
| 1497 |
pdfpath.push(formvalues['selectproj'],formvalues['selectprojp'] ,formvalues['selectprojs']) //project name - part - section
|
| 1498 |
|
| 1499 |
if (canvasimg){
|
|
|
|
| 1500 |
buf=canvasimg.split("data:image/png;base64,")
|
| 1501 |
-
answers.push(tomeasureproj, 220,allcolors , ratio1, ratio2 ,pdfpath,buf[1]);
|
|
|
|
| 1502 |
}
|
| 1503 |
|
| 1504 |
else{
|
|
@@ -1510,10 +1512,10 @@ function getData(form) {
|
|
| 1510 |
answers.push(tomeasureproj, 0,[], ratio1, ratio2 ,pdfpath);
|
| 1511 |
formData.append('file',dxffile)
|
| 1512 |
formData.append('answers',JSON.stringify(answers))
|
| 1513 |
-
}
|
| 1514 |
else if (formvalues['selectprojs'].startsWith('1.0'))
|
| 1515 |
{
|
| 1516 |
-
console.log('
|
| 1517 |
file=''
|
| 1518 |
answers.push(tomeasureproj, 0,[] , ratio1, ratio2 ,pdfpath);
|
| 1519 |
formData.append('answers',JSON.stringify(answers))
|
|
@@ -2750,6 +2752,7 @@ var createdTimeDiv= document.getElementById('createdTimeDiv');
|
|
| 2750 |
/*Create divs for each prj and div for each part*/
|
| 2751 |
getlegendstoDirectory()
|
| 2752 |
function getlegendstoDirectory(){
|
|
|
|
| 2753 |
$.get( '/getdrivelinks/'+'0').then (function(data){
|
| 2754 |
|
| 2755 |
pathsarr=data
|
|
|
|
| 1497 |
pdfpath.push(formvalues['selectproj'],formvalues['selectprojp'] ,formvalues['selectprojs']) //project name - part - section
|
| 1498 |
|
| 1499 |
if (canvasimg){
|
| 1500 |
+
console.log('canvasimg')
|
| 1501 |
buf=canvasimg.split("data:image/png;base64,")
|
| 1502 |
+
answers.push(tomeasureproj, 220,allcolors , ratio1, ratio2 ,pdfpath,buf[1]);
|
| 1503 |
+
formData.append('answers',JSON.stringify(answers))
|
| 1504 |
}
|
| 1505 |
|
| 1506 |
else{
|
|
|
|
| 1512 |
answers.push(tomeasureproj, 0,[], ratio1, ratio2 ,pdfpath);
|
| 1513 |
formData.append('file',dxffile)
|
| 1514 |
formData.append('answers',JSON.stringify(answers))
|
| 1515 |
+
}
|
| 1516 |
else if (formvalues['selectprojs'].startsWith('1.0'))
|
| 1517 |
{
|
| 1518 |
+
console.log('whyyyy hereeee')
|
| 1519 |
file=''
|
| 1520 |
answers.push(tomeasureproj, 0,[] , ratio1, ratio2 ,pdfpath);
|
| 1521 |
formData.append('answers',JSON.stringify(answers))
|
|
|
|
| 2752 |
/*Create divs for each prj and div for each part*/
|
| 2753 |
getlegendstoDirectory()
|
| 2754 |
function getlegendstoDirectory(){
|
| 2755 |
+
console.log('in hereee')
|
| 2756 |
$.get( '/getdrivelinks/'+'0').then (function(data){
|
| 2757 |
|
| 2758 |
pathsarr=data
|