User:Éclipse de Lune/global.js

/*ReferencePopups*/ importArticles({   type: 'script',    articles: [        // ...        'w:c:dev:ReferencePopups/code.js',        // ...    ] });

/*InactiveUsers*/ importScriptPage('InactiveUsers/code.js', 'dev');

/*Purge*/ PurgeButtonText = 'Purger'; importArticles({   type: 'script',    articles: [        'u:dev:PurgeButton/code.js'    ] });

/*Message*/ importArticles({   type: 'script',    articles: [        'u:dev:Message/code.js'    ] });

/*LastEdited*/ importArticles({   type: 'script',    articles: [        // ...        'u:dev:LastEdited/code.js',        // ...    ] });

/*QuickDiff*/ importArticles({   type: 'script',    articles: [        //...        'u:dev:QuickDiff/code.js',        //...    ] });

/*QuickTemplate*/ importScriptPage('QuickTemplate/code.js', 'dev');

/*BackToTopButton*/ //Created by Noemon from Dead Space Wiki function hideFade { // hide #backtotop first $( "#backtotop" ).hide ; // fade in #backtotop $( function {		$( window ).scroll( function  { if ( $( this ).scrollTop > ButtonStart ) { switch(FadeSwitch) { case 0: $( '#backtotop' ).show ; break; default: $( '#backtotop' ).fadeIn ; break; }			} else { switch(FadeSwitch) { case 0: $( '#backtotop' ).hide ; break; default: $( '#backtotop' ).fadeOut ; break; }								}		});	}); } function goToTop { // scroll body to 0px on click $( 'body,html' ).animate ({		scrollTop: 0	}, ScrollSpeed ); return false; } function addBackToTop { if( skin == 'oasis' ) { $('Aller en haut ').appendTo('#WikiaBarWrapper .toolbar > .tools'); hideFade ; }	} var ButtonStart = 800; var ScrollSpeed = 600; var FadeSwitch = 1; if( !window.BackToTop ) { $( document ).ready( addBackToTop ); } var BackToTop = true; // prevent duplication if( typeof Start == "number" ) { ButtonStart = Start; } if( typeof Speed == "number" ) { ScrollSpeed = Speed; }	if( typeof ToggleFading == "number" ) { FadeSwitch = ToggleFading; } //