1jQuery( document ).ready(function($) { 2 3 // FROM: https://stackoverflow.com/questions/19291873/window-width-not-the-same-as-media-query#answer-22708436 4 if( window.matchMedia( '(max-width: 1082px)' ).matches ) return; 5 6 // FROM: https://stackoverflow.com/questions/34845435/make-content-sticky-on-scroll-to-a-point-in-jquery#answer-34845589 7 var top_offset = 100; 8 9setTimeout( function() { 10 11 $( '.w3aae_sticky' ).each( function() { 12 $( this ).data( 'top_offset', $( this ).offset().top ); 13 } ); 14 15 $(window).scroll(function() { 16 var window_top = $( window ).scrollTop(); 17 18 $( '.w3aae_sticky' ).each( function() { 19 let sticky_offset = $( this ).data( 'top_offset' ); 20 21 if( sticky_offset < ( window_top + top_offset ) ) { 22 let width = $( this ).width(); 23 $( this ).css( 'position', 'fixed' ).css( 'top', top_offset ).css( 'max-width', width+'px' ); 24 } else { 25 $( this ).css( 'position', 'relative' ); 26 } 27 28 }); 29 30 }); 31 32}, 2000 ); 33 34}); 35
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.