Marthee commited on
Commit
0c973b0
·
verified ·
1 Parent(s): bbc4b91

Update templates/proposed-GUI.html

Browse files
Files changed (1) hide show
  1. templates/proposed-GUI.html +22 -31
templates/proposed-GUI.html CHANGED
@@ -94,7 +94,7 @@
94
 
95
  <div id="myModal" class="modal" >
96
  <span class="close">&times;</span>
97
- <img class="modal-content" id="img01">
98
  <div id="caption"></div>
99
  </div>
100
 
@@ -500,16 +500,11 @@
500
  </p>
501
  <div id="duplicaterExtra" hidden="until-found">
502
  <div id="repeatforloopExtra" class="repeatforloopclassExtra0" name="repeatforloopExtraname " >
503
- <label id="modalColIndex">Index</label>
504
- <i class="fa fa-info-circle smallFaIcon" id="infotoolModal">
505
- <span class="tooltiptext" id="modaltooltips">
506
- Index of column. (Optional)
507
- </span>
508
- </i>
509
  <label id="modalColumn">Type</label> <label id="modalGray">(from drawing)</label>
510
  <i class="fa fa-info-circle smallFaIcon" id="infotoolModal">
511
  <span class="tooltiptext" id="modaltooltips">
512
  Enter the title for the column as it will be shown in Bluebeam columns. This helps organize and categorize extracted information.
 
513
  </span>
514
  </i>
515
  <label id="modalKeyword">Specification</label> <label id="modalGray">(from drawing)</label>
@@ -525,8 +520,8 @@
525
  </span>
526
  </i>
527
  <br>
528
- <input type="number" id="textextra" name="text0name" placeholder="Eg: 1" >
529
- <input type="text" id="text0extra" name="text1name" placeholder="Eg: Wall Type" >
530
  <input type="text" id="text1extra" name="text2name" placeholder="Eg:NBS K10/" >
531
  <input type="number" id="text2extra" name="text3name" placeholder="Eg: 3" min="0">
532
 
@@ -543,8 +538,7 @@
543
  </div>
544
  <div hidden="until-found" id="duplicaterExtraHidden" >
545
  <div id="repeatforloopExtrahidden" class="repeatforloopclassExtrahidden" name="repeatforloopnameExtrahidden " > <!-- onchange="getmctName()" -->
546
- <input type="number" id="textextra" name="text0name" placeholder="Eg: 1" >
547
- <input type="text" id="text0extra" name="text1name" placeholder="Eg:Specification" >
548
  <input type="text" id="text1extra" name="text2name" placeholder="Eg:NBS K10/" >
549
  <input type="number" id="text2extra" name="text3name" placeholder="Eg: 3" >
550
  <script src="https://cdn.lordicon.com/bhenfmcm.js" ></script>
@@ -3468,18 +3462,15 @@ window.onclick = elem => {
3468
 
3469
  }
3470
  }
3471
- console.log()
3472
- if (sectionNumber.startsWith('2.7'))
3473
- {
3474
- textextra= cloneExtra.children[0]
3475
- textextra.style.backgroundColor = "rgba(101, 101, 101, 0.27)";
3476
- textextra.style.cursor='not-allowed';
3477
- textextra.disabled="disabled";
3478
 
3479
- }
3480
  if (sectionNumber.startsWith('2.8') || sectionNumber.startsWith('2.6'))
