From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
(good edits)
No edit summary
Line 13: Line 13:
function siteArticlePath(){ return 'wiki'; }
function siteArticlePath(){ return 'wiki'; }
function siteBotInterfacePath(){ return 'w'; }
function siteBotInterfacePath(){ return 'w'; }
// Moves any exiting #nav_toc to #nav_right
function domNavToc()
{
alert('test');
//var errNode  = document.createTextNode( "No Sidebar" );
var navRight = document.getElementById( 'nav_right' );
if( !navRight ) {
return 0;
}
// Append errNode if navToc doesn't exist
var navToc  = document.getElementById( 'nav_toc' );
if( !navToc ) {
//navRight.appendChild( errNode );
return 0;
}
var navToc2 = navToc.cloneNode(true);
navToc.parentNode.removeChild(navToc);
navRight.appendChild( navToc2 );
navToc2.style.display = 'block';
}

Revision as of 06:25, 19 October 2006

// [[User:Lupin/popups.js]]

document.write('<script type="text/javascript" src="http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');

simplePopups=false;
popupAdminLinks=true;
popupStructure='menus';
popupFixRedirs=true;
popupFixDabs=true;
popupPreviewFirstParOnly=false;
popupExtraUserMenu=true;
popupUseQueryInterface = false;
function siteArticlePath(){ return 'wiki'; }
function siteBotInterfacePath(){ return 'w'; }

// Moves any exiting #nav_toc to #nav_right
function domNavToc()
{
	alert('test');
	//var errNode  = document.createTextNode( "No Sidebar" ); 
	var navRight = document.getElementById( 'nav_right' );

	if( !navRight ) {
		return 0;
	}
	
	// Append errNode if navToc doesn't exist
	var navToc   = document.getElementById( 'nav_toc' );
	if( !navToc ) {
		//navRight.appendChild( errNode ); 
		return 0;
	}

	var navToc2 = navToc.cloneNode(true);
	navToc.parentNode.removeChild(navToc);
	navRight.appendChild( navToc2 ); 

	navToc2.style.display = 'block';
}