PageSourceSearch

https://havokjournal.com/wp-content/plugins/hjs-mobile-menu/js/hjs-mobile-menu.js?ver=1.0.0

js havokjournal.com collected 2026-10-02 07:44:44 UTC 1,344 bytes, 28 lines download raw bytes

1jQuery(document).ready(function($) {
2    $(document).on('click', '.hjs-mobile-menu-trigger', function(){
3        $('body').toggleClass('hjs-mobile-menu-active');
4    });
5    $(document).click(function(event) {
6        if( $('body').hasClass('hjs-mobile-menu-active') ) {
7              var target = $(event.target);
8              if( !target.closest('.hjs-mobile-menu-container').length && !target.closest('.hjs-mobile-menu-trigger').length ) {
9                $('body').removeClass('hjs-mobile-menu-active');
10              }
11        }
12    });
13    $('.hjs-mobile-menu-container .hjs-mobile-menu-submenu-arrow').on( 'click', function( e ) {
14        e.preventDefault();
15        e.stopPropagation();
16        $(this).closest('li').toggleClass('active');
17        $(this).closest('li').find(' > .sub-menu').slideToggle(300);
18    });
19
20    $(".hjs-mobile-menu-container a").on('click', function(event) {
21        var hashLessUrl = this.href.replace(this.hash, "").split('#')[0];
22        var hashLessBaseUrl = window.location.href.replace(window.location.hash, "").split('#')[0];
23        var hrefWithoutBase = this.href.replace(hashLessBaseUrl, '');
24        if ( this.hash !== "" && hashLessUrl == hashLessBaseUrl || hrefWithoutBase == "#" ) {
25            $('body').toggleClass('hjs-mobile-menu-active');
26        }
27    });
28});

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.