PageSourceSearch

https://imth.gr/wp-content/plugins/creedy-plus/modules/menu/assets/js/mega-menu.js?ver=1.0.2

js imth.gr collected 2026-10-02 08:22:26 UTC 2,248 bytes, 61 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        var position = $(window).scrollTop();
12
13        $(window).scroll(function() {
14            var scroll = $(window).scrollTop();
15            if((scroll > 0 && position > 0) && scroll > position) {
16                $("#header-wrapper .sticky-header-active").addClass('wdt-header-top');
17                $("#header-wrapper .sticky-header-active").addClass('wdt-header-scroll');
18
19                $("#header-wrapper .sticky-header-active").show();
20            } else {
21                 $("#header-wrapper .sticky-header-active").removeClass('wdt-header-top');
22                 $("#header-wrapper .sticky-header-active").removeClass('wdt-header-scroll');
23            }
24            position = scroll;
25        });
26    }
27
28    // Mega Menu
29    function megaMenu() {
30
31        var $header = 0;
32        if( $("#header .container").length ) {
33            $header = $("#header .container").offset().left;
34        }
35        $("li.has-mega-menu").each(function(){
36            var $parent      = $(this),
37                $parent_left = $parent.offset().left,
38                $sub_menu    = $parent.children("ul.sub-menu"),
39                $section     = $sub_menu.find('section');
40
41            if( $section.hasClass('elementor-section-stretched') ) {
42            	setTimeout(function() {
43           			$sub_menu.css('left', - ( $parent_left ) );
44
45            		var pad = $sub_menu.css('padding-left');
46            		$section.css('left', - ( parseInt(pad) ) );
47
48                    var windowWidth = $(window).width();
49                    $sub_menu.css('width', parseInt( windowWidth ) );
50            	}, 100);
51            } else {
52                $sub_menu.css('left', ( $header - $parent_left ) );
53            }
54        });
55    }
56    megaMenu();
57
58    $(window).on("resize", function() {
59        megaMenu();
60    });
61});

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.