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 id='wnavcontrol' style='float: right'><a onclick='clickSupport()'>Support</a> | <a onclick='hideNav()' style='font-weight: bold'>-Wiki</a></span>";
   var dshow = "<span id='wnavcontrol' style='float: right'><a onclick='clickSupport(1)'>FB Credits 1</a>, <a onclick='clickSupport(5)'>5</a>, <a onclick='clickSupport(10)'>10</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 id='wnavcontrol' style='float: right'><a onclick='clickSupport()'>Support</a> | <a onclick='showNav()' style='font-weight: bold'>+Wiki</a></span>";
   var dshow = "<span id='wnavcontrol' style='float: right'><a onclick='clickSupport(1)'>FB Credits 1</a>, <a onclick='clickSupport(5)'>5</a>, <a onclick='clickSupport(10)'>10</a> | <a onclick='showNav()' style='font-weight: bold'>+Wiki</a></span>";
   $('#firstHeading').before(dshow).fadeIn();
   $('#firstHeading').before(dshow).fadeIn();
   wnavcontrol = true;
   wnavcontrol = true;
Line 54: Line 54:




     function clickSupport() {
     function clickSupport(num) {
       document.write('<script src="http://connect.facebook.net/en_US/all.js"></script>');
       document.write('<script src="http://connect.facebook.net/en_US/all.js"></script>');
       // Assign an internal ID that points to a database record
       // Assign an internal ID that points to a database record
       var order_info = 'canbudget';
       var order_info = 'canbudget'+num;


       // calling the API ...
       // calling the API ...