Spaces:
Sleeping
Sleeping
Update templates/proposed-GUI.html
Browse files- templates/proposed-GUI.html +16 -9
templates/proposed-GUI.html
CHANGED
|
@@ -9,8 +9,10 @@
|
|
| 9 |
<title>ADR Console - V2</title>
|
| 10 |
|
| 11 |
</head>
|
| 12 |
-
<body>
|
| 13 |
-
|
|
|
|
|
|
|
| 14 |
<!--Main tab links-->
|
| 15 |
<div class="tab">
|
| 16 |
<button class="tablinks" id="pagetitle" onclick="openTab(event, 'home')">ADR Console <i class="fa fa-home" > </i></button>
|
|
@@ -857,13 +859,18 @@ measids.forEach(function(elem) {
|
|
| 857 |
|
| 858 |
console.log(elem.value);
|
| 859 |
measSelect.style.boxShadow='none';
|
|
|
|
|
|
|
| 860 |
pixelArr=[projname.value, projpart.value,projsec.value, elem.value]
|
| 861 |
$.get( '/pixelimg/'+JSON.stringify(pixelArr)) .then( function(data) {
|
| 862 |
// alert('Measure the white square drawn in the pdf on Bluebeam, then enter its area and perimeter in ur desired scale. \n' );
|
| 863 |
if(window.confirm("Measure the white square drawn in the pdf on Bluebeam, then enter its area and perimeter in ur desired scale. \n")){
|
|
|
|
| 864 |
window.open(data[2]);
|
| 865 |
-
}
|
| 866 |
|
|
|
|
|
|
|
|
|
|
| 867 |
document.getElementById('measureADRbutton').onclick= function()
|
| 868 |
{
|
| 869 |
if (!areaRatio.value)
|
|
@@ -1897,18 +1904,18 @@ if (flag==1){
|
|
| 1897 |
}
|
| 1898 |
});
|
| 1899 |
console.log(is_same);
|
| 1900 |
-
if (is_same)
|
| 1901 |
-
{
|
| 1902 |
|
| 1903 |
spreadsheetURL=spreadsheetURL+ '/edit#gid='+data[0].toString()
|
| 1904 |
console.log(spreadsheetURL);
|
| 1905 |
window.open(spreadsheetURL.toString()) //sheetid
|
| 1906 |
|
| 1907 |
-
}
|
| 1908 |
-
else{
|
| 1909 |
-
|
| 1910 |
|
| 1911 |
-
}
|
| 1912 |
|
| 1913 |
});
|
| 1914 |
}
|
|
|
|
| 9 |
<title>ADR Console - V2</title>
|
| 10 |
|
| 11 |
</head>
|
| 12 |
+
<body >
|
| 13 |
+
<div id="all">
|
| 14 |
+
<label id="pleasewait"> Please wait until the pdf is loaded onto the dropbox... </label>
|
| 15 |
+
</div>
|
| 16 |
<!--Main tab links-->
|
| 17 |
<div class="tab">
|
| 18 |
<button class="tablinks" id="pagetitle" onclick="openTab(event, 'home')">ADR Console <i class="fa fa-home" > </i></button>
|
|
|
|
| 859 |
|
| 860 |
console.log(elem.value);
|
| 861 |
measSelect.style.boxShadow='none';
|
| 862 |
+
|
| 863 |
+
document.getElementById("all").style.display = "block";
|
| 864 |
pixelArr=[projname.value, projpart.value,projsec.value, elem.value]
|
| 865 |
$.get( '/pixelimg/'+JSON.stringify(pixelArr)) .then( function(data) {
|
| 866 |
// alert('Measure the white square drawn in the pdf on Bluebeam, then enter its area and perimeter in ur desired scale. \n' );
|
| 867 |
if(window.confirm("Measure the white square drawn in the pdf on Bluebeam, then enter its area and perimeter in ur desired scale. \n")){
|
| 868 |
+
|
| 869 |
window.open(data[2]);
|
|
|
|
| 870 |
|
| 871 |
+
}
|
| 872 |
+
document.getElementById("all").style.display = "none";
|
| 873 |
+
|
| 874 |
document.getElementById('measureADRbutton').onclick= function()
|
| 875 |
{
|
| 876 |
if (!areaRatio.value)
|
|
|
|
| 1904 |
}
|
| 1905 |
});
|
| 1906 |
console.log(is_same);
|
| 1907 |
+
// if (is_same)
|
| 1908 |
+
// {
|
| 1909 |
|
| 1910 |
spreadsheetURL=spreadsheetURL+ '/edit#gid='+data[0].toString()
|
| 1911 |
console.log(spreadsheetURL);
|
| 1912 |
window.open(spreadsheetURL.toString()) //sheetid
|
| 1913 |
|
| 1914 |
+
// }
|
| 1915 |
+
// else{
|
| 1916 |
+
// alert('Guessed names in the legend do not match the names in the ADR Console. Please revise the inputs.');
|
| 1917 |
|
| 1918 |
+
// }
|
| 1919 |
|
| 1920 |
});
|
| 1921 |
}
|