1doFir.push(function(){(function($){var lemon={elements:{},attach:function(context,settings){this.init();this.fixedHeader()},init:function(){console.log('init');var thisObj=this;this.elements.body={el:$('body')} 2this.elements.video={el:$('.primis-instream'),primis:$('.primis-instream #tvplayer'),stick_side:$('.page-sidebar')} 3this.elements.header={el:$('.page-header'),el_top:$('.page-header .top'),el_sub:$('.page-header .bottom')} 4this.elements.footer={el:$('.block-ibtimes-footer')} 5$(document).on('recalculate',function(){thisObj.recalculateElements()});$(window).on('scroll',function(){$.event.trigger({type:'reposition'})});$(window).on('resize',function(){$.event.trigger({type:'recalculate'});$.event.trigger({type:'reposition'})});$.event.trigger({type:'recalculate'});$.event.trigger({type:'reposition'})},recalculateElements:function(){var item=this.elements.header,el=item.el,vitem=this.elements.video,vel=vitem.el;if(el.length){item.height=el.outerHeight(!0);item.top=el.offset().top} 6if(vel.length){vitem.height=vel.outerHeight(!0);vitem.top=vel.offset().top;vitem.sleft=vitem.stick_side.offset().left-vel.offset().left+15}},fixedHeader:function(){var thisObj=this,body=thisObj.elements.body.el,header_t=thisObj.elements.header.top,header_h=thisObj.elements.header.height,header_o=header_h-thisObj.elements.header.el_top.height(),video=thisObj.elements.video.el,primis=thisObj.elements.video.primis,video_t=thisObj.elements.video.top||0,video_l=thisObj.elements.video.sleft||0,video_h=thisObj.elements.video.height||0,vstart=video_t+video_h/2,lastScrollTop=0;$(document).on('reposition',function(e){var st=$(window).scrollTop(),offset=(thisObj.elements.header.el_sub.css('display')=='none')?header_h:header_o,start=header_t+header_h-offset,footer_t=thisObj.elements.footer.el.offset().top,fstart=footer_t-brH,v_stickytop=footer_t-video_t-225;if(st>start){body.addClass('fixed-header');if(!mobile_device&&video.length){if(!body.hasClass('closedPrimis')){if(st>vstart){video.addClass('stick-video');if(st>fstart){primis.css({position:"absolute",top:v_stickytop+"px",left:video_l+"px",transition:"none"})}else primis.css({position:"",top:"",left:""})}else video.css("transition","").removeClass('stick-video')}else{if(video.hasClass('stick-video')){primis.css({position:"",top:"",left:""});video.css("transition","").removeClass('stick-video')}}} 7if(ibtmedia_device!='desktop'&&site_id=='ibtuk'){if(st>200){body.addClass('logo-ibt');if(st>lastScrollTop&&st>offset&&st>400){body.removeClass('up-scroll').addClass('down-scroll')}else{body.removeClass('down-scroll').addClass('up-scroll')} 8lastScrollTop=st}else{body.removeClass('logo-ibt')}}}else{body.removeClass('fixed-header')}})}};lemon.attach()})(jQuery);(function($){var menuExpand={attach:function(context,settings){this.menuExpand();$('.page-nav .toggle-button').click(function(event){if($(this).parent().hasClass('expand')){$(this).parent().removeClass('expand')}else{$('.page-nav .toggle').removeClass('expand');$(this).parent().addClass('expand')}});$('.pf-middle .title').click(function(event){if($(this).parent().hasClass('expand')){$(this).parent().removeClass('expand')}else{$('.pf-middle .f1').removeClass('expand');$(this).parent().addClass('expand')}})},menuExpand:function(){var pageHeader=$('.page-header');var body=$('body');var bindRemoveLayer=function(){$(window).unbind('scroll.menulayer');$(window).bind('scroll.menulayer',function(){$('body').removeClass('showEdition').removeClass('showMenu').removeClass('showSearch');$('.page-edition').css('top','');$(window).unbind('scroll.menulayer')})} 9if(pageHeader.length>0){$('.genericon-menu').click(function(event){if(body.hasClass('showMenu')){body.removeClass('showMenu')}else{body.addClass('showMenu').removeClass('showSearch')} 10bindRemoveLayer()});$('.genericon-search').click(function(event){if(body.hasClass('showMenu')){body.removeClass('showMenu')}else{body.addClass('showMenu').removeClass('showSearch');setTimeout(function(){$('#edit-search-block-form--2').focus()},100)} 11bindRemoveLayer()});$('.page-header label').click(function(event){if(body.hasClass('showEdition')){body.removeClass('showEdition');$('.page-edition').css('top','')}else{var hh=$('.page-header').height();if(hh<50){$('.page-edition').css('top',hh+'px')} 12body.addClass('showEdition').removeClass('showMenu').removeClass('showSearch')} 13bindRemoveLayer()})}}};menuExpand.attach()})(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.