PageSourceSearch

https://elrazi.edu.sd/core/views/26e308bcd6/assets/js/mobilemenu.js?rnd=35015

js elrazi.edu.sd collected 2026-09-30 21:01:22 UTC 1,821 bytes, 50 lines download raw bytes

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