Marthee commited on
Commit
dd0fcdc
·
1 Parent(s): f3080cd

Update templates/wordSearch.html

Browse files
Files changed (1) hide show
  1. templates/wordSearch.html +27 -2
templates/wordSearch.html CHANGED
@@ -15,6 +15,7 @@
15
  <link rel="stylesheet" href="static/wordSearchCss.css">
16
  <link rel="stylesheet" href="static/popups.css">
17
  <link rel="stylesheet" href="static/IMG-Larger.css">
 
18
  <meta charset="utf-8">
19
  <title>ADR Console</title>
20
  <link rel = "icon" type = "image/png" sizes = "180x154" href = "static/images/TSAlogoCropped180x154.png">
@@ -96,14 +97,19 @@
96
  </div>
97
 
98
  <div id ="tomeasurediv" hidden="until-found">
99
- <label id="measureLabel">Documents To Search in</label> <br>
 
 
100
  <div id="measureCheckbox">
101
  <select style="margin-left: -1%;" hidden id="measureselectid" multiple size="5" required> </select>
102
  </div>
103
  </div>
104
 
105
  <div id ="relvDocdiv" hidden="until-found">
106
- <label id="relvDocLabel">Other Relevant Documents</label> <br>
 
 
 
107
  <div id ="relvdiv">
108
  <select style="margin-left: -1%;" hidden name="relvselectname" id="relvselectid" multiple size="5"> </select>
109
  </div>
@@ -1017,5 +1023,24 @@ function ShowPopUp(){
1017
  mpopup.style.display = "none";
1018
  }
1019
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1020
  </script>
1021
 
 
15
  <link rel="stylesheet" href="static/wordSearchCss.css">
16
  <link rel="stylesheet" href="static/popups.css">
17
  <link rel="stylesheet" href="static/IMG-Larger.css">
18
+ <link rel="stylesheet" href="static/searchButton.css">
19
  <meta charset="utf-8">
20
  <title>ADR Console</title>
21
  <link rel = "icon" type = "image/png" sizes = "180x154" href = "static/images/TSAlogoCropped180x154.png">
 
97
  </div>
98
 
99
  <div id ="tomeasurediv" hidden="until-found">
100
+ <label id="measureLabel">Documents To Search in</label>
101
+ <!-- <input type="search" onkeyup=filterFunction(this.id) id="tomeasureSearchInput"> -->
102
+ <br>
103
  <div id="measureCheckbox">
104
  <select style="margin-left: -1%;" hidden id="measureselectid" multiple size="5" required> </select>
105
  </div>
106
  </div>
107
 
108
  <div id ="relvDocdiv" hidden="until-found">
109
+
110
+ <label id="relvDocLabel">Other Relevant Documents</label>
111
+ <input type="search" onkeyup=filterFunction(this.id) id="relevantSearchInput">
112
+ <br>
113
  <div id ="relvdiv">
114
  <select style="margin-left: -1%;" hidden name="relvselectname" id="relvselectid" multiple size="5"> </select>
115
  </div>
 
1023
  mpopup.style.display = "none";
1024
  }
1025
  };
1026
+
1027
+ function filterFunction(id) {
1028
+ var input, filter, ul, li, a, i;
1029
+ input = document.getElementById(id);
1030
+ filter = input.value.toUpperCase();
1031
+ if (id.toString().startsWith('tomeasure'))
1032
+ a = document.getElementById("measureselectid").children;
1033
+ else
1034
+ a = document.getElementById("relvselectid").children;
1035
+ // a = div.getElementsByTagName("option");
1036
+ for (i = 0; i < a.length; i++) {
1037
+ txtValue = a[i].textContent || a[i].innerText;
1038
+ if (txtValue.toUpperCase().indexOf(filter) > -1) {
1039
+ a[i].style.display = "";
1040
+ } else {
1041
+ a[i].style.display = "none";
1042
+ }
1043
+ }
1044
+ }
1045
  </script>
1046