MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
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 id='wnavcontrol' onclick='hideNav()' style='float: right; font-weight: bold; color: blue'>-Wiki </span> ";
   var dshow = "<a onclick="clickSupport()">Support</a> | <a id='wnavcontrol' onclick='hideNav()' style='float: right; font-weight: bold'>-Wiki </a> ";
   $('#firstHeading').before(dshow).fadeIn();
   $('#firstHeading').before(dshow).fadeIn();
}
}
Line 15: Line 15:
       $('#wnavcontrol').remove();
       $('#wnavcontrol').remove();
   }
   }
   var dshow = "<span id='wnavcontrol' onclick='showNav()' style='float: right; font-weight: bold; color: blue'>+Wiki </span> ";
   var dshow = "<a onclick="clickSupport()">Support</a> | <a id='wnavcontrol' onclick='showNav()' style='float: right; font-weight: bold'>+Wiki </a> ";
   $('#firstHeading').before(dshow).fadeIn();
   $('#firstHeading').before(dshow).fadeIn();
   wnavcontrol = true;
   wnavcontrol = true;
Line 24: Line 24:


   hideNav();
   hideNav();
  $('#wnavcontrol').append('| <a onclick="clickSupport()">Support</a>');


   FB.init({appId: 129531840449132, status: true, cookie: true});
   FB.init({appId: 129531840449132, status: true, cookie: true});

Navigation menu