PageSourceSearch

https://modular-matting.com/wp-content/themes/archtek/assets/js/offconvasmenu.js?ver=201513434

js modular-matting.com collected 2026-10-05 21:25:51 UTC 1,584 bytes, 50 lines download raw bytes

1(function($) {
2    $.fn.menumaker = function(options) {
3      
4      var mobile_hum = $(this), settings = $.extend({
5        format: "dropdown",
6        sticky: false
7      }, options);
8
9        return this.each(function() {
10        mobile_hum.find('li ul').parent().addClass('has-sub');
11        multiTg = function() {
12            mobile_hum.find(".has-sub").prepend('<span class="submenu-button"></span>');
13            mobile_hum.find('.submenu-button').on('click', function() {
14                if ($(this).siblings('ul').hasClass('open-sub')) {
15                    $(this).siblings('ul').removeClass('open-sub').hide();
16                    $(this).siblings('ul').slideToggle().hide();                  
17                                     
18                }
19                else {
20                    $(this).siblings('ul').addClass('open-sub').hide();
21                    $(this).siblings('ul').slideToggle().show();
22                }
23
24            });
25        };
26
27        if (settings.format === 'multitoggle') multiTg();
28        else mobile_hum.addClass('dropdown');
29        if (settings.sticky === true) mobile_hum.css('position', 'fixed');
30        resizeFix = function() {
31            if ($( window ).width() > 991) {
32                mobile_hum.find('ul').show();
33                mobile_hum.find('ul.sub-menu').hide();
34            }          
35        };
36        resizeFix();
37        return $(window).on('resize', resizeFix);
38        });
39    };
40})(jQuery);
41
42(function($){
43$(document).ready(function(){
44
45$("#mobile_hum").menumaker({
46   format: "multitoggle"
47});
48
49});
50})(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.