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

From Wikimedia District of Columbia
Jump to navigation Jump to search
m (A touch bigger)
(Two buttons: $10 and $25)
Line 2: Line 2:
 
if ( ( mw.config.get('wgPageName') == 'User:James_Hare' ) ) {
 
if ( ( mw.config.get('wgPageName') == 'User:James_Hare' ) ) {
 
var formId = 'donateform';
 
var formId = 'donateform';
$('#donatebutton').html('<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="S7YX2BAZDVSAE"><div class="plainlinks"><a href="#" onclick="document.getElementById(formId).submit()"><span class="btn btn-large btn-primary" style="color:white !important; font-size:175% !important;">$10</span></a></div></form>');
+
$('#donatebutton').html('<div class="plainlinks"><form id="donateform" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="S7YX2BAZDVSAE"><a href="#" onclick="document.getElementById(formId).submit()"><span class="btn btn-large btn-primary" style="color:white !important; font-size:175% !important;">$10</span></a></form><form id="donateform" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="J3RV9PVMSRH8Y"><a href="#" onclick="document.getElementById(formId).submit()"><span class="btn btn-large btn-primary" style="color:white !important; font-size:175% !important;">$25</span></a></div></form></div>');
 
}
 
}

Revision as of 21:18, 28 May 2013

/* Add a donate button */
if ( ( mw.config.get('wgPageName') == 'User:James_Hare' ) ) {
  var formId = 'donateform';
  $('#donatebutton').html('<div class="plainlinks"><form id="donateform" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="S7YX2BAZDVSAE"><a href="#" onclick="document.getElementById(formId).submit()"><span class="btn btn-large btn-primary" style="color:white !important; font-size:175% !important;">$10</span></a></form><form id="donateform" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="J3RV9PVMSRH8Y"><a href="#" onclick="document.getElementById(formId).submit()"><span class="btn btn-large btn-primary" style="color:white !important; font-size:175% !important;">$25</span></a></div></form></div>');
}