1jQuery(function( $ ){ 2 3 // Sticky Announcement Bar 4 var headerHeight = $('.site-header').innerHeight(); 5 var beforeheaderHeight = $('.before-header').outerHeight(); 6 var abovenavHeight = headerHeight + beforeheaderHeight - 1; 7 8 $(window).scroll(function(){ 9 10 if ($(document).scrollTop() > abovenavHeight){ 11 12 $('.announcement-widget').addClass('fixed'); 13 14 } else { 15 16 $('.announcement-widget').removeClass('fixed'); 17 18 } 19 20 }); 21 22});
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.