PageSourceSearch

https://nbs.net/wp-content/cache/min/1/wp-content/themes/buddyboss…/assets/js/vendors/menu.js?ver=1789481749

js nbs.net collected 2026-09-24 09:13:02 UTC 1,457 bytes, 4 lines download raw bytes

1(function($){$.fn.BossSocialMenu=function(reduceWidth){$(this).each(function(){var elem=this,$elem=$(this);window.addEventListener('resize',run_alignMenu);window.addEventListener('load',run_alignMenu);function run_alignMenu(){$elem.append($($($elem.children('li.hideshow')).children('ul')).html());$elem.children('li.hideshow').remove();alignMenu(elem)}
2function alignMenu(obj){var self=$(obj),w=0,i=-1,menuhtml='',mw=self.width()-reduceWidth;$.each(self.children(),function(){i++;w+=$(this).outerWidth(!0);if(mw<w){menuhtml+=$('<div>').append($(this).clone()).html();$(this).remove()}});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>');if(self.find('li.hideshow').find('li').length>0){self.find('li.hideshow').show()}else{self.find('li.hideshow').hide()}}
3function checkVerticalMenu(){if($(window).width()>748&&$elem.parent().hasClass('vertical')){if($elem.find('li.hideshow').length){var verticalmenuhtml='';$.each($elem.find('li.hideshow ul').children(),function(){verticalmenuhtml+=$(this).wrap('<p/>').parent().html();$(this).parent().remove()});$elem.append(verticalmenuhtml);$elem.append($($($elem.children('li.hideshow')).children('ul')).html());$elem.children('li.hideshow').remove()}else{return}}}
4window.addEventListener('resize',checkVerticalMenu);window.addEventListener('load',checkVerticalMenu)})}}(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.