User:Hansengel/vector.js

var sidebarSwitch = addPortletLink("p-cactions", "javascript:sidebarShow", "Show sidebar", "ca-sidebar", "Show the navigation links", "a"); function sidebarShow { document.getElementById("mw-panel").style.visibility = ""; document.getElementById("mw-head-base").style.marginLeft = ""; document.getElementById("content").style.marginLeft = ""; document.getElementById("left-navigation").style.left = ""; document.getElementById("footer").style.marginLeft = ""; }