Usuario:ManuelRomero/vector.js
De WikiEducator
Nota: después de guardar, quizás necesites refrescar la caché de tu navegador para ver los cambios.
- Firefox / Safari: Mantén presionada Mayús mientras pulsas el botón Actualizar, o presiona Ctrl+F5 o Ctrl+R (⌘+R en Mac)
- Google Chrome: presiona Ctrl+Shift+R (⌘+Mayús+R en Mac)
- Internet Explorer: mantén presionada Ctrl mientras pulsas Actualizar, o presiona Ctrl+F5
- Opera: vacía la caché en Herramientas → Preferencias
/* hide-vector-sidebar.js: Adds a button to toggle visibility of the Vector sidebar. Written by PleaseStand. Public domain; all copyright claims waived as described in http://en.wikipedia.org/wiki/Template:PD-self */ /*global document, window, addOnloadHook, addPortletLink, skin*/ var sidebarSwitch; function sidebarHide() { document.getElementById("mw-panel").style.visibility = "hidden"; document.getElementById("mw-head-base").style.marginLeft = "0"; document.getElementById("content").style.marginLeft = "0"; document.getElementById("left-navigation").style.left = "0"; document.getElementById("footer").style.marginLeft = "0"; if(typeof sidebarSwitch == "object") { sidebarSwitch.parentNode.removeChild(sidebarSwitch); } sidebarSwitch = addPortletLink("p-cactions", "javascript:sidebarShow()", "Muestra menú", "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 = ""; if(typeof sidebarSwitch == "object") { sidebarSwitch.parentNode.removeChild(sidebarSwitch); } sidebarSwitch = addPortletLink("p-cactions", "javascript:sidebarHide()", "Oculta menú", "ca-sidebar", "Hide the navigation links", "a"); } // Only activate on Vector skin if(skin == "vector") { addOnloadHook(function() { // Change this if you want to show the sidebar by default sidebarShow(); }); }