Marthee commited on
Commit
670b866
·
verified ·
1 Parent(s): 49e4824

Update templates/proposed-GUI.html

Browse files
Files changed (1) hide show
  1. templates/proposed-GUI.html +57 -40
templates/proposed-GUI.html CHANGED
@@ -440,6 +440,10 @@
440
  <div id="2_1textUserGuide" hidden class="othesectionsuserguide">
441
  User guide in progress...
442
 
 
 
 
 
443
  </div>
444
  <div id="2_7textUserGuide" hidden class="othesectionsuserguide">
445
  User guide in progress...
@@ -581,7 +585,7 @@
581
 
582
  ///////////////////////////////////////////////BEGIN JS CODE//////////////////////////////////////////////////
583
 
584
- var ActiveSections=['1.0','2.1','2.7','2.8','3.2','3.3']
585
 
586
  var menuItems = document.querySelectorAll("#UserGuidemenuOptions li");
587
 
@@ -962,7 +966,7 @@ worker.onmessage= function(event){
962
  opt=document.createElement("option");
963
  opt.textContent=data[2][d];
964
  opt.text=data[2][d];
965
- if(!(data[2][d].startsWith('1.0') ) && !(data[2][d].startsWith('3.2') ) && !(data[2][d].startsWith('2.8')) && !(data[2][d].startsWith('3.3')) && !(data[2][d].startsWith('2.1')) && !(data[i].startsWith('2.7'))) //||data[i].startsWith('2.2')))
966
  {
967
  opt.style.color='#bdbcbc';
968
  opt.style.cursor='not-allowed';
@@ -1395,7 +1399,7 @@ console.log('ayhaga', clone.children[5])
1395
  inputs1.add(optn);
1396
 
1397
  }
1398
- if (section.value.startsWith('2.8'))
1399
  {
1400
  var opt = document.createElement("OPTION");
1401
  opt.text= 'Select';
@@ -1506,6 +1510,11 @@ function ShowSectionUserguide(element) {
1506
  document.getElementById('2_1textUserGuide').style.display = 'block';
1507
  document.getElementById('2_1textUserGuide').removeAttribute('hidden');
1508
  }
 
 
 
 
 
1509
  else if (element.textContent.startsWith('2.7')) {
1510
  document.getElementById('2_7textUserGuide').style.display = 'block';
1511
  document.getElementById('2_7textUserGuide').removeAttribute('hidden');
@@ -1717,6 +1726,7 @@ var doorSchedulePDF;
1717
 
1718
  // Action when checkbox is clicked (e.g., log the selected project)
1719
  let selectedValue = event.target.value;
 
1720
  console.log("Selected project:", selectedValue);
1721
 
1722
  // Highlight the selected item
@@ -1742,15 +1752,19 @@ var doorSchedulePDF;
1742
  pdfname=selectedValue;
1743
  measSelect.style.boxShadow='none';
1744
 
1745
-
1746
- document.getElementById("all").style.display = "block";
1747
 
1748
- pixelArr=[projname.value, projpart.value,projsec.value, pdfname]
1749
- // Open popup immediately before initiating the PDF download
1750
- var eventSource = new EventSource('/pixelimg/' + JSON.stringify(pixelArr));
1751
- document.getElementById('progressBar').removeAttribute('hidden')
1752
- document.getElementById('progressBar').style.display='block';
1753
- eventSource.onmessage = function (event) {
 
 
 
 
 
 
1754
  var progress = parseInt(event.data); // Progress value from Flask
1755
  if (progress <= 100) {
1756
  console.log(progress); // Log progress for debugging
@@ -1773,21 +1787,21 @@ var doorSchedulePDF;
1773
  document.getElementById('progress').textContent = '0%';
1774
  document.getElementById("all").style.display = "none";
1775
  // Display link or any additional data if needed
1776
- window.open(data[2]);
1777
  downloadPdf(pdfname,'Pixel_Conversion_File_:'+pdfname)
1778
- document.getElementById("all").style.display = "none";
1779
-
1780
  document.getElementById('measureADRbutton').onclick= function()
1781
  {
1782
  if (!areaRatio.value){
1783
- if (!(projsec.value.startsWith('3.2')) & !(projsec.value.startsWith('2.8')) & !(projsec.value.startsWith('3.3')) & !(projsec.value.startsWith('2.7')) )
1784
  areaRatio.style.boxShadow='0 0 8px 2px rgb(255, 0, 0)';
1785
  }
1786
- if (!prmRatio.value)
1787
- {
1788
- if (!(projsec.value.startsWith('2.8')))
1789
- prmRatio.style.boxShadow='0 0 8px 2px rgb(255, 0, 0)';
1790
- }
1791
 
1792
  }
1793
  document.getElementById('radiosColors').removeAttribute('hidden');
@@ -1870,7 +1884,7 @@ var doorSchedulePDF;
1870
  prminpixels=data[1];
1871
 
1872
 
1873
- if( projsec.value.startsWith('2.8')) {
1874
  areaRatio.setAttribute('disabled',true)
1875
  areaRatio.style.cursor='not-allowed';
1876
  areaRatio.style.backgroundColor='rgba(101, 101, 101, 0.27)'
@@ -1918,7 +1932,7 @@ var doorSchedulePDF;
1918
  // pdfnames=getSelectValues(elem)
1919
  // }
1920
  }
1921
-
1922
  // Action for when the label is clicked (no checkbox change)
1923
  function handleLabelClick(event) {
1924
  // Action when label is clicked (e.g., log the selected project via the label)
@@ -1928,6 +1942,9 @@ var doorSchedulePDF;
1928
  document.querySelectorAll(".measure-item").forEach(item => {
1929
  item.style.backgroundColor = ''; // Reset background color for all items
1930
  });
 
 
 
1931
  // event.target.closest(".measure-item").style.backgroundColor = '#919592'; // Highlight the selected item
1932
  // Show loading indicator
1933
  document.getElementById("all").style.display = "block";
@@ -2005,7 +2022,7 @@ var doorSchedulePDF;
2005
  // Action when label is clicked (e.g., log the selected project via the label)
2006
  let relevantDocumentName = event.target.textContent;
2007
  console.log("Label clicked: ", relevantDocumentName);
2008
- if (projsec.value.startsWith('2.8')){
2009
  doorSchedulePDF=relevantDocumentName
2010
  console.log(doorSchedulePDF)
2011
  }
@@ -2031,7 +2048,7 @@ var doorSchedulePDF;
2031
  }
2032
  }
2033
 
2034
- relvids.push(relvSelect) ;
2035
  measids.push(measSelect);
2036
 
2037
  document.addEventListener("click", function(event) {
@@ -2049,7 +2066,7 @@ var doorSchedulePDF;
2049
  }
2050
 
2051
  if (!relvSelect.value) {
2052
- if (sectionNumber.startsWith('2.8')) {
2053
  relvSelect.style.boxShadow = '0 0 8px 2px rgb(255, 0, 0)';
2054
  relvSelect.setAttribute("required", "")
2055
  }
@@ -2062,7 +2079,7 @@ var doorSchedulePDF;
2062
 
2063
 
2064
  if (document.getElementById('arealvlinput')){
2065
- if( projsec.value.startsWith('3.2') || projsec.value.startsWith('2.8') || projsec.value.startsWith('3.3') || projsec.value.startsWith('2.1') || projsec.value.startsWith('2.7')){
2066
  document.getElementById('arealvlinput').setAttribute('disabled',true)
2067
  document.getElementById('selectunitA').setAttribute('disabled',true)
2068
  }
@@ -2157,7 +2174,7 @@ function ImgSide(imgdata, spreadsheetLink, pdfLink) {
2157
 
2158
 
2159
 
2160
- if ( projsec.value.startsWith('2.8')){
2161
  legendbutton.setAttribute('disabled',true);
2162
  legendbutton.style.cursor='not-allowed';
2163
  legendbutton.style.boxShadow = 'none';
@@ -2330,7 +2347,7 @@ function getData(form) {
2330
  ratio2=(formvalues['prmRatio']/ratioPunit)/prminpixels;
2331
  console.log('ratioss',ratio1,ratio2)
2332
  }
2333
- else if (formvalues['selectprojs'].startsWith('2.8') || formvalues['selectprojs'].startsWith('2.1') ){
2334
  ratio1=1;
2335
  ratio2=(formvalues['prmRatio']/ratioPunit)/prminpixels;
2336
  console.log('ratioss',ratio1,ratio2)
@@ -2376,14 +2393,14 @@ function getData(form) {
2376
  answers.push(tomeasureproj, 0,[] , ratio1, ratio2 ,pdfpath);
2377
  formData.append('answers',JSON.stringify(answers))
2378
  }
2379
- else if (formvalues['selectprojs'].startsWith('2.8') )
2380
  {
2381
  answers.push(tomeasureproj, 0,[] , 0,0,pdfpath , doorSchedulePDF);
2382
  formData.append('answers',JSON.stringify(answers))
2383
  }
2384
  }
2385
 
2386
- if (formvalues['selectprojs'].startsWith('1.0') || formvalues['selectprojs'].startsWith('3.2') || formvalues['selectprojs'].startsWith('2.8') || formvalues['selectprojs'].startsWith('3.3') || formvalues['selectprojs'].startsWith('2.7') ) //formvalues['selectprojs'].startsWith('2.1')
2387
  {
2388
  // console.log(formData)
2389
  $.ajax({
@@ -2408,9 +2425,9 @@ function getData(form) {
2408
  // var mp3_url = 'https://media.geeksforgeeks.org/wp-content/uploads/20190531135120/beep.mp3';
2409
  // (new Audio(mp3_url)).play()
2410
  // retrieveLinks()
2411
- if (!(formvalues['selectprojs'].startsWith('2.8')) )
2412
- startDropdownUpdates(); // Start the dropdown updates
2413
-
2414
 
2415
  document.getElementById("loading").hidden = true;
2416
  document.getElementById("rightside").hidden = false;
@@ -2476,7 +2493,7 @@ function getData(form) {
2476
 
2477
 
2478
  }
2479
- if (formvalues['selectprojs'].startsWith('2.8'))
2480
  { //base64.b64encode(buffer).decode('utf-8') ,pdflink,list1.to_dict(), repeated_labels , not_found]
2481
  // /* data[0]--> img , data[1]-->dataframe (goes to legend lsa ) , data [2] -->pdf dropbox shareable link ,data[3]-> spreadsheetId, data[4],spreadsheeturl */
2482
  // SimilarAreaDictionary=data[1];
@@ -2523,7 +2540,7 @@ function getData(form) {
2523
  // if (!(formvalues['selectprojs'].startsWith('2.8')))
2524
  // {
2525
  ImgSide(data[0],spreadsheetURL,dropboxLink)
2526
- if (formvalues['selectprojs'].startsWith('2.8')) {
2527
  let messages = [];
2528
  if (Repeated_Labels2_8)
2529
  if (Repeated_Labels2_8.length > 0) {
@@ -2692,7 +2709,7 @@ document.getElementById("myForm").addEventListener("submit", function (e) {
2692
 
2693
  let TopTextModal = document.getElementById("TopTextModal");
2694
  TopTextModal.textContent = "Warning: Missing Inputs";
2695
- if (sectionNumber.startsWith('2.8')) {
2696
 
2697
  // If section starts with '2.8', both measureCheckbox and relv-item must be selected
2698
  if (!isChecked & !isRelvClicked) {
@@ -3372,7 +3389,7 @@ if (sectionNumber.startsWith('2.7'))
3372
  textextra.disabled="disabled";
3373
 
3374
  }
3375
- if (sectionNumber.startsWith('2.8'))
3376
  {
3377
  text2extra= cloneExtra.children[3]
3378
  text2extra.style.backgroundColor ="rgba(101, 101, 101, 0.27)";
@@ -3690,7 +3707,7 @@ function chooseFirstdrpdwn()
3690
  optn.value= "Internal Walls";
3691
  inputs.add(optn);
3692
  }
3693
- if (section.value.startsWith('2.8'))
3694
  {
3695
  var opt = document.createElement("OPTION");
3696
  opt.text= 'Select';
@@ -3890,7 +3907,7 @@ if (sectionNumber.startsWith('2.7'))
3890
  textextra.disabled="disabled";
3891
 
3892
  }
3893
- if (sectionNumber.startsWith('2.8'))
3894
  {
3895
  text2extra= document.getElementById("text2extra")
3896
  text2extra.style.backgroundColor = "rgba(101, 101, 101, 0.27)";
@@ -4014,7 +4031,7 @@ function refreshAPIbuutton(dataa){
4014
  opt=document.createElement("option");
4015
  opt.textContent=dataa[2][d];
4016
  opt.text=dataa[2][d];
4017
- if(!(dataa[2][d].startsWith('1.0') ) || (data[i].startsWith('3.2') ) || (data[i].startsWith('2.8')) || (data[i].startsWith('3.3')) || (data[i].startsWith('2.1')) || (data[i].startsWith('2.7')) )//||data[i].startsWith('2.2')))
4018
  {
4019
  opt.style.color='#bdbcbc';
4020
  opt.style.cursor='not-allowed';
 
440
  <div id="2_1textUserGuide" hidden class="othesectionsuserguide">
441
  User guide in progress...
442
 
443
+ </div>
444
+ <div id="2_6textUserGuide" hidden class="othesectionsuserguide">
445
+ User guide in progress...
446
+
447
  </div>
448
  <div id="2_7textUserGuide" hidden class="othesectionsuserguide">
449
  User guide in progress...
 
585
 
586
  ///////////////////////////////////////////////BEGIN JS CODE//////////////////////////////////////////////////
587
 
588
+ var ActiveSections=['1.0','2.1','2.6','2.7','2.8','3.2','3.3']
589
 
590
  var menuItems = document.querySelectorAll("#UserGuidemenuOptions li");
591
 
 
966
  opt=document.createElement("option");
967
  opt.textContent=data[2][d];
968
  opt.text=data[2][d];
969
+ if(!(data[2][d].startsWith('1.0') ) && !(data[2][d].startsWith('3.2') ) && !(data[2][d].startsWith('2.8')) && !(data[2][d].startsWith('2.6')) && !(data[2][d].startsWith('3.3')) && !(data[2][d].startsWith('2.1')) && !(data[i].startsWith('2.7'))) //||data[i].startsWith('2.2')))
970
  {
971
  opt.style.color='#bdbcbc';
972
  opt.style.cursor='not-allowed';
 
1399
  inputs1.add(optn);
1400
 
1401
  }
1402
+ if (section.value.startsWith('2.8') || section.value.startsWith('2.6'))
1403
  {
1404
  var opt = document.createElement("OPTION");
1405
  opt.text= 'Select';
 
1510
  document.getElementById('2_1textUserGuide').style.display = 'block';
1511
  document.getElementById('2_1textUserGuide').removeAttribute('hidden');
1512
  }
1513
+
1514
+ else if (element.textContent.startsWith('2.6')) {
1515
+ document.getElementById('2_6textUserGuide').style.display = 'block';
1516
+ document.getElementById('2_6textUserGuide').removeAttribute('hidden');
1517
+ }
1518
  else if (element.textContent.startsWith('2.7')) {
1519
  document.getElementById('2_7textUserGuide').style.display = 'block';
1520
  document.getElementById('2_7textUserGuide').removeAttribute('hidden');
 
1726
 
1727
  // Action when checkbox is clicked (e.g., log the selected project)
1728
  let selectedValue = event.target.value;
1729
+ measSelect=selectedValue;
1730
  console.log("Selected project:", selectedValue);
1731
 
1732
  // Highlight the selected item
 
1752
  pdfname=selectedValue;
1753
  measSelect.style.boxShadow='none';
1754
 
 
 
1755
 
1756
+ if (!(projsec.value.startsWith('2.6') || projsec.value.startsWith('2.8'))) {
1757
+
1758
+
1759
+ document.getElementById("all").style.display = "block";
1760
+
1761
+ pixelArr=[projname.value, projpart.value,projsec.value, pdfname]
1762
+ // Open popup immediately before initiating the PDF download
1763
+
1764
+ var eventSource = new EventSource('/pixelimg/' + JSON.stringify(pixelArr));
1765
+ document.getElementById('progressBar').removeAttribute('hidden')
1766
+ document.getElementById('progressBar').style.display='block';
1767
+ eventSource.onmessage = function (event) {
1768
  var progress = parseInt(event.data); // Progress value from Flask
1769
  if (progress <= 100) {
1770
  console.log(progress); // Log progress for debugging
 
1787
  document.getElementById('progress').textContent = '0%';
1788
  document.getElementById("all").style.display = "none";
1789
  // Display link or any additional data if needed
1790
+ window.open(data[2]);
1791
  downloadPdf(pdfname,'Pixel_Conversion_File_:'+pdfname)
1792
+ document.getElementById("all").style.display = "none";
1793
+
1794
  document.getElementById('measureADRbutton').onclick= function()
1795
  {
1796
  if (!areaRatio.value){
1797
+ if (!(projsec.value.startsWith('3.2')) & !(projsec.value.startsWith('2.8')) & !(projsec.value.startsWith('2.6')) & !(projsec.value.startsWith('3.3')) & !(projsec.value.startsWith('2.7')) )
1798
  areaRatio.style.boxShadow='0 0 8px 2px rgb(255, 0, 0)';
1799
  }
1800
+ if (!prmRatio.value) {
1801
+ if (!(projsec.value.startsWith('2.6') || projsec.value.startsWith('2.8'))) {
1802
+ prmRatio.style.boxShadow = '0 0 8px 2px rgb(255, 0, 0)';
1803
+ }
1804
+ }
1805
 
1806
  }
1807
  document.getElementById('radiosColors').removeAttribute('hidden');
 
1884
  prminpixels=data[1];
1885
 
1886
 
1887
+ if( projsec.value.startsWith('2.8') || projsec.value.startsWith('2.6')) {
1888
  areaRatio.setAttribute('disabled',true)
1889
  areaRatio.style.cursor='not-allowed';
1890
  areaRatio.style.backgroundColor='rgba(101, 101, 101, 0.27)'
 
1932
  // pdfnames=getSelectValues(elem)
1933
  // }
1934
  }
1935
+ }
1936
  // Action for when the label is clicked (no checkbox change)
1937
  function handleLabelClick(event) {
1938
  // Action when label is clicked (e.g., log the selected project via the label)
 
1942
  document.querySelectorAll(".measure-item").forEach(item => {
1943
  item.style.backgroundColor = ''; // Reset background color for all items
1944
  });
1945
+ relvSelect=selectedLabel;
1946
+ relvSelect.style.boxShadow='none';
1947
+
1948
  // event.target.closest(".measure-item").style.backgroundColor = '#919592'; // Highlight the selected item
1949
  // Show loading indicator
1950
  document.getElementById("all").style.display = "block";
 
2022
  // Action when label is clicked (e.g., log the selected project via the label)
2023
  let relevantDocumentName = event.target.textContent;
2024
  console.log("Label clicked: ", relevantDocumentName);
2025
+ if (projsec.value.startsWith('2.8') ||projsec.value.startsWith('2.6')){
2026
  doorSchedulePDF=relevantDocumentName
2027
  console.log(doorSchedulePDF)
2028
  }
 
2048
  }
2049
  }
2050
 
2051
+ relvids.push(relvSelect);
2052
  measids.push(measSelect);
2053
 
2054
  document.addEventListener("click", function(event) {
 
2066
  }
2067
 
2068
  if (!relvSelect.value) {
2069
+ if (sectionNumber.startsWith('2.8') || sectionNumber.startsWith('2.6')) {
2070
  relvSelect.style.boxShadow = '0 0 8px 2px rgb(255, 0, 0)';
2071
  relvSelect.setAttribute("required", "")
2072
  }
 
2079
 
2080
 
2081
  if (document.getElementById('arealvlinput')){
2082
+ if( projsec.value.startsWith('3.2') || projsec.value.startsWith('2.8') || projsec.value.startsWith('2.6') || projsec.value.startsWith('3.3') || projsec.value.startsWith('2.1') || projsec.value.startsWith('2.7')){
2083
  document.getElementById('arealvlinput').setAttribute('disabled',true)
2084
  document.getElementById('selectunitA').setAttribute('disabled',true)
2085
  }
 
2174
 
2175
 
2176
 
2177
+ if ( projsec.value.startsWith('2.8') || projsec.value.startsWith('2.6')){
2178
  legendbutton.setAttribute('disabled',true);
2179
  legendbutton.style.cursor='not-allowed';
2180
  legendbutton.style.boxShadow = 'none';
 
2347
  ratio2=(formvalues['prmRatio']/ratioPunit)/prminpixels;
2348
  console.log('ratioss',ratio1,ratio2)
2349
  }
2350
+ else if (formvalues['selectprojs'].startsWith('2.8') ||formvalues['selectprojs'].startsWith('2.6') || formvalues['selectprojs'].startsWith('2.1') ){
2351
  ratio1=1;
2352
  ratio2=(formvalues['prmRatio']/ratioPunit)/prminpixels;
2353
  console.log('ratioss',ratio1,ratio2)
 
2393
  answers.push(tomeasureproj, 0,[] , ratio1, ratio2 ,pdfpath);
2394
  formData.append('answers',JSON.stringify(answers))
2395
  }
2396
+ else if (formvalues['selectprojs'].startsWith('2.8') || formvalues['selectprojs'].startsWith('2.6') )
2397
  {
2398
  answers.push(tomeasureproj, 0,[] , 0,0,pdfpath , doorSchedulePDF);
2399
  formData.append('answers',JSON.stringify(answers))
2400
  }
2401
  }
2402
 
2403
+ if (formvalues['selectprojs'].startsWith('1.0') || formvalues['selectprojs'].startsWith('3.2') || formvalues['selectprojs'].startsWith('2.8') || formvalues['selectprojs'].startsWith('2.6') || formvalues['selectprojs'].startsWith('3.3') || formvalues['selectprojs'].startsWith('2.7') ) //formvalues['selectprojs'].startsWith('2.1')
2404
  {
2405
  // console.log(formData)
2406
  $.ajax({
 
2425
  // var mp3_url = 'https://media.geeksforgeeks.org/wp-content/uploads/20190531135120/beep.mp3';
2426
  // (new Audio(mp3_url)).play()
2427
  // retrieveLinks()
2428
+ if (!(formvalues['selectprojs'].startsWith('2.6') || formvalues['selectprojs'].startsWith('2.8'))) {
2429
+ startDropdownUpdates();
2430
+ }
2431
 
2432
  document.getElementById("loading").hidden = true;
2433
  document.getElementById("rightside").hidden = false;
 
2493
 
2494
 
2495
  }
2496
+ if (formvalues['selectprojs'].startsWith('2.8') ||formvalues['selectprojs'].startsWith('2.6'))
2497
  { //base64.b64encode(buffer).decode('utf-8') ,pdflink,list1.to_dict(), repeated_labels , not_found]
2498
  // /* data[0]--> img , data[1]-->dataframe (goes to legend lsa ) , data [2] -->pdf dropbox shareable link ,data[3]-> spreadsheetId, data[4],spreadsheeturl */
2499
  // SimilarAreaDictionary=data[1];
 
2540
  // if (!(formvalues['selectprojs'].startsWith('2.8')))
2541
  // {
2542
  ImgSide(data[0],spreadsheetURL,dropboxLink)
2543
+ if (formvalues['selectprojs'].startsWith('2.8') || formvalues['selectprojs'].startsWith('2.6')) {
2544
  let messages = [];
2545
  if (Repeated_Labels2_8)
2546
  if (Repeated_Labels2_8.length > 0) {
 
2709
 
2710
  let TopTextModal = document.getElementById("TopTextModal");
2711
  TopTextModal.textContent = "Warning: Missing Inputs";
2712
+ if (sectionNumber.startsWith('2.8') || sectionNumber.startsWith('2.6')) {
2713
 
2714
  // If section starts with '2.8', both measureCheckbox and relv-item must be selected
2715
  if (!isChecked & !isRelvClicked) {
 
3389
  textextra.disabled="disabled";
3390
 
3391
  }
3392
+ if (sectionNumber.startsWith('2.8') || sectionNumber.startsWith('2.6'))
3393
  {
3394
  text2extra= cloneExtra.children[3]
3395
  text2extra.style.backgroundColor ="rgba(101, 101, 101, 0.27)";
 
3707
  optn.value= "Internal Walls";
3708
  inputs.add(optn);
3709
  }
3710
+ if (section.value.startsWith('2.8') || section.value.startsWith('2.6'))
3711
  {
3712
  var opt = document.createElement("OPTION");
3713
  opt.text= 'Select';
 
3907
  textextra.disabled="disabled";
3908
 
3909
  }
3910
+ if (sectionNumber.startsWith('2.8') || sectionNumber.startsWith('2.6'))
3911
  {
3912
  text2extra= document.getElementById("text2extra")
3913
  text2extra.style.backgroundColor = "rgba(101, 101, 101, 0.27)";
 
4031
  opt=document.createElement("option");
4032
  opt.textContent=dataa[2][d];
4033
  opt.text=dataa[2][d];
4034
+ if(!(dataa[2][d].startsWith('1.0') ) || (data[i].startsWith('3.2') ) || (data[i].startsWith('2.8')) || (data[i].startsWith('2.6')) || (data[i].startsWith('3.3')) || (data[i].startsWith('2.1')) || (data[i].startsWith('2.7')) )//||data[i].startsWith('2.2')))
4035
  {
4036
  opt.style.color='#bdbcbc';
4037
  opt.style.cursor='not-allowed';