User:Wilzchels/global.js

function hideFade { // hide #backtotop first $( "#backtotop" ).hide ; // fade in #backtotop $( function {		$( window ).scroll( function  { if ( $( this ).scrollTop > ButtonStart ) { $( '#backtotop' ).fadeIn ; } else { $( '#backtotop' ).fadeOut ; }		});	}); } function goToTop { // scroll body to 0px on click $( 'body,html' ).animate ({		scrollTop: 0	}, ScrollSpeed ); return false; } function addBackToTop { if( skin == 'oasis' ) { $('Back To Top ').appendTo('#WikiaFooter > .toolbar > .tools'); hideFade ; }	} var ButtonStart = 800; var ScrollSpeed = 600; if( !window.BackToTop ) { $( document ).ready( addBackToTop ); } var BackToTop = true; // prevent duplication if( typeof Start == "number" ) { ButtonStart = Start; } if( typeof Speed == "number" ) { ScrollSpeed = Speed; }	//