1$(function(){ 2 stickySidebar(); 3 4 $(window).resize(function(){ 5 stickySidebar(); 6 }); 7 8 // //sticky event / search / venue header 9 var stickyHeader = $(".js-sticky-header"); 10 11 if(stickyHeader.length > 0){ 12 var stickyHeaderHeight = stickyHeader.outerHeight(); 13 var stickyHeaderPosition = stickyHeader.offset(); 14 15 stickyHeader.wrap( "<div class='buffer'></div>" ); 16 $(".buffer").css("height", stickyHeaderHeight); 17 18 $(window).scroll(function(){ 19 20 if( ($("body").hasClass("tablet")) ||($("body").hasClass("desktop"))){ 21 if ($(window).scrollTop() >= stickyHeaderPosition.top) { 22 stickyHeader.addClass("sticky"); 23 } 24 else{ 25 stickyHeader.removeClass("sticky"); 26 } 27 } 28 }); 29 } 30 31 function stickySidebar(){ 32 if($("body").hasClass("desktop") && $(".c-page").length > 0){ 33 var headerHeight = $(".c-page--header").height(); 34 var stickyMargin = headerHeight + 20; 35 36 $(".c-page--sidebar").stick_in_parent({ 37 offset_top:stickyMargin 38 }); 39 40 } 41 } 42 43 44 $(".js-scroll-to").click(function(e) { 45 e.preventDefault(); 46 var scrollToId = $(this).attr("href"); 47 48 $('html, body').animate({ 49 scrollTop: $(scrollToId).offset().top - stickyHeaderHeight 50 }, 600); 51 }); 52 53 if ($("#SpektrixIFrame").length) { 54 55 let timeout; 56 57 window.addEventListener("message", (evt) => { 58 let resizeValue = evt.data.split(":")[1]; 59 document.getElementById("SpektrixIFrame").style.height = `${resizeValue}px`; 60 61 let cachedWidth = window.innerWidth; 62 63 window.addEventListener('resize', function(){ 64 65 if (cachedWidth !== window.innerWidth) { 66 if (timeout) clearTimeout(timeout); 67 68 timeout = setTimeout(() => { 69 window.location.reload(false) 70 }, 150) 71 } 72 73 }) 74 }) 75 } 76 77 //Show more for summary 78 $('.summary-more').on('click', function() { 79 $(this).prev('.c-cms--summary').addClass('expanded'); 80 $(this).hide(); 81 }); 82});
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.