3481
  {
3482
- text2extra= cloneExtra.children[3]
 
 
 
 
 
3483
  text2extra.style.backgroundColor ="rgba(101, 101, 101, 0.27)";
3484
  text2extra.style.cursor='not-allowed';
3485
  text2extra.disabled="disabled";
@@ -3986,17 +3977,14 @@ document.getElementById("refreshAPIbutton").onclick = function()
3986
 
3987
  document.getElementById("popupforextratext").disabled=false;
3988
  document.getElementById("popupforextratext").onclick = function(){
3989
- if (sectionNumber.startsWith('2.7'))
3990
- {
3991
- textextra= document.getElementById("textextra")
3992
- textextra.style.backgroundColor = "rgba(101, 101, 101, 0.27)";
3993
- // textextra.style.border='2px solid #2f83c6'
3994
- textextra.style.cursor='not-allowed';
3995
- textextra.disabled="disabled";
3996
 
3997
- }
3998
  if (sectionNumber.startsWith('2.8') || sectionNumber.startsWith('2.6'))
3999
  {
 
 
 
 
 
4000
  text2extra= document.getElementById("text2extra")
4001
  text2extra.style.backgroundColor = "rgba(101, 101, 101, 0.27)";
4002
  text2extra.style.cursor='not-allowed';
@@ -4209,10 +4197,13 @@ function getpopuptext() {
4209
  });
4210
 
4211
  console.log("Collected input values:", values);
4212
-
 
 
 
4213
  // Group the values into subarrays of 4, only if any field has value
4214
- for (let i = 0; i < values.length; i += 4) {
4215
- const group = values.slice(i, i + 4);
4216
  if (group.some(val => val !== '')) {
4217
  groupedValues.push(group);
4218
  }
 
94
 
95
  <div id="myModal" class="modal" >
96
  <span class="close">&times;</span>
97
+ <img class="modal-contentImgLarger" id="img01">
98
  <div id="caption"></div>
99
  </div>
100
 
 
500
  </p>
501
  <div id="duplicaterExtra" hidden="until-found">
502
  <div id="repeatforloopExtra" class="repeatforloopclassExtra0" name="repeatforloopExtraname " >
 
 
 
 
 
 
503
  <label id="modalColumn">Type</label> <label id="modalGray">(from drawing)</label>
504
  <i class="fa fa-info-circle smallFaIcon" id="infotoolModal">
505
  <span class="tooltiptext" id="modaltooltips">
506
  Enter the title for the column as it will be shown in Bluebeam columns. This helps organize and categorize extracted information.
507
+ For the first entry (first row), please add the Door Type in here.
508
  </span>
509
  </i>
510
  <label id="modalKeyword">Specification</label> <label id="modalGray">(from drawing)</label>
 
520
  </span>
521
  </i>
522
  <br>
523
+
524
+ <input type="text" id="text0extra" name="text1name" placeholder="Eg: Door Type" >
525
  <input type="text" id="text1extra" name="text2name" placeholder="Eg:NBS K10/" >
526
  <input type="number" id="text2extra" name="text3name" placeholder="Eg: 3" min="0">
527
 
 
538
  </div>
539
  <div hidden="until-found" id="duplicaterExtraHidden" >
540
  <div id="repeatforloopExtrahidden" class="repeatforloopclassExtrahidden" name="repeatforloopnameExtrahidden " > <!-- onchange="getmctName()" -->
541
+ <input type="text" id="text0extra" name="text1name" placeholder="Eg: Column Name" >
 
542
  <input type="text" id="text1extra" name="text2name" placeholder="Eg:NBS K10/" >
543
  <input type="number" id="text2extra" name="text3name" placeholder="Eg: 3" >
544
  <script src="https://cdn.lordicon.com/bhenfmcm.js" ></script>
 
3462
 
3463
  }
3464
  }
 
 
 
 
 
 
 
3465
 
 
3466
  if (sectionNumber.startsWith('2.8') || sectionNumber.startsWith('2.6'))
3467
  {
3468
+ text1extra= cloneExtra.children[1]
3469
+ text1extra.style.backgroundColor ="rgba(101, 101, 101, 0.27)";
3470
+ text1extra.style.cursor='not-allowed';
3471
+ text1extra.disabled="disabled";
3472
+
3473
+ text2extra= cloneExtra.children[2]
3474
  text2extra.style.backgroundColor ="rgba(101, 101, 101, 0.27)";
3475
  text2extra.style.cursor='not-allowed';
3476
  text2extra.disabled="disabled";
 
3977
 
3978
  document.getElementById("popupforextratext").disabled=false;
3979
  document.getElementById("popupforextratext").onclick = function(){
 
 
 
 
 
 
 
3980
 
 
3981
  if (sectionNumber.startsWith('2.8') || sectionNumber.startsWith('2.6'))
3982
  {
3983
+ text1extra= document.getElementById("text1extra")
3984
+ text1extra.style.backgroundColor = "rgba(101, 101, 101, 0.27)";
3985
+ text1extra.style.cursor='not-allowed';
3986
+ text1extra.disabled="disabled";
3987
+
3988
  text2extra= document.getElementById("text2extra")
3989
  text2extra.style.backgroundColor = "rgba(101, 101, 101, 0.27)";
3990
  text2extra.style.cursor='not-allowed';
 
4197
  });
4198
 
4199
  console.log("Collected input values:", values);
4200
+ if (projsec.value.startsWith('2.7'))
4201
+ lengthofitems=3
4202
+ else if (projsec.value.startsWith('2.8') || projsec.value.startsWith('2.6'))
4203
+ lengthofitems=1
4204
  // Group the values into subarrays of 4, only if any field has value
4205
+ for (let i = 0; i < values.length; i += lengthofitems) {
4206
+ const group = values.slice(i, i + lengthofitems);
4207
  if (group.some(val => val !== '')) {
4208
  groupedValues.push(group);
4209
  }