Spaces:
Sleeping
Sleeping
Update templates/proposed-GUI.html
Browse files
templates/proposed-GUI.html
CHANGED
|
@@ -1175,9 +1175,15 @@ function getSelectValues(select) {
|
|
| 1175 |
});
|
| 1176 |
|
| 1177 |
measids.forEach(function(elem) {
|
|
|
|
| 1178 |
elem.addEventListener("change", function() {
|
| 1179 |
// if (!(projsec.value.startsWith('2.8')))
|
| 1180 |
// {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1181 |
canvasimg='';
|
| 1182 |
ry=[[]];
|
| 1183 |
levelcheckbox.checked=false;
|
|
@@ -1191,11 +1197,7 @@ function getSelectValues(select) {
|
|
| 1191 |
// Open popup immediately before initiating the PDF download
|
| 1192 |
|
| 1193 |
|
| 1194 |
-
|
| 1195 |
-
if (projsec.value.startsWith('3.2') || projsec.value.startsWith('3.3')) {
|
| 1196 |
-
downloadPdf(pdfname);
|
| 1197 |
-
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.");
|
| 1198 |
-
}
|
| 1199 |
|
| 1200 |
$.get('/pixelimg/' + JSON.stringify(pixelArr))
|
| 1201 |
.success(function(data) {
|
|
|
|
| 1175 |
});
|
| 1176 |
|
| 1177 |
measids.forEach(function(elem) {
|
| 1178 |
+
|
| 1179 |
elem.addEventListener("change", function() {
|
| 1180 |
// if (!(projsec.value.startsWith('2.8')))
|
| 1181 |
// {
|
| 1182 |
+
// Show alert immediately to prompt the user
|
| 1183 |
+
if (projsec.value.startsWith('3.2') || projsec.value.startsWith('3.3')) {
|
| 1184 |
+
downloadPdf(pdfname);
|
| 1185 |
+
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.");
|
| 1186 |
+
}
|
| 1187 |
canvasimg='';
|
| 1188 |
ry=[[]];
|
| 1189 |
levelcheckbox.checked=false;
|
|
|
|
| 1197 |
// Open popup immediately before initiating the PDF download
|
| 1198 |
|
| 1199 |
|
| 1200 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1201 |
|
| 1202 |
$.get('/pixelimg/' + JSON.stringify(pixelArr))
|
| 1203 |
.success(function(data) {
|