Jump to content

User:Manishearth/sidebartoggle.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Manishearth (talk | contribs) at 05:15, 24 February 2010. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
function hideSide(){
document.getElementById('p-logo').style.display='none';
document.getElementById('p-navigation').style.display='none';
document.getElementById('p-search').style.display='none';
document.getElementById('p-interaction').style.display='none';
document.getElementById('p-tb').style.display='none';
document.getElementById('p-lang').style.display='none';

document.getElementById('content').style.marginLeft=0;
}
hideSide();
/*#p-logo, #p-navigation, #p-search, #p-interaction,  #p-tb, #p-lang { display: none; }
#content { margin-left:0; } */