PageSourceSearch

https://sailsurf.at/media/astroid/assets/vendor/astroid/js/mobilemenu.js?862ab2b1333651ada1c3a90e0743e556

js sailsurf.at collected 2026-10-08 23:07:00 UTC 2,504 bytes, 57 lines download raw bytes

1(function ($) {
2   $.fn.astroidMobileMenu = function () {
3      this.each(function () {
4         var _this = $(this);
5         _this.find('li').addClass('menu-item');
6         _this.find('li').each(function () {
7            $(this).children('ul').addClass('dropdown-menus');
8            $(this).children('ul').find('li').addClass('dropdown-menus-item');
9         });
10         _this.wrap('<div class="astroid-mobilemenu-container" />').wrap('<div class="astroid-mobilemenu-inner"></div>');
11
12         // Add Class For Sub Menu
13         _this.find('li:has(> ul)').addClass('subMenu-wrapper');
14
15         _this.find('li').each(function () {
16            // Get Text For Sub Menu Back Button
17			if ($(this).children('a').length) {
18				var sub_menu_lable = $(this).children('a').html();
19			}else{
20				var sub_menu_lable = $(this).children('span').html();
21			}
22            if ($(this).hasClass('subMenu-wrapper')) {
23
24               var _indicator = $('<span class="menu-indicator"><i class="fas fa-angle-right"></i></span>');
25               var _indicatorBackItem = $('<li class="menu-item menu-go-back"></li>');
26               var _indicatorBack = $('<span class="menu-indicator-back"><i class="fas fa-angle-left"></i></span>');
27               _indicatorBack.append(sub_menu_lable);
28               _indicatorBackItem.append(_indicatorBack);
29
30               // Add Button For Toggle Sub Menu
31               if ($(this).children('a').length) {
32                  $(this).children('a').after(_indicator);
33                  if ($(this).children('a').hasClass('item-link-heading')) {
34                     $(this).children('a').bind('click', function (event) {
35                        event.preventDefault();
36                        _indicator.next('.dropdown-menus').toggleClass('menu_open');
37                     });
38                  }
39               }else{
40                  $(this).children('span').after(_indicator);
41               }
42               // For Sub menu Open
43               _indicator.bind('click', function () {
44                  $(this).next('.dropdown-menus').toggleClass('menu_open');
45               });
46               // Add Button In Sub Menu For Main Menu
47               $(this).children('ul').prepend(_indicatorBackItem);
48               // For sub Menu Close
49               _indicatorBack.bind('click', function () {
50                  $(this).parent().parent('.dropdown-menus').removeClass('menu_open');
51               });
52            }
53         });
54      });
55      return this;
56   };
57}($ast));

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.