PageSourceSearch

https://hideoutassoc.com/CMSScripts/Custom/smartmenu.desktop.include.js?639245304013316289

js hideoutassoc.com collected 2026-09-26 03:39:11 UTC 2,295 bytes, 59 lines download raw bytes

1// Only do anything if jQuery isn't defined
2window.$chousesmartmenu = true;
3window.$chousesmartmenuLoaded = false;
4
5function initSmartMenu() {
6    if (window.$chousesmartmenuLoaded == false) {
7            loadMenus();
8    }
9} 
10function loadMenus()
11{
12    window.$chousesmartmenuLoaded = true;
13    jQuery('#main-menu').smartmenus();
14            jQuery('#menu-button', '.chomobilesitehamburger').click(function () {
15                var $this = jQuery(this),
16                    $menu = jQuery('#main-menu');
17                if ($menu.is(':animated')) {
18                    return false;
19                }
20                if (!$this.hasClass('collapsed')) {
21                    $menu.slideUp(200, function() { jQuery(this).addClass('collapsed').css('display', ''); });
22                    $this.addClass('collapsed');
23                } else {
24                    $menu.slideDown(200, function() { jQuery(this).removeClass('collapsed'); });
25                    $this.removeClass('collapsed');
26                }
27                return false;
28            });
29        
30
31        jQuery('#menu-button, #menu-button2, .chomobilesitehamburger').on('click', function () {
32            if (jQuery('body').hasClass('menu-opened')) {
33                jQuery('body').removeClass('menu-opened');
34            } else {
35                jQuery('body').addClass('menu-opened');
36            }
37        });
38
39        var $mainMenu2 = jQuery('#main-menu2').on('click', 'span.sub-arrow', function (e) {
40            var obj = $mainMenu2.data('smartmenus');
41            if (obj.isCollapsible()) {
42                var $item2 = jQuery(this).parent(),
43                    $sub2 = $item2.parent().dataSM('sub2');
44                $sub2.dataSM('arrowClicked', true);
45            }
46        }).bind({
47            'beforeshow.smapi': function (e, menu2) {
48                var obj2 = $mainMenu2.data('smartmenus');
49                if (obj2.isCollapsible()) {
50                    var $menu2 = jQuery(menu2); console.log($menu2.dataSM('arrowClicked'))
51                    if (!$menu2.dataSM('arrowClicked')) {
52                        return false;
53                    }
54                    $menu2.removeDataSM('arrowClicked');
55                }
56            }
57        });
58    
59}

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.