Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/elementor-pro   php

Repository URL to install this package:

Version: 3.2.1 

/ js / nav-menu.6da75281e733e539a9ad.bundle.min.js

/*! elementor-pro - v3.2.1 - 21-03-2021 */
(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[42],{5389:(e,t,n)=>{"use strict";n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(1954);var o=elementorModules.frontend.handlers.Base.extend({stretchElement:null,getDefaultSettings:function getDefaultSettings(){return{selectors:{menu:".elementor-nav-menu",anchorLink:".elementor-nav-menu--main .elementor-item-anchor",dropdownMenu:".elementor-nav-menu__container.elementor-nav-menu--dropdown",menuToggle:".elementor-menu-toggle"}}},getDefaultElements:function getDefaultElements(){var e=this.getSettings("selectors"),t={};return t.$menu=this.$element.find(e.menu),t.$anchorLink=this.$element.find(e.anchorLink),t.$dropdownMenu=this.$element.find(e.dropdownMenu),t.$dropdownMenuFinalItems=t.$dropdownMenu.find(".menu-item:not(.menu-item-has-children) > a"),t.$menuToggle=this.$element.find(e.menuToggle),t},bindEvents:function bindEvents(){this.elements.$menu.length&&(this.elements.$menuToggle.on("click",this.toggleMenu.bind(this)),this.getElementSettings("full_width")&&this.elements.$dropdownMenuFinalItems.on("click",this.toggleMenu.bind(this,!1)),elementorFrontend.addListenerOnce(this.$element.data("model-cid"),"resize",this.stretchMenu))},initStretchElement:function initStretchElement(){this.stretchElement=new elementorModules.frontend.tools.StretchElement({element:this.elements.$dropdownMenu})},toggleMenu:function toggleMenu(e){var t=this.elements.$menuToggle.hasClass("elementor-active");"boolean"!=typeof e&&(e=!t),this.elements.$menuToggle.attr("aria-expanded",e),this.elements.$dropdownMenu.attr("aria-hidden",!e),this.elements.$menuToggle.toggleClass("elementor-active",e),e&&this.getElementSettings("full_width")&&this.stretchElement.stretch()},followMenuAnchors:function followMenuAnchors(){var e=this;e.elements.$anchorLink.each((function(){location.pathname===this.pathname&&""!==this.hash&&e.followMenuAnchor(jQuery(this))}))},followMenuAnchor:function followMenuAnchor(e){var t,n=e[0].hash,o=-300;try{t=jQuery(decodeURIComponent(n))}catch(e){return}if(t.length){if(!t.hasClass("elementor-menu-anchor")){var s=jQuery(window).height()/2;o=-t.outerHeight()+s}elementorFrontend.waypoint(t,(function(t){"down"===t?e.addClass("elementor-item-active"):e.removeClass("elementor-item-active")}),{offset:"50%",triggerOnce:!1}),elementorFrontend.waypoint(t,(function(t){"down"===t?e.removeClass("elementor-item-active"):e.addClass("elementor-item-active")}),{offset:o,triggerOnce:!1})}},stretchMenu:function stretchMenu(){this.getElementSettings("full_width")?(this.stretchElement.stretch(),this.elements.$dropdownMenu.css("top",this.elements.$menuToggle.outerHeight())):this.stretchElement.reset()},onInit:function onInit(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.elements.$menu.length&&(this.elements.$menu.smartmenus({subIndicatorsText:'<i class="fa"></i>',subIndicatorsPos:"append",subMenusMaxWidth:"1000px"}),this.initStretchElement(),this.stretchMenu(),elementorFrontend.isEditMode()||this.followMenuAnchors())},onElementChange:function onElementChange(e){"full_width"===e&&this.stretchMenu()}});t.default=o}}]);