PageSourceSearch

https://www.leuchtenbau24.de/templates/xt_responsive/javascript/MegaMenu.js?2d45e882cf65322509b33a3c71dea54f

js leuchtenbau24.de collected 2026-09-26 13:12:05 UTC 2,984 bytes, 83 lines download raw bytes

1/*!
2 * Mega Menu
3 *
4 * @version 1.0.0
5 *
6 */
7jQuery(document).ready(function () {
8    var megaMenu = jQuery(".main-navigation");
9    if (megaMenu.length) {
10        var megaMenuContainer = jQuery(".navbar-mega"),
11            withBackdropShadow = megaMenuContainer.hasClass('with-backdrop-shadow');
12
13        if (megaMenuContainer.length) {
14
15            // prevent dropdown toggle if container is clicked
16            megaMenuContainer.click(function (e) {
17                e.stopPropagation();
18            });
19
20            var megaMenuDropdown = megaMenu.find(".mega-dropdown");
21            if (megaMenuDropdown.length) {
22                var megaMenuContent,
23                    body = jQuery("body");
24
25                // prepare container
26                megaMenuContainer
27                    .addClass('row listing')
28                    .empty();
29
30                // add mega menu content
31                megaMenuDropdown.on('show.bs.dropdown', function () {
32                    var self = jQuery(this);
33
34                    megaMenuContainer.empty();
35                    megaMenuContent = self
36                        .clone()
37                        .find(".dropdown-menu > li");
38
39                    if (typeof megaMenuContent != 'undefined' && megaMenuContent.length) {
40
41                        megaMenuContent.each(function () {
42                            var self = jQuery(this);
43
44                            if (!self.hasClass('col')) {
45                                self.addClass('col');
46
47                                if (self.hasClass('static')) {
48                                    self.addClass('col-md-12');
49                                } else {
50                                    self.not(":empty")
51                                        .addClass('col-md-3 section');
52                                }
53                            }
54                        });
55
56                        megaMenuContainer
57                            .removeClass('hidden')
58                            .append(megaMenuContent);
59
60                        equalizeListingHeights(".navbar-mega");
61                        megaMenu.addClass('open');
62
63                        body.addClass('navbar-mega-open');
64                        if (withBackdropShadow) {
65                            body.append('<div class="navbar-mega-overlay modal-backdrop fade in hidden-float-breakpoint"></div>');
66                        }
67                    }
68                });
69
70                // remove mega menu payload
71                megaMenuDropdown.on('hidden.bs.dropdown', function () {
72                    megaMenuContainer.addClass('hidden').empty();
73                    megaMenu.removeClass('open');
74                    body.removeClass('navbar-mega-open');
75                    if (withBackdropShadow) {
76                        jQuery(".navbar-mega-overlay").remove();
77                    }
78                    megaMenuContent = undefined;
79                });
80            }
81        }
82    }
83});

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.