File "fullScreenMenu.min.js"
Full Path: /home/ycoalition/public_html/blog/wp-content/themes/woodmart/js/scripts/menu/fullScreenMenu.min.js
File size: 1.14 KB
MIME-type: text/plain
Charset: utf-8
!function(s){woodmartThemeModule.fullScreenMenu=function(){s(".wd-header-fs-nav > a").on("click",function(e){e.preventDefault(),s(".wd-fs-menu").addClass("wd-opened")}),woodmartThemeModule.$document.on("keyup",function(e){27===e.keyCode&&s(".wd-fs-close").click()}),s(".wd-fs-close").on("click",function(){s(".wd-fs-menu").removeClass("wd-opened"),setTimeout(function(){s(".wd-nav-fs .menu-item-has-children").removeClass("sub-menu-open"),s(".wd-nav-fs .menu-item-has-children .wd-nav-opener").removeClass("wd-active")},200)}),s(".wd-nav-fs > .menu-item-has-children > a, .wd-nav-fs .wd-dropdown-fs-menu.wd-design-default .menu-item-has-children > a").append('<span class="wd-nav-opener"></span>'),s(".wd-nav-fs").on("click",".wd-nav-opener",function(e){e.preventDefault();var e=s(this),n=e.parent().parent();n.hasClass("sub-menu-open")?(n.removeClass("sub-menu-open"),e.removeClass("wd-active")):(n.siblings(".sub-menu-open").find(".wd-nav-opener").removeClass("wd-active"),n.siblings(".sub-menu-open").removeClass("sub-menu-open"),n.addClass("sub-menu-open"),e.addClass("wd-active"))})},s(document).ready(function(){woodmartThemeModule.fullScreenMenu()})}(jQuery);