1jQuery(function ($) { 2 3 if (window.innerWidth > BREAK.LG) { 4 $(window).on('scroll', function () { 5 $('[data-fixed_top]').each(function () { 6 var elementParent = $(this).parent('.is-fixed-container'), 7 elementOffsetTop = elementParent.offset().top, 8 elementStatus = ($(this).hasClass('is-fixed-element')) ? true : false; 9 var elementHeight = $(this).outerHeight(); 10 if ($(window).scrollTop() >= elementOffsetTop && !elementStatus) { 11 elementStatus = true; 12 $(this).addClass('is-fixed-element'); 13 elementParent.css('height', elementHeight); 14 } else if ($(window).scrollTop() < elementOffsetTop && elementStatus) { 15 $(this).removeClass('is-fixed-element'); 16 elementParent.css('height', 'auto'); 17 } 18 }) 19 }) 20 } 21});
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.