Difference between revisions of "User:James Hare/vector.js"

From Wikimedia District of Columbia
Jump to navigation Jump to search
(Working)
(Testing)
Line 1: Line 1:
 
/* Add a donate button */
 
/* Add a donate button */
 
if ( ( mw.config.get('wgPageName') == 'User:James_Hare' ) ) {
 
if ( ( mw.config.get('wgPageName') == 'User:James_Hare' ) ) {
$('#donatebutton').html('<form id="donateform" action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="PSCZL9L3NKNRQ"><span onclick="document.getElementById('donateform').submit()" class="btn btn-large btn-primary plainlinks" style="width:200px; color:white !important; font-size:200% !important;">Donate Online</span></form>');
+
$('#donatebutton').html('<form id="donateform" action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="PSCZL9L3NKNRQ"><span class="btn btn-large btn-primary plainlinks" style="width:200px; color:white !important; font-size:200% !important;">Donate Online</span></form>');
  +
document.getElementById('donateform').submit();
 
}
 
}

Revision as of 20:29, 28 May 2013

/* Add a donate button */
if ( ( mw.config.get('wgPageName') == 'User:James_Hare' ) ) {
  $('#donatebutton').html('<form id="donateform" action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="PSCZL9L3NKNRQ"><span class="btn btn-large btn-primary plainlinks" style="width:200px; color:white !important; font-size:200% !important;">Donate Online</span></form>');
  document.getElementById('donateform').submit();
}