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

From Wikimedia District of Columbia
Jump to navigation Jump to search
m (Removing useless provision)
(New code for push-button membership)
Line 1: Line 1:
 
/* Add a membership payment button */
 
/* Add a membership payment button */
 
if ( ( mw.config.get('wgPageName') == 'User:James_Hare/Membership' ) ) {
 
if ( ( mw.config.get('wgPageName') == 'User:James_Hare/Membership' ) ) {
$('#membershipbutton').html('<form 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="R9RT2GWXZZWXL"><table><tr><td><input type="hidden" name="on0" value="Donation Options"></td></tr><tr><td><select name="os0"><option value="Regular Membership">Regular Membership : $10.00 USD - yearly</option><option value="Bronze Sponsor">Bronze Sponsor : $25.00 USD - yearly</option><option value="Silver Sponsor">Silver Sponsor : $50.00 USD - yearly</option><option value="Gold Sponsor">Gold Sponsor : $100.00 USD - yearly</option></select></td></tr></table><input type="hidden" name="currency_code" value="USD"><input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>');
+
$('#membershipbutton').html('<form 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="R9RT2GWXZZWXL"><input type="hidden" name="on0" value="Donation Options"><input type="hidden" name="os0" value="Regular Membership"><input type="hidden" name="currency_code" value="USD"><input type="image" src="http://wikimediadc.org/w/images/3/38/Payment_button_-_10.png" border="0" name="submit" alt="Member dues: $10 per year"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form><form 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="R9RT2GWXZZWXL"><input type="hidden" name="on0" value="Donation Options"><input type="hidden" name="os0" value="Bronze Sponsor"><input type="hidden" name="currency_code" value="USD"><input type="image" src="http://wikimediadc.org/w/images/9/99/Payment_button_-_25.png" border="0" name="submit" alt="Member dues with Bronze Sponsorship: $25 per year"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form><form 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="R9RT2GWXZZWXL"><input type="hidden" name="on0" value="Donation Options"><input type="hidden" name="os0" value="Silver Sponsor"><input type="hidden" name="currency_code" value="USD"><input type="image" src="http://wikimediadc.org/w/images/e/ec/Payment_button_-_50.png" border="0" name="submit" alt="Member dues with Silver Sponsorship: $50 per year"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form><form 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="R9RT2GWXZZWXL"><input type="hidden" name="on0" value="Donation Options"><input type="hidden" name="os0" value="Gold Sponsor"><input type="hidden" name="currency_code" value="USD"><input type="image" src="http://wikimediadc.org/w/images/1/1d/Payment_button_-_100.png" border="0" name="submit" alt="Member dues with Gold Sponsorship: $100 per year"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>');
 
}
 
}

Revision as of 20:50, 25 May 2013

/* Add a membership payment button */
if ( ( mw.config.get('wgPageName') == 'User:James_Hare/Membership' ) ) {
  $('#membershipbutton').html('<form 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="R9RT2GWXZZWXL"><input type="hidden" name="on0" value="Donation Options"><input type="hidden" name="os0" value="Regular Membership"><input type="hidden" name="currency_code" value="USD"><input type="image" src="http://wikimediadc.org/w/images/3/38/Payment_button_-_10.png" border="0" name="submit" alt="Member dues: $10 per year"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form><form 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="R9RT2GWXZZWXL"><input type="hidden" name="on0" value="Donation Options"><input type="hidden" name="os0" value="Bronze Sponsor"><input type="hidden" name="currency_code" value="USD"><input type="image" src="http://wikimediadc.org/w/images/9/99/Payment_button_-_25.png" border="0" name="submit" alt="Member dues with Bronze Sponsorship: $25 per year"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form><form 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="R9RT2GWXZZWXL"><input type="hidden" name="on0" value="Donation Options"><input type="hidden" name="os0" value="Silver Sponsor"><input type="hidden" name="currency_code" value="USD"><input type="image" src="http://wikimediadc.org/w/images/e/ec/Payment_button_-_50.png" border="0" name="submit" alt="Member dues with Silver Sponsorship: $50 per year"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form><form 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="R9RT2GWXZZWXL"><input type="hidden" name="on0" value="Donation Options"><input type="hidden" name="os0" value="Gold Sponsor"><input type="hidden" name="currency_code" value="USD"><input type="image" src="http://wikimediadc.org/w/images/1/1d/Payment_button_-_100.png" border="0" name="submit" alt="Member dues with Gold Sponsorship: $100 per year"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>');
}