PageSourceSearch

https://bitcointalk.co.bz/wp-content/themes/neoton/assets/js/mobilemenu.js?ver=201513434

js bitcointalk.co.bz collected 2026-10-03 21:24:33 UTC 2,069 bytes, 60 lines download raw bytes

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