1/* scroll-to-top.js v1.0 */ 2jQuery( function () { 3 4 jQuery( 'body' ).prepend( '<div class="scroll-top"></div>'); 5 6 var scrollButtonEl = jQuery( '.scroll-top' ); 7 8 scrollButtonEl.hide(); 9 10 jQuery( window ).scroll( function () { 11 if ( jQuery( window ).scrollTop() < 20 ) { 12 jQuery( '.scroll-top' ).fadeOut(); 13 } else { 14 jQuery( '.scroll-top' ).fadeIn(); 15 } 16 } ); 17 18 scrollButtonEl.click( function () { 19 jQuery( "html, body" ).animate( { scrollTop: 0 }, 300 ); 20 return false; 21 } ); 22 23} );
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.