trAvis - MANAGER
Edit File: plus-mobile-menu.min.js
/*mobile menu*/!function(){"use strict";function e(e,o){0<o(".tp-mm-wrapper.swiper-container,.tp-mm-l-wrapper.swiper-container,.tp-mm-r-wrapper.swiper-container").length&&new Swiper(".tp-mm-wrapper.swiper-container,.tp-mm-l-wrapper.swiper-container,.tp-mm-r-wrapper.swiper-container",{slidesPerView:"auto",mousewheelControl:!0,freeMode:!0}),0<o(".tp-mobile-menu.tpet-on").length&&(o(".tp-mm-et-link").on("click",function(e){o(this).closest(".tp-mobile-menu").find(".header-extra-toggle-content").addClass("open"),o(this).closest(".tp-mobile-menu").find(".extra-toggle-content-overlay").addClass("open")}),o(".extra-toggle-close-menu").on("click",function(e){e.preventDefault(),o(this).closest(".tp-mobile-menu").find(".header-extra-toggle-content").removeClass("open"),o(this).closest(".tp-mobile-menu").find(".extra-toggle-content-overlay").removeClass("open")}),o(".extra-toggle-content-overlay").on("click",function(e){e.preventDefault(),o(this).closest(".tp-mobile-menu").find(".header-extra-toggle-content").removeClass("open"),o(this).removeClass("open")})),0<o(".tp-mobile-menu .extra-toggle-close-menu.mm-ci-auto").length&&(o(".tp-mm-ca .tp-mm-et-link").on("click",function(e){o(this).closest(".tp-loop-inner").find(".tp-mm-et-link").addClass("tp-mm-ca"),o(this).closest(".tp-loop-inner").find(".extra-toggle-close-menu-auto").addClass("tp-mm-ca")}),o(".extra-toggle-close-menu-auto").on("click",function(){o(this).closest(".tp-mobile-menu").find(".header-extra-toggle-content").removeClass("open"),o(this).closest(".tp-mobile-menu").find(".extra-toggle-content-overlay").removeClass("open"),o(this).closest(".tp-mobile-menu").find(".tp-loop-inner .tp-mm-et-link").removeClass("tp-mm-ca"),o(this).closest(".tp-mobile-menu").find(".tp-loop-inner .extra-toggle-close-menu-auto").removeClass("tp-mm-ca")}),o(".extra-toggle-content-overlay").on("click",function(){o(this).closest(".tp-loop-inner").find(".extra-toggle-close-menu-auto.tp-mm-ca").trigger("click")}));var t=e.find(".tp-mobile-menu"),e=e.find(".tp-mobile-menu .tp-mm-ul");0<t.length&&e&&o(window).on("scroll",function(){var n=o(this).scrollTop();t.each(function(){var e=o(this).data("scroll-view"),t=o(this).data("uid"),t=o("."+t);e<n?t.addClass("show"):t.removeClass("show")})}),t.find(" a").each(function(){var e=(e=location.pathname).substr(e.indexOf("/")+1);(o(this).attr("href")==window.location.href.replace(/\/$/,"")||e&&o(this).attr("href")&&-1<o(this).attr("href").indexOf(e))&&o(this).closest(".tp-mm-li").addClass("active")})}jQuery(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/tp-mobile-menu.default",e)})}();