1/** 2 * Akademia theme JS for back to top button(s). 3 * 4 * @package WordPress 5 * @subpackage Akademia 6 * @since Akademia 3.0.0 7 */ 8 9jQuery( function ($) { 10 11 // Social bar back to top button 12 // Check if the window is on top, if not display button then 13 var scrolledFromTop = 400; 14 15 $( window ).scroll( function () { 16 17 if ( $( window ).scrollTop() > scrolledFromTop ) { 18 $( '#back-to-top-btn-side' ).css( 'opacity', 1 ); 19 } 20 else { 21 $( '#back-to-top-btn-side' ).css( 'opacity', 0 ); 22 } 23 24 } ); 25 26 // Click event to scroll to top 27 $( '#back-to-top-btn-side' ).click( function () { 28 $( 'html, body' ).animate( { 29 scrollTop: 0 30 }, 300 ); 31 32 return false; 33 } ); 34 35 // Footer back to top button 36 // Click event to scroll to top 37 $( '#back-to-top-btn' ).click( function () { 38 $( 'html, body' ).animate( { 39 scrollTop: 0 40 }, 300); 41 return false; 42 } ); 43 44} );
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.