Marthee commited on
Commit
c9d039a
·
verified ·
1 Parent(s): 07cdd91

Update templates/proposed-GUI.html

Browse files
Files changed (1) hide show
  1. templates/proposed-GUI.html +5 -4
templates/proposed-GUI.html CHANGED
@@ -1189,12 +1189,13 @@ function getSelectValues(select) {
1189
 
1190
  pixelArr=[projname.value, projpart.value,projsec.value, pdfname]
1191
  // Open popup immediately before initiating the PDF download
1192
- window.alert("Measure the purple shape drawn on the PDF using Foxit Reader, Bluebeam, or any other external tool, then enter its area and perimeter in your desired scale.")/// {
 
 
1193
  if (projsec.value.startsWith('3.2') || projsec.value.startsWith('3.3')) {
1194
-
1195
- downloadPdf(pdfname); // Initiate PDF download
1196
- // }
1197
  }
 
1198
  $.get('/pixelimg/' + JSON.stringify(pixelArr))
1199
  .success(function(data) {
1200
  document.getElementById("all").style.display = "none";
 
1189
 
1190
  pixelArr=[projname.value, projpart.value,projsec.value, pdfname]
1191
  // Open popup immediately before initiating the PDF download
1192
+ downloadPdf(pdfname);
1193
+
1194
+ // Show alert immediately to prompt the user
1195
  if (projsec.value.startsWith('3.2') || projsec.value.startsWith('3.3')) {
1196
+ window.alert("Measure the purple shape drawn on the PDF using Foxit Reader, Bluebeam, or any other external tool, then enter its area and perimeter in your desired scale.");
 
 
1197
  }
1198
+
1199
  $.get('/pixelimg/' + JSON.stringify(pixelArr))
1200
  .success(function(data) {
1201
  document.getElementById("all").style.display = "none";