ബ്യൂറോക്രാറ്റുകൾ, ചെക്ക് യൂസർമാർ, emailconfirmed, സമ്പർക്കമുഖ കാര്യനിർവാഹകർ, kiteuser, oversight, അമർച്ചകർ, കാര്യനിർവാഹകർ, അപ്ലോഡ് സഹായി മേള തിരുത്തുന്നവർ
23,916
തിരുത്തലുകൾ
No edit summary |
No edit summary |
||
വരി 78: | വരി 78: | ||
$(customizeWikipedia); | $(customizeWikipedia); | ||
/** | |||
* Dynamic Navigation Bars (experimental) | |||
* | |||
* Description: See [[Wikipedia:NavFrame]]. | |||
* Maintainers: UNMAINTAINED | |||
*/ | |||
/* set up the words in your language */ | |||
var NavigationBarHide = 'മറയ്ക്കുക'; | |||
var NavigationBarShow = 'പ്രദർശിപ്പിക്കുക'; | |||
var indexNavigationBar = 0; | |||
/** | |||
* Shows and hides content and picture (if available) of navigation bars | |||
* Parameters: | |||
* indexNavigationBar: the index of navigation bar to be toggled | |||
**/ | |||
window.toggleNavigationBar = function ( indexNavigationBar, event ) { | |||
var NavToggle = document.getElementById( 'NavToggle' + indexNavigationBar ); | |||
var NavFrame = document.getElementById( 'NavFrame' + indexNavigationBar ); | |||
var NavChild; | |||
if ( !NavFrame || !NavToggle ) { | |||
return false; | |||
} | |||
/* if shown now */ | |||
if ( NavToggle.firstChild.data === NavigationBarHide ) { | |||
for ( NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling ) { | |||
if ( $( NavChild ).hasClass( 'NavContent' ) || $( NavChild ).hasClass( 'NavPic' ) ) { | |||
NavChild.style.display = 'none'; | |||
} | |||
} | |||
NavToggle.firstChild.data = NavigationBarShow; | |||
/* if hidden now */ | |||
} else if ( NavToggle.firstChild.data === NavigationBarShow ) { | |||
for ( NavChild = NavFrame.firstChild; NavChild != null; NavChild = NavChild.nextSibling ) { | |||
if ( $( NavChild ).hasClass( 'NavContent' ) || $( NavChild ).hasClass( 'NavPic' ) ) { | |||
NavChild.style.display = 'block'; | |||
} | |||
} | |||
NavToggle.firstChild.data = NavigationBarHide; | |||
} | |||
event.preventDefault(); | |||
}; | |||
/* adds show/hide-button to navigation bars */ | /* adds show/hide-button to navigation bars */ |
തിരുത്തലുകൾ