Sha256: fcb575cb01d3a2ad2a48ec909b1d210cf36cc619daebf093b8b57fa832728deb
Contents?: true
Size: 638 Bytes
Versions: 4
Compression:
Stored size: 638 Bytes
Contents
(function($){ 'use strict'; function initNavbar () { $('.navbar-toggle').on('click', function(event) { $(this).toggleClass('open'); $('#navigation').slideToggle(400); $('.cart, .search').removeClass('open'); }); $('.navigation-menu>li').slice(-1).addClass('last-elements'); $('.navigation-menu li.has-submenu a[href="#"]').on('click', function(e) { if ($(window).width() < 992) { e.preventDefault(); $(this).parent('li').toggleClass('open').find('.submenu:first').toggleClass('open'); } }); } function init () { initNavbar(); } init(); })(jQuery)
Version data entries
4 entries across 4 versions & 1 rubygems