PageSourceSearch

https://mygila.ir/wp-content/plugins/boostify-header-footer-builder/assets/js/mega-menu.min.js?ver=1.3.9

js mygila.ir collected 2026-10-02 18:55:05 UTC 2,003 bytes, 1 lines download raw bytes

1!function(s){"use strict";var e=function(s,e){var n=s.find(".boostify-main-navigation"),a=n.find(".sub-menu"),i=n.find(".menu-item-has-mega"),o=s.find(".boostify-menu-toggle"),t=s.find(".boostify-menu-sidebar"),l=s.find(".boostify-overlay"),d=s.find(".boostify--close-menu-side-bar");function u(){i.each(function(s){var n,a,i=e(this),o=i.find(".boostify-mega-sub"),t=e(window).width(),l=i.offset().left;i.hasClass("sub-width-default")?(n=500,l=(t-500)/2-l,o.css({left:"calc( ( 100% - 500px ) /2 )",width:n+"px"})):i.hasClass("sub-width-container")?(t>1170?(n=1170,a=(t-1170)/2-l):(a=15-l,n=t-30),o.css({left:a+"px",width:n+"px"})):i.hasClass("sub-width-custom")?(!(n=parseInt(i.attr("data-custom-width")))&&n<200&&(n=500),l=(t-n)/2-l,o.css({left:"calc( ( 100% - "+n+"px ) /2 )",width:n+"px"})):o.css({left:"-"+l+"px",width:t})})}a.each(function(s){e(this).hasClass("sub-mega-menu")?e(this).wrap('<div class="boostify-menu-child boostify-mega-sub">'):e(this).wrap('<div class="boostify-menu-child">')}),u(),e(window).resize(function(){u()}),o.on("click",function(s){s.preventDefault(),t.hasClass("show")?(t.removeClass("show"),l.removeClass("show")):(t.addClass("show"),l.addClass("show"))}),l.on("click",function(s){t.removeClass("show"),l.removeClass("show")}),d.on("click",function(s){t.removeClass("show"),l.removeClass("show")}),e(document).on("keyup",function(s){27===s.keyCode&&(t.removeClass("show"),l.removeClass("show"))}),t.find("ul >.menu-item-has-children>a").append('<span class="arrow"></span>'),t.find("ul >.menu-item-has-children .arrow").on("click",function(s){s.preventDefault();var n=e(this).parent().siblings("ul.sub-menu");n.hasClass("active")?(n.removeClass("active"),e(this).removeClass("up"),n.slideUp(300)):(n.addClass("active"),n.slideDown(300),e(this).addClass("up"))}),n.hasClass("primary-menu")&&n.removeClass("primary-menu")};s(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/ht-hf-mega-menu.default",e)})}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.