File manager - Edit - /home/antilam/web/antilam.ru/public_html/wp-content/themes/woodmart/js/scripts/menu/categoriesMenu.min.js
Back
!function(e){woodmartThemeModule.$document.on("wdShopPageInit",function(){woodmartThemeModule.categoriesMenuBtns(),woodmartThemeModule.categoriesMenu()}),jQuery.each(["frontend/element_ready/wd_product_categories.default","frontend/element_ready/wd_page_title.default"],function(e,o){woodmartThemeModule.wdElementorAddAction(o,function(){woodmartThemeModule.categoriesMenuBtns(),woodmartThemeModule.categoriesMenu()})}),woodmartThemeModule.categoriesMenu=function(){var o=e(".wd-nav-product-cat"),d=!1;woodmartThemeModule.$window.width()>1024&&o.stop().attr("style","");var n=200;o.each(function(){var o=e(this),t=o.parents(".wd-nav-accordion-mb-on"),a=t.find("wd-btn-show-cat"),s=t.hasClass("wd-nav-accordion-mb-on"),r=function(){a.removeClass("wd-active"),o.removeClass("categories-opened").stop().slideUp(n)};t.find(".wd-nav-opener").off("click").on("click",function(o){var t=e(this);o.preventDefault(),d||(d=!0,setTimeout(()=>{d=!1},n),t.closest(".has-sub").find("> ul").hasClass("child-open")?t.removeClass("wd-active").closest(".has-sub").find("> ul").slideUp(n).removeClass("child-open"):t.addClass("wd-active").closest(".has-sub").find("> ul").slideDown(n).addClass("child-open")),woodmartThemeModule.$document.trigger("wood-images-loaded")}),t.find(".wd-btn-show-cat > a").off("click").on("click",function(e){e.preventDefault(),!d&&s&&(d=!0,setTimeout(()=>{d=!1},n),t.find(".wd-dropdown, .wd-dropdown-menu, .wd-design-default").removeClass("wd-dropdown wd-dropdown-menu wd-design-default"),o.hasClass("categories-opened")?r():(a.addClass("wd-active"),o.addClass("categories-opened").stop().slideDown(n),woodmartThemeModule.$document.trigger("wood-images-loaded"),woodmartThemeModule.$document.trigger("wood-images-loaded")))}),t.find(".wd-nav-product-cat a").off("click").on("click",function(d){e(d.target).hasClass("wd-nav-opener")||(r(),o.stop().attr("style",""))})})},woodmartThemeModule.categoriesMenuBtns=function(){e(".wd-nav-product-cat.wd-mobile-accordion").each(function(){var o=e(this).find("li > ul").parent(),d=o.find(".wd-nav-opener");"undefined"!=typeof elementor&&elementor.hasOwnProperty("$preview")&&elementor.$preview.width()>1024||woodmartThemeModule.windowWidth>1024?d.remove():(d.remove(),o.addClass("has-sub").append('<span class="wd-nav-opener"></span>'))})},woodmartThemeModule.$window.on("resize",woodmartThemeModule.debounce(function(){woodmartThemeModule.categoriesMenuBtns(),woodmartThemeModule.categoriesMenu()},300)),e(document).ready(function(){woodmartThemeModule.categoriesMenuBtns(),woodmartThemeModule.categoriesMenu()})}(jQuery);
| ver. 1.4 |
Github
|
.
| PHP 8.4.22 | Generation time: 0.13 |
proxy
|
phpinfo
|
Settings