User:Bryan/vector.js

var barHandlers = { hide : function { var content = document.getElementById('content'); content.className = 'full-width'; this.onclick = barHandlers.show; },	show : function { var content = document.getElementById('content'); content.className = ''; this.onclick = barHandlers.hide; } };

addOnloadHook( function {	var bar = document.createElement('div');	bar.id = 'collapse-sidebar';	bar.onclick = barHandlers.hide;	document.body.appendChild(bar); } );