PageSourceSearch

https://designaddict.com/wp-content/plugins/wp-megamenu/assets/js/wpmm.js?ver=1.2.5

js designaddict.com collected 2026-09-24 08:56:22 UTC 3,111 bytes, 81 lines download raw bytes

1(function($) {
2
3    $('.wpmm-social-link-search a').on('click',function(e){
4        e.preventDefault(); 
5        $('.wpmm-search-form').toggle();
6    });
7
8
9   //Sticky Nav
10    jQuery(window).on('scroll', function(){'use strict';
11        if ( jQuery(window).scrollTop() > 100 ) {
12            jQuery('.wpmm-sticky').addClass('wpmm-sticky-wrap');
13        } else {
14            jQuery('.wpmm-sticky').removeClass('wpmm-sticky-wrap');
15        }
16    });
17
18    //Mobile Menu Dsiable
19    var wpmm_disable_mobile = wpmm_object.wpmm_disable_mobile;
20
21    $(document).on('click', '.wpmm_mobile_menu_btn', function(e){
22        e.preventDefault();
23        $(this).closest('.wpmm-mobile-menu').find('.wp-megamenu').slideToggle();
24    });
25    function wpmmMobileMenuActive() {
26        var current_width = parseInt($(window).width());
27        var wpmm_responsive_breakpoint = parseInt(wpmm_object.wpmm_responsive_breakpoint.replace('px', ''));
28
29        if ( wpmm_disable_mobile == 'true' ) {
30            //Default Break Point 768
31            if (current_width < (wpmm_responsive_breakpoint + 1) ){
32                $('.wp-megamenu-wrap').addClass('wpmm-hide-mobile-menu');
33            }else{
34                $('.wp-megamenu-wrap').removeClass('wpmm-hide-mobile-menu');
35            }
36        }else{
37            //Default Break Point 768
38            if (current_width < (wpmm_responsive_breakpoint + 1) ){
39                $('.wp-megamenu-wrap').addClass('wpmm-mobile-menu');
40
41                $('ul.wp-megamenu li a b').off('click').on('click',function(e){
42                    if ($(this).closest('li').hasClass('wpmm_dropdown_menu') || $(this).closest('li').hasClass('wpmm_mega_menu') || $(this).closest('li').hasClass('menu-item-has-children') ){
43                        e.preventDefault();
44                        if ($(this).closest('li').find('ul').length) {
45                            if ($(this).closest('li').hasClass('wpmm_dropdown_menu')) {
46                                $(this).closest('li').find('ul.wp-megamenu-sub-menu').first().toggle();
47                            } else {
48                                $(this).closest('li').find('ul').toggle();
49                                $(this).closest('li').find(".wpmm-row ul").show();
50                            }
51                        }
52                    }
53                });
54            }else{
55                $('.wp-megamenu-wrap').removeClass('wpmm-mobile-menu');
56            }
57        }
58    }
59
60    wpmmMobileMenuActive();
61    $(window).on('resize', wpmmMobileMenuActive);
62
63    //Row Stress
64    var megamenu_strees_row_content = function () {
65        var fullWidth = $(window).width();
66        $('.wpmm-strees-row-and-content-container').each(function () {
67            var base_width = $(this).find('>.wpmm-row-content-strees-extra').width();
68            $(this).css({
69                'width': fullWidth,
70                'position' : 'absolute'
71            });
72            $(this).offset({
73                left: 0
74            })
75        });
76    };
77    megamenu_strees_row_content();
78    $(window).on('resize', megamenu_strees_row_content);
79
80    
81})(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.