PageSourceSearch

https://injuryclaimlawyer.com/wp-content/plugins/ht-menu-lite/assets/js/htmegamenu-main.js?ver=7.1.3

js injuryclaimlawyer.com collected 2026-10-09 00:00:24 UTC 3,309 bytes, 82 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.addClass('inside');
20            wrapper.addClass('htoverlay-active');
21        });
22        
23        endTrigger.on('click', function() {
24            container.removeClass('inside');
25            wrapper.removeClass('htoverlay-active');
26        });
27        
28        $('.htbody-overlay').on('click', function() {
29            container.removeClass('inside');
30            wrapper.removeClass('htoverlay-active');
31        });
32
33
34        var $offCanvasNav = $('.htmobile-navigation'),
35        $offCanvasNavSubMenu = $offCanvasNav.find('.htmegamenu-content-wrapper,.sub-menu');
36    
37        /*Add Toggle Button With Off Canvas Sub Menu*/
38        $offCanvasNavSubMenu.parent().prepend('<span class="menu-expand"><i class="fa fa-plus"></i></span>');
39        
40        /*Close Off Canvas Sub Menu*/
41        $offCanvasNavSubMenu.slideUp();
42        
43        /*Category Sub Menu Toggle*/
44        $offCanvasNav.on('click', 'li a, li .menu-expand', function(e) {
45            var $this = $(this);
46
47            if ( ($this.parent().attr('class').match(/\b(htmega_mega_menu)\b/)) && ($this.attr('href') === '#' || $this.hasClass('menu-expand')) ) {
48                e.preventDefault();
49                if ($this.siblings('div:visible').length){
50                    $this.parent('li').removeClass('active');
51                    $this.siblings('div').slideUp();
52                } else {
53                    $this.parent('li').addClass('active');
54                    $this.closest('li').siblings('li').removeClass('active').find('li').removeClass('active');
55                    $this.closest('li').siblings('li').find('div:visible').slideUp();
56                    $this.closest('li').siblings('li').find('ul:visible').slideUp();
57                    $this.siblings('div').slideDown();
58                }
59            }else{
60                if ( ($this.parent().attr('class').match(/\b(menu-item-has-children|has-children|has-sub-menu)\b/)) && ($this.attr('href') === '#' || $this.hasClass('menu-expand')) ) {
61                    e.preventDefault();
62                    if ($this.siblings('ul:visible').length){
63                        $this.parent('li').removeClass('active');
64                        $this.siblings('ul').slideUp();
65                    } else {
66                        $this.parent('li').addClass('active');
67                        $this.closest('li').siblings('li').removeClass('active').find('li').removeClass('active');
68                        $this.closest('li').siblings('li').find('ul:visible').slideUp();
69                        $this.closest('li').siblings('li').find('div:visible').slideUp();
70                        $this.siblings('ul').slideDown();
71                    }
72                }
73            }
74
75        });
76
77
78    };
79    
80
81
82})(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.