MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
function showNav() {
  $(".noprint").show();
  $('#content').css('margin-left', '10em');
}
function hideNav() {
  $(".noprint").hide();
  $('#content').css('margin-left', '0em');
}
onload=function(){
onload=function(){
   $('.noprint').hide();
  var dshow = "<span onclick='showNav()'>Show</span>";
   $('#bodyContent').append(dshow);
  hideNav();


   if (document.getElementsByClassName == undefined) {
   if (document.getElementsByClassName == undefined) {

Navigation menu