MediaWiki:Timeless.js

/* All JavaScript here will be loaded for users of the Timeless skin */ $( function  {

$(document).ready( function {	//Making the sidebar collapsible//	// Giving the content the necessary IDs	$('#p-navigation .mw-portlet-body').attr('id','sb-navigation');	$('#p-Bosses .mw-portlet-body').attr('id','sb-bosses');	$('#p-Playable_Characters .mw-portlet-body').attr('id','sb-playable-characters');	$('#p-NPCs .mw-portlet-body').attr('id','sb-npcs');	$('#p-Classes .mw-portlet-body').attr('id','sb-classes');	$('#p-Statuses .mw-portlet-body').attr('id','sb-statuses');	$('#p-Enemies .mw-portlet-body').attr('id','sb-enemies');	$('#p-Equipment .mw-portlet-body').attr('id','sb-equipment');	$('#p-Items .mw-portlet-body').attr('id','sb-items');	$('#p-Bad_Ends .mw-portlet-body').attr('id','sb-bad-ends');	$('#p-Final_Ends .mw-portlet-body').attr('id','sb-final-ends');	$('#p-Locations .mw-portlet-body').attr('id','sb-locations');	$('#p-Game_Mechanics .mw-portlet-body').attr('id','sb-game-mechanics'); $('#p-Guides .mw-portlet-body').attr('id','sb-guides'); $('#p-Modding .mw-portlet-body').attr('id','sb-modding'); $('#p-managewiki-sidebar-header .mw-portlet-body').attr('id','sb-administration');

// Contents are collapsed as default $('#sb-navigation').hide; $('#sb-bosses').hide; $('#sb-playable-characters').hide; $('#sb-npcs').hide; $('#sb-classes').hide; $('#sb-enemies').hide; //		$('#sb-statuses').hide; //		$('#sb-equipment').hide; //		$('#sb-items').hide; $('#sb-bad-ends').hide; $('#sb-final-ends').hide; $('#sb-locations').hide; $('#sb-game-mechanics').hide; $('#sb-guides').hide; $('#sb-modding').hide; $('#sb-administration').hide; // Making the contents collapsible $('#p-navigation').click(function{		$('#sb-navigation').toggle("fast");	}); $('#p-Bosses').click(function{		$('#sb-bosses').toggle("fast");	}); $('#p-Playable_Characters').click(function{		$('#sb-playable-characters').toggle("fast");	}); $('#p-NPCs').click(function{		$('#sb-npcs').toggle("fast");	}); $('#p-Classes').click(function{		$('#sb-classes').toggle("fast");	}); $('#p-Enemies').click(function{		$('#sb-enemies').toggle("fast");	}); $('#p-Bad_Ends').click(function{		$('#sb-bad-ends').toggle("fast");	}); $('#p-Final_Ends').click(function{		$('#sb-final-ends').toggle("fast");	}); $('#p-Locations').click(function{		$('#sb-locations').toggle("fast");	}); $('#p-Game_Mechanics').click(function{		$('#sb-game-mechanics').toggle("fast");	}); $('#p-Guides').click(function{		$('#sb-guides').toggle("fast");	}); $('#p-Modding').click(function{		$('#sb-modding').toggle("fast");	}); $('#p-managewiki-sidebar-header-label').click(function{		$('#sb-administration').toggle("fast");	});

//Moving the "wiki tools" to the right// $('#site-tools').appendTo('#mw-related-navigation'); $('#mw-related-navigation').wrapInner(' '); //Add "Admin Help" to the administration part in the sidebar $('#p-managewiki-sidebar-header .mw-portlet-body ul').attr('id','administration-ul'); $('#administration-ul').append(' Admin Help '); } ); /* maybe "borrow" the text for Admin help from Degrees of Lewdeity too https://degreesoflewdity.miraheze.org/wiki/Help:Admin_Help */ } );

/* Do not enter code below this line */