பயனர்:Tshrinivasan/Hideside.js: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
"/* hide-vector-sidebar.js: Adds a button to toggle visibility of t..."-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது |
(வேறுபாடு ஏதுமில்லை)
|
14:29, 21 சூன் 2018 இல் நிலவும் திருத்தம்
/* 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()", "இடப்பக்கக் கருவிப்பட்டையைக் காட்டுக", "ca-sidebar", "வழிமாற்று இணைப்புகளைக் காட்டுக", "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()", "இடப்பக்கக் கருவிப்பட்டையை மறைக்கவும்", "ca-sidebar", "வழிமாற்று இணைப்புகளைக் காட்டுக", "a");
}
// Only activate on Vector skin
if(skin == "vector") {
addOnloadHook(function() {
// Change this if you want to show the sidebar by default
sidebarHide();
});
}