Spaces:
Sleeping
Sleeping
Update templates/proposed-GUI.html
Browse files- templates/proposed-GUI.html +36 -2
templates/proposed-GUI.html
CHANGED
|
@@ -859,7 +859,7 @@ function downloadPdf(pdfname) {
|
|
| 859 |
clone.children[5].children[4].id='addmctnameid'+dupliatei
|
| 860 |
clone.children[5].children[6].style.display='none'
|
| 861 |
clone.children[5].style.marginTop='8px';
|
| 862 |
-
|
| 863 |
clone.removeAttribute("hidden");
|
| 864 |
clone.setAttribute('class','duplicaterclass'+dupliatei);
|
| 865 |
clone.getElementsByClassName('measurementselections')[0].setAttribute('name', 'measurementscripts'+dupliatei);
|
|
@@ -871,6 +871,20 @@ function downloadPdf(pdfname) {
|
|
| 871 |
clone.getElementsByClassName('repeatforloopclasshidden')[0].setAttribute('id', 'repeatforloop'+addciconval+'0');
|
| 872 |
clone.getElementsByClassName('repeatforloopclasshidden')[0].setAttribute('name', 'repeatforloopname'+addciconval+'0');
|
| 873 |
clone.getElementsByClassName('repeatforloopclasshidden')[0].setAttribute('class', 'repeatforloopclass'+addciconval+'0');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 874 |
original.parentNode.appendChild(clone);
|
| 875 |
clone.parentElement.insertBefore(clone, document.getElementById('doneebackground'));
|
| 876 |
|
|
@@ -1523,6 +1537,15 @@ function getData(form) {
|
|
| 1523 |
document.getElementById("loading").hidden = true;
|
| 1524 |
document.getElementById("rightside").hidden = false;
|
| 1525 |
document.getElementById('duplicater').removeAttribute('hidden');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1526 |
document.getElementById('addicon').style.display='inline-block';
|
| 1527 |
document.getElementById('doneebackground').removeAttribute('hidden');
|
| 1528 |
document.getElementById('summarytoXML').removeAttribute('hidden');
|
|
@@ -2070,7 +2093,6 @@ function getmctName(){
|
|
| 2070 |
var selections = divduplicater[3];//ex: Gb:m
|
| 2071 |
measitemVal=divduplicater[5].value; // ex:area
|
| 2072 |
var div=divduplicater[8].children;// first repeatforloopclass
|
| 2073 |
-
|
| 2074 |
var divValues=['text1'+div[0].value, div[1].value , div[2].value];
|
| 2075 |
mctname=[selections.value ,divValues , measitemVal ];
|
| 2076 |
|
|
@@ -2329,6 +2351,14 @@ window.onclick = elem => {
|
|
| 2329 |
$("#"+elem.target.parentElement.parentElement.id).append(clone);
|
| 2330 |
$("#"+elem.target.parentElement.id).insertBefore(clone,document.getElementById('doneebackground'));
|
| 2331 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2332 |
}
|
| 2333 |
}
|
| 2334 |
}
|
|
@@ -2581,6 +2611,10 @@ function chooseFirstdrpdwn()
|
|
| 2581 |
optn1.text= 'Wall';
|
| 2582 |
optn1.value= "Wall";
|
| 2583 |
inputs.add(optn1);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2584 |
}
|
| 2585 |
if (section.value.startsWith('2.8'))
|
| 2586 |
{
|
|
|
|
| 859 |
clone.children[5].children[4].id='addmctnameid'+dupliatei
|
| 860 |
clone.children[5].children[6].style.display='none'
|
| 861 |
clone.children[5].style.marginTop='8px';
|
| 862 |
+
console.log('ayhaga', clone.children[5])
|
| 863 |
clone.removeAttribute("hidden");
|
| 864 |
clone.setAttribute('class','duplicaterclass'+dupliatei);
|
| 865 |
clone.getElementsByClassName('measurementselections')[0].setAttribute('name', 'measurementscripts'+dupliatei);
|
|
|
|
| 871 |
clone.getElementsByClassName('repeatforloopclasshidden')[0].setAttribute('id', 'repeatforloop'+addciconval+'0');
|
| 872 |
clone.getElementsByClassName('repeatforloopclasshidden')[0].setAttribute('name', 'repeatforloopname'+addciconval+'0');
|
| 873 |
clone.getElementsByClassName('repeatforloopclasshidden')[0].setAttribute('class', 'repeatforloopclass'+addciconval+'0');
|
| 874 |
+
if (thirddropdown.value.startsWith('3.2'))
|
| 875 |
+
{
|
| 876 |
+
|
| 877 |
+
clone.children[5].children[1].setAttribute('disabled','True')
|
| 878 |
+
clone.children[5].children[2].setAttribute('disabled','True')
|
| 879 |
+
|
| 880 |
+
clone.children[5].children [1].style.cursor='not-allowed';
|
| 881 |
+
clone.children[5].children[2].style.cursor='not-allowed';
|
| 882 |
+
|
| 883 |
+
// document.getElementById('duplicater' + dupliatei).children[8].children[1].style.cursor='not-allowed';
|
| 884 |
+
// document.getElementById('duplicater' + dupliatei).children[8].children[2].style.cursor='not-allowed';
|
| 885 |
+
|
| 886 |
+
}
|
| 887 |
+
|
| 888 |
original.parentNode.appendChild(clone);
|
| 889 |
clone.parentElement.insertBefore(clone, document.getElementById('doneebackground'));
|
| 890 |
|
|
|
|
| 1537 |
document.getElementById("loading").hidden = true;
|
| 1538 |
document.getElementById("rightside").hidden = false;
|
| 1539 |
document.getElementById('duplicater').removeAttribute('hidden');
|
| 1540 |
+
if (formvalues['selectprojs'].startsWith('3.2'))
|
| 1541 |
+
{
|
| 1542 |
+
document.getElementById('duplicater').children[8].children[1].setAttribute('disabled','True')
|
| 1543 |
+
document.getElementById('duplicater').children[8].children[2].setAttribute('disabled','True')
|
| 1544 |
+
|
| 1545 |
+
document.getElementById('duplicater').children[8].children[1].style.cursor='not-allowed';
|
| 1546 |
+
document.getElementById('duplicater').children[8].children[2].style.cursor='not-allowed';
|
| 1547 |
+
|
| 1548 |
+
}
|
| 1549 |
document.getElementById('addicon').style.display='inline-block';
|
| 1550 |
document.getElementById('doneebackground').removeAttribute('hidden');
|
| 1551 |
document.getElementById('summarytoXML').removeAttribute('hidden');
|
|
|
|
| 2093 |
var selections = divduplicater[3];//ex: Gb:m
|
| 2094 |
measitemVal=divduplicater[5].value; // ex:area
|
| 2095 |
var div=divduplicater[8].children;// first repeatforloopclass
|
|
|
|
| 2096 |
var divValues=['text1'+div[0].value, div[1].value , div[2].value];
|
| 2097 |
mctname=[selections.value ,divValues , measitemVal ];
|
| 2098 |
|
|
|
|
| 2351 |
$("#"+elem.target.parentElement.parentElement.id).append(clone);
|
| 2352 |
$("#"+elem.target.parentElement.id).insertBefore(clone,document.getElementById('doneebackground'));
|
| 2353 |
}
|
| 2354 |
+
|
| 2355 |
+
if (thirddropdown.value.startsWith('3.2'))
|
| 2356 |
+
{
|
| 2357 |
+
document.getElementById( 'repeatforloop'+ elem.target.parentElement.parentElement.childNodes[1].value[0] +elem.target.parentElement.parentElement.childNodes[1].value[1]).children[1].setAttribute('disabled','True')
|
| 2358 |
+
document.getElementById( 'repeatforloop'+ elem.target.parentElement.parentElement.childNodes[1].value[0] +elem.target.parentElement.parentElement.childNodes[1].value[1]).children[2].setAttribute('disabled','True')
|
| 2359 |
+
document.getElementById( 'repeatforloop'+ elem.target.parentElement.parentElement.childNodes[1].value[0] +elem.target.parentElement.parentElement.childNodes[1].value[1]).children[1].style.cursor='not-allowed';
|
| 2360 |
+
document.getElementById( 'repeatforloop'+ elem.target.parentElement.parentElement.childNodes[1].value[0] +elem.target.parentElement.parentElement.childNodes[1].value[1]).children[2].style.cursor='not-allowed';
|
| 2361 |
+
}
|
| 2362 |
}
|
| 2363 |
}
|
| 2364 |
}
|
|
|
|
| 2611 |
optn1.text= 'Wall';
|
| 2612 |
optn1.value= "Wall";
|
| 2613 |
inputs.add(optn1);
|
| 2614 |
+
var optn2 = document.createElement("OPTION");
|
| 2615 |
+
optn2.text= 'Internal Doors';
|
| 2616 |
+
optn2.value= "Internal Doors";
|
| 2617 |
+
inputs.add(optn2);
|
| 2618 |
}
|
| 2619 |
if (section.value.startsWith('2.8'))
|
| 2620 |
{
|