MediaWiki:Luma switcher.js

Da Official Temtem Wiki.
Jump to navigation Jump to search

Nota: dopo aver pubblicato, potrebbe essere necessario pulire la cache del proprio browser per vedere i cambiamenti.

  • Firefox / Safari: tieni premuto il tasto delle maiuscole Shift e fai clic su Ricarica, oppure premi Ctrl-F5 o Ctrl-R (⌘-R su Mac)
  • Google Chrome: premi Ctrl-Shift-R (⌘-Shift-R su un Mac)
  • Internet Explorer / Edge: tieni premuto il tasto Ctrl e fai clic su Aggiorna, oppure premi Ctrl-F5
  • Opera: premi Ctrl-F5.
/* Switch between normal and luma */
/* This is basically a custom tabber, should switch it over, but preserving this for the time being */
$( function() {
	$( "#ttw-show-temtem" ).click( function() {
	    if (!($( "#ttw-show-temtem" ).hasClass( "active" ) || $( "#ttw-show-temtem" ).hasClass( "disabled" ))) {
	        $( "#ttw-temtem" ).show();
	        $( "#ttw-temtem-luma" ).hide();
	
	        $( "#ttw-show-temtem" ).addClass( "active" );
	        $( "#ttw-show-temtem-luma" ).removeClass( "active" );
	    }
	});
	
	$( "#ttw-show-temtem-luma" ).click( function() {
	    if (!($( "#ttw-show-temtem-luma" ).hasClass( "active" ) || $( "#ttw-show-temtem-luma" ).hasClass( "disabled" ))) {
	        $( "#ttw-temtem-luma" ).show();
	        $( "#ttw-temtem" ).hide();
	
	        $( "#ttw-show-temtem-luma" ).addClass( "active" );
	        $( "#ttw-show-temtem" ).removeClass( "active" );
	    }
	});
});
/* End Normal/Luma Switch */