PageSourceSearch

https://sienna-marten-503250.hostingersite.com/wp-content/themes/n…/megamenu/assets/js/frontend.js?ver=1.0.0

js sienna-marten-503250.hostingersite.com collected 2026-10-03 04:53:53 UTC 1,718 bytes, 48 lines download raw bytes

1(function ($) {
2    $(function () {
3        $('.main-navigation .has-mega-menu.has-stretchwidth').on('mouseenter',function (e) {
4            let $body = $('body'),
5                pleft = $(this).offset().left,
6                bodyleft = $body.offset().left;
7            $('.mega-stretchwidth', this).css({
8                left: -pleft + bodyleft,
9                width: $body.width()
10            });
11        });
12
13        $('.main-navigation .has-mega-menu.has-containerwidth').on('mouseenter',function (e) {
14            let $parent = $(this).closest('.container , .elementor-container, .col-full, .header-container'),
15				parentwidth = $parent.width() > 1290 ? 1290 : $parent.width(),
16                pleft = $parent.offset().left + parseInt($parent.css('padding-left')),
17				windowwidht = $(window).width(),
18                cleft = $(this).offset().left,
19				left = ((windowwidht/2) - cleft - (parentwidth/2)) > 0 ? 0 : ((windowwidht/2) - cleft - (parentwidth/2));
20
21            $('.mega-containerwidth', this).css({
22                left: left,
23                width: parentwidth
24            });
25
26        });
27
28		$('.main-navigation .has-mega-menu').has('ul.custom-subwidth').on('mouseenter',function (e) {
29			let pleft = parseFloat($(this).children('a').css('padding-left')),
30				$oleft = $(this).offset().left + pleft,
31			    $itemwidth = parseInt($(this).children('.custom-subwidth').css('width')),
32			    $bodywidth = $('body').width();
33
34			let $offset = $oleft + $itemwidth - $bodywidth;
35
36			if ($offset >= 0){
37				$('.mega-menu.custom-subwidth', this).css({
38					left: -$offset + pleft
39				});
40			}
41			else{
42				$('.mega-menu.custom-subwidth', this).css({
43					left: pleft
44				});
45			}
46		});
47    });
48})(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.