File: D:/HostingSpaces/SBogers10/topswtw.komma.pro/wwwroot/js/app/pages/brands.js
define([
'isotope',
'app/modules/contentWatcher',
'plugins/equalHeight'
],function(Isotope, contentWatcher)
{
// Isotope brands
if($('.isotope-brands').size())
{
var isotopeBrands = '.isotope-brands';
//$(isotopeBrands).equalHeight();
var iso = new Isotope( isotopeBrands, {});
$('#filters').children('li.active').bind('click', function () {
var filterValue = $(this).attr('data-filter');
iso.arrange({ filter: '.' + filterValue });
});
// filter items on button click
$('#filters_all').bind('click', function () {
iso.arrange({ filter: '*' });
});
}
// Tsunami effect on brand alphabet
var $tsunamiListItem = $('.tsunami li');
$tsunamiListItem.on("mouseenter", function () {
$(this).prev().addClass("beside");
$(this).next().addClass("beside");
});
$tsunamiListItem.on("mouseleave", function () {
$(this).prev().removeClass("beside");
$(this).next().removeClass("beside");
});
});