PageSourceSearch

https://mastertv360.com/wp-content/plugins/ht-mega-for-elementor/a…/ht-menu/js/htmegamenu-main.js?ver=3.2.6

js mastertv360.com collected 2026-10-09 22:53:35 UTC 3,605 bytes, 85 lines download raw bytes

1(function ($) {
2    "use strict";
3
4    $(document).ready(function () {
5        headermobileAside();
6    });
7
8    /*====== mobile off canvas active ======*/
9    function headermobileAside() {
10        var navbarTrigger = $('.htmobile-aside-button'),
11            endTrigger = $('.htmobile-aside-close'),
12            container = $('.htmobile-menu-wrap'),
13            wrapper = $('#page');
14
15        wrapper.prepend('<div class="htbody-overlay"></div>');
16        
17        navbarTrigger.on('click', function(e) {
18            e.preventDefault();
19            container =  $(this).closest('.htmega-menu-container').find('.htmobile-menu-wrap');
20            $(container[0]).addClass('inside');
21            wrapper.addClass('htoverlay-active');
22        });
23        
24        endTrigger.on('click', function() {
25            container =  $(this).closest('.htmega-menu-container').find('.htmobile-menu-wrap');
26            container.removeClass('inside');
27            wrapper.removeClass('htoverlay-active');
28        });
29        
30        $('.htbody-overlay').on('click', function() {
31            container =  $(this).closest('.htmega-menu-container').find('.htmobile-menu-wrap');
32            container.removeClass('inside');
33            wrapper.removeClass('htoverlay-active');
34        });
35
36
37        var $offCanvasNav = $('.htmobile-navigation'),
38        $offCanvasNavSubMenu = $offCanvasNav.find('.htmegamenu-content-wrapper,.sub-menu'),
39        $offCanvasNavSubMenuExp = $offCanvasNav.find('.menu-item-has-children');
40    
41        /*Add Toggle Button With Off Canvas Sub Menu*/
42        $offCanvasNavSubMenu.parent().prepend('<span class="menu-expand"><i class="fa fa-plus"></i></span>');
43        $offCanvasNavSubMenuExp.prepend('<span class="menu-expand"><i class="fa fa-plus"></i></span>');
44        
45        /*Close Off Canvas Sub Menu*/
46        $offCanvasNavSubMenu.slideUp();
47        
48        /*Category Sub Menu Toggle*/
49        $offCanvasNav.on('click', 'li a, li .menu-expand', function(e) {
50            var $this = $(this);
51
52            if ( ($this.parent().attr('class').match(/\b(htmega_mega_menu)\b/)) && ($this.attr('href') === '#' || $this.hasClass('menu-expand')) ) {
53                e.preventDefault();
54                if ($this.siblings('div:visible').length){
55                    $this.parent('li').removeClass('active');
56                    $this.siblings('div').slideUp();
57                } else {
58                    $this.parent('li').addClass('active');
59                    $this.closest('li').siblings('li').removeClass('active').find('li').removeClass('active');
60                    $this.closest('li').siblings('li').find('div:visible').slideUp();
61                    $this.siblings('div').slideDown();
62                }
63            }else{
64                if ( ($this.parent().attr('class').match(/\b(menu-item-has-children|has-children|has-sub-menu)\b/)) && ($this.attr('href') === '#' || $this.hasClass('menu-expand')) ) {
65                    e.preventDefault();
66                    if ($this.siblings('ul:visible').length){
67                        $this.parent('li').removeClass('active');
68                        $this.siblings('ul').slideUp();
69                    } else {
70                        $this.parent('li').addClass('active');
71                        $this.closest('li').siblings('li').removeClass('active').find('li').removeClass('active');
72                        $this.closest('li').siblings('li').find('ul:visible').slideUp();
73                        $this.siblings('ul').slideDown();
74                    }
75                }
76            }
77
78        });
79
80
81    };
82    
83
84
85})(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.