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/modules/brandNavigation.js
define([],function() {

    // Mouse over - Open
    $('.nav-brands-buttons').children('li').bind('click', function () {
        var name = $(this).attr('data-name');
        var $group = $('#group_' + name);

        // Close other active
        $('.group.show').removeClass('show');
        $('.nav-brands-buttons .active').removeClass('active');

        var h = $group.children('.inner').outerHeight();
        $('.nav-brands-group-holder').stop().animate({height: h + 'px'}, 300);

        $group.addClass('show');
        $(this).addClass('active');
    });

    // Mouse out - Close
    $('.nav-brands').bind('mouseleave', function () {
        $('.group.show').removeClass('show');
        $('.nav-brands-group-holder').stop().animate({height: 0}, 300);
        $('.nav-brands-buttons .active').removeClass('active');
    });
});