Added search function to main pages
This commit is contained in:
@@ -169,4 +169,10 @@ th.meta {
|
||||
height: 2.4rem;
|
||||
line-height: 2.4rem;
|
||||
color: rgba(255,255,255,0.87)!important;
|
||||
}
|
||||
input#SearchInput {
|
||||
height: 3.6rem;
|
||||
border-left: 11px solid white;
|
||||
margin-left: -11px;
|
||||
margin-top: 9px;
|
||||
}
|
||||
14
assets/js/search-bar.js
Normal file
14
assets/js/search-bar.js
Normal file
@@ -0,0 +1,14 @@
|
||||
$(document).ready(function(){
|
||||
$("#SearchInput").on("keyup", function() {
|
||||
var value = $(this).val().toLowerCase();
|
||||
$("#Search_table tr").filter(function() {
|
||||
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
$(document).ready(function(){
|
||||
$("#SearchButton").click(function(){
|
||||
$("#SearchInput").toggle();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user