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.find('li.bb_more_dropdown__title').remove();$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('li').not('.bb_more_dropdown__title'),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-children" data-no-dynamic-translation>'+'<a class="more-button" href="#"><i class="bb-icon-f bb-icon-ellipsis-h"></i><span class="screen-reader-text">'+bs_data.more_menu_title+'</span></a>'+'<ul class="sub-menu bb_more_dropdown" data-no-dynamic-translation>'+menuhtml+'</ul>'+'<div class="bb_more_dropdown_overlay"></div></li>');if(self.find('.hideshow .bb_more_dropdown .bb_more_dropdown__title').length<1&&$(window).width()<981){$(self).find('.hideshow .bb_more_dropdown').append('<li class="bb_more_dropdown__title">'+'<span class="bb_more_dropdown__title__text">'+bs_data.more_menu_title+'</span>'+'<span class="bb_more_dropdown__close_button" role="button">'+'<i class="bb-icon-l bb-icon-times"></i></span></li>')} 3if(self.find('li.hideshow').find('li').not('.bb_more_dropdown__title').length>0){self.find('li.hideshow').show()}else{self.find('li.hideshow').hide()}} 4function checkVerticalMenu(){if($(window).width()>738&&$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}}} 5window.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.