Wiki:Filter

 function r(f){/in/.test(document.readyState)?setTimeout('r('+f+')',9):f} r(function{ var skill = ""; var skills = skill.split("/"); var uid = "-"; var otherButtons = $(".multicast").not("." + uid); var button = $(".multicast." + uid); var table, match;

button.show(0).css({'margin':'2px','padding':'2px 8px','background-color':'#fd9b2e','color':'#fafdff','border':'none','border-radius':'6px','float':'right'}); button.unbind.click(function{	table = $(this).parent.parent.parent.children("tr");	table.css({'background-color':'transparent'});	if (button.data("filter") == 1) {		button.data("filter", 0);		button.css({'background-color':'#fd9b2e','box-shadow':'none'});		otherButtons.css({'background-color':'#fd9b2e','box-shadow':'none'});	}	else {		button.data("filter", 1);		button.css({'background-color':'#cc0000','box-shadow':'inset 0 0 0 2px #880408'});		otherButtons.data("filter", 0);		otherButtons.css({'background-color':'#fd9b2e','box-shadow':'none'});

table.filter(function(index){			match = false;			skills.forEach(function(name) { if ($.trim($("td:nth-child(1)", this).contents.not($("td:nth-child(1) span", this)).text) == $.trim(name) ||				$.trim($("td:nth-child(2)", this).contents.not($("td:nth-child(2) span", this)).text) == $.trim(name) ||				$.trim($("td:nth-child(4)", this).contents.not($("td:nth-child(4) span", this)).text) == $.trim(name)) { match = true; }			}, this);			if (match) {				return true;			}		}).css({'background-color':'#ffedbd'}); } }); }); Filter