MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 5: Line 5:
   $('#content').css('margin-left', '10em');
   $('#content').css('margin-left', '10em');
   $('#wnavcontrol').remove();
   $('#wnavcontrol').remove();
   var dshow = "<span style='float: right'><a onclick='clickSupport()'>Support</a> | <a id='wnavcontrol' onclick='hideNav()' style='font-weight: bold'>-Wiki</a></span>";
   var dshow = "<span id='wnavcontrol' style='float: right'><a onclick='clickSupport()'>Support</a> | <a onclick='hideNav()' style='font-weight: bold'>-Wiki</a></span>";
   $('#firstHeading').before(dshow).fadeIn();
   $('#firstHeading').before(dshow).fadeIn();
}
}
Line 15: Line 15:
       $('#wnavcontrol').remove();
       $('#wnavcontrol').remove();
   }
   }
   var dshow = "<span style='float: right'><a onclick='clickSupport()'>Support</a> | <a id='wnavcontrol' onclick='showNav()' style='font-weight: bold'>+Wiki</a></span>";
   var dshow = "<span id='wnavcontrol' style='float: right'><a onclick='clickSupport()'>Support</a> | <a onclick='showNav()' style='font-weight: bold'>+Wiki</a></span>";
   $('#firstHeading').before(dshow).fadeIn();
   $('#firstHeading').before(dshow).fadeIn();
   wnavcontrol = true;
   wnavcontrol = true;