1
Fork 0
This commit is contained in:
Jake Howard 2017-09-30 22:53:22 +01:00
parent ac578dff35
commit db34e0d8c4
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,11 +1,13 @@
'use strict';
$(document).ready(function() {
var FADE_SETTINGS = {
duration: 400
};
$("input#search").keyup(function() {
$('input#search').keyup(function() {
var filter = new RegExp($(this).val(), 'gi');
$("div.search-results > div").each(function(){
$('div.search-results > div').each(function() {
if ($(this).text().search(filter) === -1) {
$(this).fadeOut(FADE_SETTINGS);
} else {