jQuery( function () {
jQuery( 'body' ).prepend( '
');
var scrollButtonEl = jQuery( '.scroll-top-inner' );
scrollButtonEl.hide();
jQuery( window ).scroll( function () {
if ( jQuery( window ).scrollTop() < 10 ) {
jQuery( '.scroll-top-inner' ).fadeOut();
} else {
jQuery( '.scroll-top-inner' ).fadeIn();
}
} );
scrollButtonEl.click( function () {
jQuery( "html, body" ).animate( { scrollTop: 0 }, 300 );
return false;
} );
} );