HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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");
    });


});