PageSourceSearch

https://sweathead.com/wp-content/themes/buddyboss-theme/assets/js/vendors/menu.js?ver=2.3.1

js sweathead.com collected 2026-10-02 14:36:26 UTC 2,670 bytes, 73 lines download raw bytes

1( function ( $ ) {
2    $.fn.BossSocialMenu = function ( reduceWidth ) {
3        $( this ).each( function () {
4            //alignMenu( this );
5            var elem = this,
6                $elem = $( this );
7
8            window.addEventListener( 'resize', run_alignMenu );
9            window.addEventListener( 'load', run_alignMenu );
10
11            function run_alignMenu() {
12                $elem.append( $( $( $elem.children( 'li.hideshow' ) ).children( 'ul' ) ).html() );
13                $elem.children( 'li.hideshow' ).remove();
14                alignMenu( elem );
15            }
16
17            function alignMenu( obj ) {
18                var self = $( obj ),
19                    w = 0,
20                    i = -1,
21                    menuhtml = '',
22                    mw = self.width() - reduceWidth;
23
24                $.each( self.children(), function () {
25                    i++;
26                    w += $( this ).outerWidth( true );
27                    if ( mw < w ) {
28                        menuhtml += $( '<div>' ).append( $( this ).clone() ).html();
29                        $( this ).remove();
30                    }
31                } );
32
33                self.append( '<li class="hideshow menu-item-has-children1"><a class="more-button" href="#"><i class="bb-icon-f bb-icon-ellipsis-h"></i></a><ul class="sub-menu">' + menuhtml + '</ul></li>' );
34
35                if ( self.find( 'li.hideshow' ).find( 'li' ).length > 0 ) {
36                    self.find( 'li.hideshow' ).show();
37                } else {
38                    self.find( 'li.hideshow' ).hide();
39                }
40            }
41
42            //Vertical nav condition
43            function checkVerticalMenu() {
44
45                if( $( window ).width() > 748 && $elem.parent().hasClass( 'vertical' ) ) {
46
47                    if( $elem.find( 'li.hideshow' ).length ) {
48
49                        var verticalmenuhtml = '';
50
51                        $.each( $elem.find( 'li.hideshow ul' ).children(), function () {
52                            verticalmenuhtml +=  $( this ).wrap('<p/>').parent().html();
53                            $( this ).parent().remove();
54                        } );
55
56                        $elem.append( verticalmenuhtml );
57                        $elem.append( $( $( $elem.children( 'li.hideshow' ) ).children( 'ul' ) ).html() );
58                        $elem.children( 'li.hideshow' ).remove();
59
60                    } else {
61                        return;
62                    }
63
64                }
65
66            }
67
68            window.addEventListener( 'resize', checkVerticalMenu );
69            window.addEventListener( 'load', checkVerticalMenu );
70
71        } );
72    }
73}( 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.