/var/www/protarget.com.ua/www/public/js
Edit: /var/www/protarget.com.ua/www/public/js/main.js (516B)
// cache collection of elements so only one dom search needed
var $casesElements = $('.cases');
$('.filter_link').click(function(e){
e.preventDefault();
$('.filter_link').removeClass("__active");
$(this).addClass("__active");
// get the category from the attribute
var filterVal = $(this).data('filter');
if(filterVal === 'all'){
$casesElements.show();
}else{
// hide all then filter the ones to show
$casesElements.hide().filter('.' + filterVal).show();
}
});