1'use strict';var bt_initHeader;(function($){var hasCentralMenu,verticalMenuEnabled,belowMenu,btStickyEnabled 2function initial_header_setup(){hasCentralMenu=$('body').hasClass('btMenuCenterEnabled');verticalMenuEnabled=$('body').hasClass('btMenuVerticalLeftEnabled')||$('body').hasClass('btMenuVerticalRightEnabled');belowMenu=$('body').hasClass('btBelowMenu');btStickyEnabled=$('body').hasClass('btStickyEnabled');if(typeof window.btStickyOffset=='undefined')window.btStickyOffset=250;if(typeof window.responsiveResolution=='undefined')window.responsiveResolution='1200';} 3function final_header_setup(){$('li.btMenuWideDropdown').addClass(function(){return'btMenuWideDropdownCols-'+$(this).children('ul').children('li').length;});$('li.btMenuWideDropdown').each(function(){var maxChildItems=0;$(this).find('> ul > li > ul').each(function(index){if($(this).children().length>maxChildItems){maxChildItems=$(this).children().length;}});$(this).find('> ul > li > ul').each(function(index){var bt_menu_base_length=$(this).children().length;if(bt_menu_base_length<maxChildItems){for(var i=0;i<maxChildItems-bt_menu_base_length;i++){$(this).append('<li><a class="btEmptyElement"> </a></li>');}}});});$('.btHorizontalMenuTrigger').on('click',function(){$('body').toggleClass('btShowMenu');return false;});$('.btVerticalMenuTrigger').on('click',function(){$('body').toggleClass('btMenuVerticalOn');return false;});} 4function top_tools_search(){$('.mainHeader .btSearchInner').prependTo('body').addClass('btFromTopBox');$('.mainHeader .widget_search').addClass('btIconWidget');$('.mainHeader .btSearch, .btFromTopBox .btSearchInnerClose').on('click',function(){$('body').toggleClass('btTopToolsSearchOpen');return false;});} 5function divide_menu(){if($('.btTextLogo').length){var logoWidth=$('.mainHeader .logo').width();}else{var logoWidth=$('.mainHeader .logo').height()*$('.mainHeader .logo .btMainLogo').data('hw');} 6$('.menuPort nav').addClass('leftNav');$('.menuPort').append('<nav class="rightNav"><ul></ul></nav>');var halfItems=Math.ceil($('.menuPort nav.leftNav ul>li:not(li li)').length*.5);$('.menuPort nav.rightNav > ul').append($('.menuPort nav.leftNav > ul > li').slice(halfItems));$('.menuPort nav.leftNav > ul > li').slice(halfItems).remove();$('.mainHeader .logo').css('transform','translateX('+Math.round(-logoWidth*.5)+'px)');$('.mainHeader .logo').css('width',logoWidth+'px');$('.menuPort nav.leftNav').css('margin-right',Math.round(logoWidth*.5)+'px');$('.menuPort nav.rightNav').css('margin-left',Math.round(logoWidth*.5)+'px');} 7function boldthemes_activate_sticky(){var fromTop=$(window).scrollTop();if(fromTop>window.btStickyOffset&&!$('body').hasClass('btStickyHeaderActive')){$('body').addClass('btStickyHeaderActive');boldthemes_requestTimeout(boldthemes_activate_sticky_open,500);}else if(fromTop<=window.btStickyOffset&&$('body').hasClass('btStickyHeaderActive')&&!$('body').hasClass('btStickyHeaderClosed')){$('body').addClass('btStickyHeaderClosed');boldthemes_requestTimeout(boldthemes_activate_sticky_close,500);}} 8function boldthemes_activate_sticky_open(){$('body').addClass('btStickyHeaderOpen');} 9function boldthemes_activate_sticky_close(){$('body').removeClass('btStickyHeaderActive btStickyHeaderOpen btStickyHeaderClosed');} 10window.boldthemes_requestTimeout=function(fn,delay){if(!window.requestAnimationFrame&&!window.webkitRequestAnimationFrame&&!(window.mozRequestAnimationFrame&&window.mozCancelRequestAnimationFrame)&&!window.oRequestAnimationFrame&&!window.msRequestAnimationFrame) 11return window.setTimeout(fn,delay);var start=new Date().getTime(),handle=new Object();function loop(){var current=new Date().getTime(),delta=current-start;delta>=delay?fn.call():handle.value=boldthemes_requestAnimFrame(loop);};handle.value=boldthemes_requestAnimFrame(loop);return handle;};window.boldthemes_requestAnimFrame=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback,element){window.setTimeout(callback,1000/60);};})();function responsive_menu_handler(){if(!verticalMenuEnabled){$(window).on("resize",function(event){if(window.innerWidth<window.responsiveResolution){$('body').addClass('btMenuVerticalLeft btMenuVertical').removeClass('btMenuHorizontal');}else{$('body').removeClass('btMenuVertical btMenuVerticalLeft btMenuVerticalOn').addClass('btMenuHorizontal');} 12boldthemes_calculate_content_padding();});}} 13function init_menu(){initial_header_setup();if(verticalMenuEnabled){if($('body').hasClass('btMenuVerticalLeftEnabled'))$('body').addClass('btMenuVerticalLeft btMenuVertical');if($('body').hasClass('btMenuVerticalRightEnabled'))$('body').addClass('btMenuVerticalRight btMenuVertical');}else{if($('body').hasClass('btMenuRightEnabled'))$('body').addClass('btMenuRight btMenuHorizontal');if($('body').hasClass('btMenuLeftEnabled'))$('body').addClass('btMenuLeft btMenuHorizontal');if($('body').hasClass('btMenuCenterBelowEnabled'))$('body').addClass('btMenuCenterBelow btMenuHorizontal');if($('body').hasClass('btMenuCenterEnabled'))$('body').addClass('btMenuCenter btMenuHorizontal');if(window.innerWidth<window.responsiveResolution){$('body').addClass('btMenuVerticalLeft btMenuVertical').removeClass('btMenuHorizontal');}else{$('body').removeClass('btMenuVertical btMenuVerticalLeft btMenuVerticalOn').addClass('btMenuHorizontal');}} 14if(!belowMenu){boldthemes_calculate_content_padding();} 15setTimeout(function(){$('body').addClass('btMenuInitFinished');},100);if(btStickyEnabled){setTimeout(function(){$(window).scroll(function(){boldthemes_activate_sticky();});},1000);} 16if(hasCentralMenu)divide_menu();$('.menuPort ul ul').parent().prepend('<div class="subToggler"></div>');$('.menuPort ul li').on('mouseenter mouseleave',function(e){if($('body').hasClass('btMenuVertical')||$('html').hasClass('touch')){return false;} 17e.preventDefault();$(this).siblings().removeClass('on');$(this).toggleClass('on');});$('div.subToggler').on('click',function(e){var parent=$(this).parent();parent.siblings().removeClass('on');parent.toggleClass('on');if($('body').hasClass('btMenuVertical')){parent.find('ul').first().slideToggle(200);} 18return false;});final_header_setup();} 19function boldthemes_calculate_content_padding(){if(!belowMenu){if($(window).width()<window.responsiveResolution||verticalMenuEnabled){$('.btContentWrap').css('padding-top',$('.btVerticalHeaderTop').height()+'px');}else if(!$('body').hasClass('btStickyHeaderActive')){$('.btContentWrap').css('padding-top',$('.mainHeader').height()+'px');}}} 20function reinit_menu(){top_tools_search();setTimeout(function(){init_menu();},100);boldthemes_calculate_content_padding();} 21$(window).on("load",function(){boldthemes_calculate_content_padding();});bt_initHeader=reinit_menu;top_tools_search();init_menu();responsive_menu_handler();})(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.