Spaces:
Sleeping
Sleeping
Update templates/proposed-GUI.html
Browse files- templates/proposed-GUI.html +26 -2
templates/proposed-GUI.html
CHANGED
|
@@ -13,6 +13,7 @@
|
|
| 13 |
<link rel="stylesheet" href="static/LegendPageStyle.css">
|
| 14 |
<link rel="stylesheet" href="static/popups.css">
|
| 15 |
<link rel="stylesheet" href="static/IMG-Larger.css">
|
|
|
|
| 16 |
<meta charset="utf-8">
|
| 17 |
<title>ADR Console</title>
|
| 18 |
<link rel = "icon" type = "image/png" sizes = "180x154" href = "static/images/TSAlogoCropped180x154.png">
|
|
@@ -98,7 +99,9 @@
|
|
| 98 |
|
| 99 |
|
| 100 |
<div id ="tomeasurediv">
|
| 101 |
-
<label id="measureLabel">Document To Measure</label>
|
|
|
|
|
|
|
| 102 |
<div id="measureCheckbox">
|
| 103 |
<select style="margin-left: -1%;" hidden name="measureselectname" id="measureselectid" multiple size="5" required> </select>
|
| 104 |
<select id='selectunitA' hidden>
|
|
@@ -113,7 +116,9 @@
|
|
| 113 |
</div>
|
| 114 |
|
| 115 |
<div id ="relvDocdiv">
|
| 116 |
-
<label id="relvDocLabel">Other Relevant Documents</label>
|
|
|
|
|
|
|
| 117 |
<div id ="relvdiv">
|
| 118 |
<select style="margin-left: -1%;" hidden name="relvselectname" id="relvselectid" multiple size="5"> </select>
|
| 119 |
</div>
|
|
@@ -2428,5 +2433,24 @@ function ShowPopUp(){
|
|
| 2428 |
mpopup.style.display = "none";
|
| 2429 |
}
|
| 2430 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2431 |
</script>
|
| 2432 |
|
|
|
|
| 13 |
<link rel="stylesheet" href="static/LegendPageStyle.css">
|
| 14 |
<link rel="stylesheet" href="static/popups.css">
|
| 15 |
<link rel="stylesheet" href="static/IMG-Larger.css">
|
| 16 |
+
<link rel="stylesheet" href="static/searchButton.css">
|
| 17 |
<meta charset="utf-8">
|
| 18 |
<title>ADR Console</title>
|
| 19 |
<link rel = "icon" type = "image/png" sizes = "180x154" href = "static/images/TSAlogoCropped180x154.png">
|
|
|
|
| 99 |
|
| 100 |
|
| 101 |
<div id ="tomeasurediv">
|
| 102 |
+
<label id="measureLabel">Document To Measure</label>
|
| 103 |
+
<input type="search" onkeyup=filterFunction(this.id) id="tomeasureSearchInput">
|
| 104 |
+
<br>
|
| 105 |
<div id="measureCheckbox">
|
| 106 |
<select style="margin-left: -1%;" hidden name="measureselectname" id="measureselectid" multiple size="5" required> </select>
|
| 107 |
<select id='selectunitA' hidden>
|
|
|
|
| 116 |
</div>
|
| 117 |
|
| 118 |
<div id ="relvDocdiv">
|
| 119 |
+
<label id="relvDocLabel">Other Relevant Documents</label>
|
| 120 |
+
<input type="search" onkeyup=filterFunction(this.id) id="relevantSearchInput">
|
| 121 |
+
<br>
|
| 122 |
<div id ="relvdiv">
|
| 123 |
<select style="margin-left: -1%;" hidden name="relvselectname" id="relvselectid" multiple size="5"> </select>
|
| 124 |
</div>
|
|
|
|
| 2433 |
mpopup.style.display = "none";
|
| 2434 |
}
|
| 2435 |
};
|
| 2436 |
+
|
| 2437 |
+
function filterFunction(id) {
|
| 2438 |
+
var input, filter, ul, li, a, i;
|
| 2439 |
+
input = document.getElementById(id);
|
| 2440 |
+
filter = input.value.toUpperCase();
|
| 2441 |
+
if (id.toString().startsWith('tomeasure'))
|
| 2442 |
+
a = document.getElementById("measureselectid").children;
|
| 2443 |
+
else
|
| 2444 |
+
a = document.getElementById("relvselectid").children;
|
| 2445 |
+
// a = div.getElementsByTagName("option");
|
| 2446 |
+
for (i = 0; i < a.length; i++) {
|
| 2447 |
+
txtValue = a[i].textContent || a[i].innerText;
|
| 2448 |
+
if (txtValue.toUpperCase().indexOf(filter) > -1) {
|
| 2449 |
+
a[i].style.display = "";
|
| 2450 |
+
} else {
|
| 2451 |
+
a[i].style.display = "none";
|
| 2452 |
+
}
|
| 2453 |
+
}
|
| 2454 |
+
}
|
| 2455 |
</script>
|
| 2456 |
|