Emoji u1f384.svg
Merry Christmas from the IIWiki Team! Have a happy new year!

MediaWiki:Gadget-SidebarTOC.js

Revision as of 06:49, 22 February 2024 by Makko Oko (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
mw.loader.using( 'mediawiki.toc', function () {
	$( function () {
		var $tocContainer = $( '<div>' )
			.addClass( 'mw-table-of-contents-container' )
			.appendTo( '#mw-content' ); // Append the ToC container under the content area

		var $floatTOC = $( '.toc' )
			.clone()
			.removeAttr( 'id' )
			.addClass( 'vector-sticky-toc-container' )
			.appendTo( $tocContainer ); // Append the cloned ToC inside the ToC container
	});
});