PageSourceSearch

https://mkubeenterprise.co.in/wp-content/plugins/megamenu-pro/assets/public.js?ver=2.2.4

js mkubeenterprise.co.in collected 2026-10-04 02:08:05 UTC 10,727 bytes, 1 lines download raw bytes

1!function(e){"use strict";e(function(){e("body").on("edd_cart_item_added",function(a,t){e(".mega-menu-edd-cart-total").html(t.total),e(".mega-menu-edd-cart-count").html(t.cart_quantity)})}),e(".max-mega-menu").on("after_mega_menu_init",function(){e("li.mega-menu-megamenu").on("open_panel",function(){var a=e(this).closest(".mega-menu-megamenu").find(".widget_maxmegamenu_image_swap img.mega-placeholder"),t=a.attr("data-default-src");a.attr("src",t),e(".mega-sub-menu [data-image-swap-url]",e(this)).not(["data-preloaded"]).each(function(){e("<img/>")[0].src=e(this).attr("data-image-swap-url"),e(this).attr("data-preloaded","true")})}),e(".mega-sub-menu [data-image-swap-url]").hoverIntent({over:function(){var a=e(this).closest(".mega-menu-megamenu").find(".widget_maxmegamenu_image_swap img.mega-placeholder"),t=e(this).attr("data-image-swap-url");a.attr("src",t)},out:function(){}})})}(jQuery),function(e){"use strict";e.maxmegamenu_searchbox=function(a,t){var s=this,n=(a=e(a)).parents(".max-mega-menu"),i=n.parent(),m=n.attr("data-breakpoint"),o=e("input[type=text]",a),c=e(".search-icon",a);s.isDesktopView=function(){return Math.max(window.outerWidth,e(window).width())>=m},s.monitorView=function(){void 0===n.data("view")&&(s.isDesktopView()?n.data("view","desktop"):n.data("view","mobile")),s.checkWidth(),e(window).resize(function(){s.checkWidth()})},s.checkWidth=function(){var a=e("li.mega-menu-item .mega-search.expand-to-left input[type=text], li.mega-menu-item .mega-search.expand-to-right input[type=text]",n);if("mobile"===n.data("view")){var t=a.attr("data-placeholder");a.attr("placeholder",t)}"desktop"===n.data("view")&&a.attr("placeholder","")},s.close_search=function(){o.val(""),o.attr("placeholder",""),a.removeClass("mega-search-open"),a.addClass("mega-search-closed")},s.open_search=function(){o.attr("placeholder",o.attr("data-placeholder")),a.removeClass("mega-search-closed"),a.addClass("mega-search-open")},s.detect_background_click=function(){var t=!1;e(document).on({touchmove:function(e){t=!0},touchstart:function(e){t=!1}}),e(document).on("click touchend",function(n){a.parent().hasClass("mega-static")||(t||e(n.target).closest(".max-mega-menu li").length||e(n.target).closest(".mega-menu-toggle").length||s.close_search(),t=!1)})},s.init_replacements_search=function(){o.val(""),"mobile"===n.data("view")&&e(".search-icon",n).on("click",function(a){e(this).parents(".mega-search").submit()}),"desktop"===n.data("view")&&(o.on("focus",function(e){!a.parent().hasClass("mega-static")&&a.hasClass("mega-search-closed")&&i.hasClass("mega-keyboard-navigation")&&s.open_search()}),o.on("blur",function(e){!a.parent().hasClass("mega-static")&&a.hasClass("mega-search-open")&&i.hasClass("mega-keyboard-navigation")&&s.close_search()}),c.on("click",function(e){a.parent().hasClass("mega-static")?a.submit():a.hasClass("mega-search-closed")?(s.open_search(),o.focus()):""==o.val()?s.close_search():a.submit()}))},s.monitorView(),s.init_replacements_search(),s.detect_background_click()},e.fn.maxmegamenu_searchbox=function(a){return this.each(function(){if(void 0===e(this).data("maxmegamenu_searchbox")){var t=new e.maxmegamenu_searchbox(this,a);e(this).data("maxmegamenu_searchbox",t)}})},e(function(){e(".max-mega-menu .mega-search").maxmegamenu_searchbox()})}(jQuery),function(e){"use strict";e.maxmegamenu_toggle_searchbox=function(a,t){var s=this,n=(a=e(a)).parents(".mega-menu-wrap"),i=e("input[type=text]",a),m=e(".search-icon",a);s.open_search=function(){i.attr("placeholder",i.attr("data-placeholder")),a.removeClass("mega-search-closed"),a.addClass("mega-search-open")},s.close_search=function(){i.attr("placeholder",""),a.removeClass("mega-search-open"),a.addClass("mega-search-closed")},s.init_toggle_search=function(){i.val(""),i.on("focus",function(e){!a.parent().hasClass("mega-static")&&a.hasClass("mega-search-closed")&&n.hasClass("mega-keyboard-navigation")&&s.open_search()}),i.on("blur",function(e){!a.parent().hasClass("mega-static")&&a.hasClass("mega-search-open")&&n.hasClass("mega-keyboard-navigation")&&s.close_search()}),m.on("click",function(e){a.hasClass("static")?a.submit():a.hasClass("mega-search-closed")?(i.focus(),s.open_search()):""==i.val()?s.close_search():a.submit()})},s.init_toggle_search()},e.fn.maxmegamenu_toggle_searchbox=function(a){return this.each(function(){if(void 0===e(this).data("maxmegamenu_toggle_searchbox")){var t=new e.maxmegamenu_toggle_searchbox(this,a);e(this).data("maxmegamenu_toggle_searchbox",t)}})},e(function(){e(".mega-menu-toggle .mega-search").maxmegamenu_toggle_searchbox()})}(jQuery),function(e){"use strict";e.maxmegamenu_sticky=function(a,t){var s,n,i,m,o,c=this,r=e(a),u=r.parent(),l=r.attr("data-breakpoint"),g=r.attr("data-sticky-mobile"),d=r.attr("data-sticky-desktop"),h=r.attr("data-sticky-expand"),p=r.attr("data-sticky-expand-mobile"),f=isNaN(parseInt(r.attr("data-sticky-offset")))?0:parseInt(r.attr("data-sticky-offset")),_=r.attr("data-sticky-hide"),b=isNaN(parseInt(r.attr("data-sticky-hide-tolerance")))?0:parseInt(r.attr("data-sticky-hide-tolerance")),w=isNaN(parseInt(r.attr("data-sticky-hide-offset")))?0:parseInt(r.attr("data-sticky-hide-offset")),v=r.attr("data-sticky-transition"),k=!1,x=0,y=0,C=0,I=r.hasClass("mega-menu-vertical")||r.hasClass("mega-menu-accordion");c.isDesktopView=function(){return Math.max(window.outerWidth,e(window).width())>=l};var W=function(){return c.isDesktopView()?"true"===d:"true"===g};c.calculate_menu_position=function(){s=u.offset().top,e("body").hasClass("admin-bar")&&e("#wpadminbar").is(":visible")&&"0px"==e("#wpadminbar").css("top")&&"fixed"==e("#wpadminbar").css("position")&&(x=e("#wpadminbar").height(),s-=x),f<0?s+=f:s-=f,n=r.parent().offset().left,i=window.getComputedStyle(u[0]).width,m=Math.ceil(parseFloat(i)),o=u.he
1ight()},c.stick_menu=function(){k=!0;var a=parseInt(x,10)+parseInt(f,10);f<0&&(a=parseInt(x,10));var t=e("<div />").addClass("mega-sticky-wrapper").css({height:o+"px",position:"static"});u.addClass("mega-sticky").wrap(t).css({"margin-top":a+"px"}),e("body").addClass(r.attr("id")+"-mega-sticky"),r.css({"max-width":m+"px"}),n>0&&r.css({"margin-left":n+"px"}),(I||"false"===h)&&(u.css({"margin-left":"0","margin-right":"0",width:m+"px",left:n+"px"}),r.css({"margin-left":"0"})),e(window).width()<=l&&(u.css({width:m+"px"}),"true"===p&&(u.css({"margin-left":"","margin-right":"",width:"",left:""}),r.css({"max-width":"","margin-left":"",width:"",left:""}))),u.delay(0).queue(function(a){e(this).addClass("mega-stuck"),a()})},c.unstick_menu=function(a){if(a=a||!1,k=!1,u.removeClass("mega-sticky").removeClass("mega-hide").css({margin:"",width:"",left:""}),e("body").removeClass(r.attr("id")+"-mega-sticky"),a||u.delay(0).queue(function(a){e(this).removeClass("mega-stuck"),a()}),r.css({"margin-left":"","max-width":"",left:"",width:""}),"true"!=v||a)t=0;else var t=250;u.delay(t).queue(function(a){e(this).unwrap(),a()})},c.mega_sticky_on_scroll=function(){W()&&(e(window).scrollTop()>s?k||c.stick_menu():k&&c.unstick_menu())};var z=function(){if(r.hasClass("mega-menu-horizontal")&&"true"==_){if("mobile"===r.data("view")&&e(".mega-menu-toggle",u).hasClass("mega-menu-open"))return;var a=e(window).scrollTop();a<w&&(u.removeClass("mega-hide"),e("body").removeClass(r.attr("id")+"-mega-hide")),C=y,a<y?C-a>b&&(u.removeClass("mega-hide"),e("body").removeClass(r.attr("id")+"-mega-hide")):k&&a-C>b&&(u.addClass("mega-hide"),e("body").addClass(r.attr("id")+"-mega-hide")),y=a}};c.mega_sticky_on_resize=function(){e("input",u).is(":focus")||(W()?k?(c.unstick_menu(!0),c.calculate_menu_position(),c.stick_menu()):(c.calculate_menu_position(),c.mega_sticky_on_scroll()):k&&c.unstick_menu())},c.init=function(){c.calculate_menu_position(),c.mega_sticky_on_scroll(),e(".mega-menu-accordion li.mega-menu-item").on("open_panel",function(){c.calculate_menu_position()});var a=e(window);a.scroll(function(){c.mega_sticky_on_scroll(),z()});var t;a.width();a.resize(function(){clearTimeout(t),t=setTimeout(function(){a.width(),c.mega_sticky_on_resize()},100)})},c.init()},e.fn.maxmegamenu_sticky=function(a){return this.each(function(){if(void 0===e(this).data("maxmegamenu_sticky")){var t=new e.maxmegamenu_sticky(this,a);e(this).data("maxmegamenu_sticky",t)}})},e(window).on("load",function(a){e(".mega-menu[data-sticky-enabled]").maxmegamenu_sticky()})}(jQuery),function(e){e(function(){var a=function(a){var t=a.parents(".max-mega-menu");e(t.attr("data-panel-inner-width")).length>0&&("desktop"===t.data("view")?e("> ul.mega-sub-menu",a).each(function(){var a=e(this),t=parseInt(a.width()),s=parseInt(a.css("paddingLeft")),n=e(this).find("a.mega-menu-link").first().outerWidth();e("> li.mega-menu-item > ul.mega-sub-menu",e(this)).each(function(){e(this).css("width",t-n+"px"),e(this).css("left",s+n+"px")})}):e("> ul.mega-sub-menu > li.mega-menu-item > ul.mega-sub-menu",a).each(function(){e(this).css("width",""),e(this).css("left","")}))},t=function(a){var t=a.parents(".max-mega-menu"),s=0;if("desktop"===t.data("view")){e("> ul.mega-sub-menu",a).css("minHeight",""),e("> ul.mega-sub-menu > li.mega-menu-item > ul.mega-sub-menu",a).each(function(){var a=e(this),t=parseInt(a.css("height"));t>s&&(s=t)});var n=parseInt(e("> ul.mega-sub-menu",a).css("borderTopWidth"),10),i=parseInt(e("> ul.mega-sub-menu",a).css("borderBottomWidth"),10);e("> ul.mega-sub-menu",a).css("minHeight",s+i+n)}else e("> ul.mega-sub-menu",a).css("minHeight","")},s=e(window),n=s.width();s.resize(function(){s.width()!=n&&(a(e("li.mega-menu-tabbed")),t(e("li.mega-menu-tabbed")))}),e("li.mega-menu-tabbed, li.mega-menu-tabbed li.mega-collapse-children").on("open_panel",function(){var s=e(this).parents(".max-mega-menu"),n=e(this).closest(".mega-menu-tabbed");a(n),e("> ul.mega-sub-menu",e(this)).promise().done(function(){t(n)}),"desktop"==s.data("view")&&(0==e("> ul.mega-sub-menu > li.mega-menu-item-has-children.mega-toggle-on",n).length&&(e("> ul.mega-sub-menu > li.mega-current-menu-item:visible",n).length?e("> ul.mega-sub-menu > li.mega-current-menu-item:visible",n).first().addClass("mega-toggle-on"):e("> ul.mega-sub-menu > li.mega-current-menu-ancestor:visible",n).length&&e("> ul.mega-sub-menu > li.mega-current-menu-ancestor:visible",n).first().addClass("mega-toggle-on"),0==e("> ul.mega-sub-menu > li.mega-toggle-on",n).length&&e("> ul.mega-sub-menu > li.mega-menu-item-has-children:visible",n).first().addClass("mega-toggle-on")),e("li.mega-menu-tabbed",s).on("close_panel",function(){e("li.mega-menu-tabbed .mega-toggle-on",s).removeClass("mega-toggle-on")})),e("li.mega-menu-tabbed li.mega-collapse-children").on("close_panel",function(){var a=e(this).closest(".mega-menu-tabbed");e("> ul.mega-sub-menu",e(this)).promise().done(function(){t(a)})})})})}(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.