PageSourceSearch

https://seashell-mongoose-275639.hostingersite.com/wp-content/plug…/menu/assets/js/mega-menu.js?ver=1.0.0

js seashell-mongoose-275639.hostingersite.com collected 2026-10-03 04:53:11 UTC 3,098 bytes, 82 lines download raw bytes

1jQuery.noConflict();
2jQuery(document).ready(function($) {
3    "use strict";
4
5    // Sticky Row
6    if( $("#header-wrapper .sticky-header").length > 0 ) {
7        var $sticky_header_cloned = $('.sticky-header').clone();
8        $sticky_header_cloned.removeClass('sticky-header').addClass('sticky-header-active');
9        $( $sticky_header_cloned ).insertAfter( $('.sticky-header') );
10
11        $sticky_header_cloned.find('.wdt-header-icons-list-item.search-item.search-overlay').each(function() {
12            var $searchContainer = $(this).find('.wdt-search-form-container');
13            if ($searchContainer.length) {
14                $searchContainer.remove(); 
15            }
16        });
17
18        $('body').css('--sticky-header-height', $('.sticky-header-active').outerHeight() + 'px');
19
20        var position = $(window).scrollTop();
21
22        $(window).scroll(function() {
23            var scroll = $(window).scrollTop();
24            if((scroll > 0 && position > 0) && scroll > position) {
25                $("#header-wrapper .sticky-header-active").addClass('wdt-header-top');
26                $("#header-wrapper .sticky-header-active").addClass('wdt-header-scroll');
27
28                $("#header-wrapper .sticky-header-active").show();
29            } else {
30                 $("#header-wrapper .sticky-header-active").removeClass('wdt-header-top');
31                 $("#header-wrapper .sticky-header-active").removeClass('wdt-header-scroll');
32            }
33            position = scroll;
34        });
35    }
36
37    // Mega Menu
38    function megaMenu() {
39
40        var $header = 0;
41        var $header_width = 0;
42        if( $("#header .container").length ) {
43            $header = $("#header .container").offset().left;
44        }
45        $("li.has-mega-menu").each(function(){
46            var $parent      = $(this),
47                $parent_left = $parent.offset().left,
48                $sub_menu    = $parent.children("ul.sub-menu"),
49                $section     = $sub_menu.find('section');
50
51            if( $section.hasClass('elementor-section-stretched') ) {
52
53            	setTimeout(function() {
54           			$sub_menu.css('left', - ( $parent_left ) );
55
56            		var pad = $sub_menu.css('padding-left');
57            		$section.css('left', - ( parseInt(pad) ) );
58
59                    var windowWidth = $(window).width();
60                    $sub_menu.css('width', parseInt( windowWidth ) );
61            	}, 100);
62;
63            } else {
64                $sub_menu.css('left', ( $header - $parent_left ) );
65                if( !($("#header .container").length) ) {
66                    $sub_menu.css('width', ( document.documentElement.clientWidth ) );
67                }
68                else
69                {
70                    var parentElement = document.querySelector("#header .container");
71                    var parentElementWidth = parentElement.clientWidth;
72                    $("li.has-mega-menu").find("ul.sub-menu").css('width',parentElementWidth);
73                }
74            }
75        });
76    }
77    megaMenu();
78
79    $(window).on("resize", function() {
80        megaMenu();
81    });
82});

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.