1(function($){const hero=$('.hero');const navOpen=$('#navigation-open');const navClose=$('#navigation-close');const navigation=$('#mobile-menu');let mobilebreakpoint=1024;if(navigation.data('nav-breakpoint')){mobilebreakpoint=navigation.data('nav-breakpoint')} 2if(hero.length&&!hero.hasClass('frontpage')&&$(window).width()<=mobilebreakpoint){let heroMargin=$('#masthead').outerHeight();hero.css('marginTop',heroMargin+'px')} 3$('.site-header').find('.no-link').click(function(e){e.preventDefault()});$(document).on('click','#navigation-open, #navigation-close',function(){if(navigation.hasClass('open')){navigation.css('transform','');navigation.removeClass('open');navOpen.attr('aria-expanded','false');navClose.attr('aria-expanded','false');if($(window).width()<=mobilebreakpoint){navigation.find('a').attr('tabindex','-1')} 4$('body').css('overflow','auto')}else{navigation.css('transform','translateX(0px)');navigation.addClass('open');navOpen.attr('aria-expanded','true');navClose.attr('aria-expanded','true');if($(window).width()<=mobilebreakpoint){navigation.find('a').attr('tabindex','')} 5$('body').css('overflow','hidden')}});$(window).resize(function(){if(navigation.hasClass('open')&&$(window).width()>mobilebreakpoint){navigation.css('transform','');navigation.removeClass('open');navOpen.attr('aria-expanded','false');navClose.attr('aria-expanded','false');navigation.find('a').attr('tabindex','');$('body').css('overflow','auto')} 6if(hero.length&&!hero.hasClass('frontpage')&&$(window).width()<=mobilebreakpoint){let heroMargin=$('#masthead').outerHeight();hero.css('marginTop',heroMargin+'px')}else if(hero.length&&!hero.hasClass('frontpage')){hero.css('marginTop','0px')}});$(document).ready(function(){if($(window).width()<=mobilebreakpoint){navigation.find('a').attr('tabindex','-1')}});
6navigation.find('.sub-nav').slideUp();navigation.find('.open-subnav').click(function(e){e.preventDefault();if($(this).hasClass('open')){$(this).closest('.menu-item').find('> .sub-nav').slideUp(200);$(this).attr('aria-expanded','false');$(this).removeClass('open')}else{$(this).closest('.menu-item').find('> .sub-nav').slideDown(200);$(this).attr('aria-expanded','true');$(this).addClass('open')}});if($('#masthead').length){toggleScrollNavClass();let headerPosition=$('#masthead').position();let navHeight=$('#masthead').outerHeight();let headerStartPosition=headerPosition.top+navHeight;let previousScroll=headerPosition.top+navHeight;$(window).resize(function(){headerPosition=$('#masthead').position();navHeight=$('#masthead').outerHeight();headerStartPosition=headerPosition.top+navHeight;previousScroll=headerPosition.top+navHeight});$(window).scroll(function(){let currentScroll=$(this).scrollTop();if(currentScroll>headerStartPosition&¤tScroll<$(document).height()-$(window).height()){if(currentScroll>previousScroll&&!navigation.hasClass('open')){hideScrollNav()}else{showScrollNav()} 7previousScroll=currentScroll} 8toggleScrollNavClass()});function hideScrollNav(){$('#masthead').css('transform','translateY(-'+navHeight+'px)')} 9function showScrollNav(){$('#masthead').css('transform','translateY(0)')} 10function toggleScrollNavClass(){if($(window).scrollTop()!==0){$('#masthead').addClass('scrolling')}else{$('#masthead').removeClass('scrolling');$('#masthead').css('transform','translateY(0)')}}}})(jQuery) 11;
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.