Difference between revisions of "User:James Hare/vector.js"
Jump to navigation
Jump to search
James Hare (talk | contribs) m (Fixing; adding padding) |
James Hare (talk | contribs) (Moving to MediaWiki:Vector.js) |
||
(21 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | /* Add a donate button */ |
||
− | if ( ( mw.config.get('wgPageName') == 'User:James_Hare' ) ) { |
||
− | var formId = 'donateform'; |
||
− | $('#donatebutton').html('<div class="plainlinks"><form id="donateform10" 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 + 10).submit()"><span class="btn btn-large btn-primary" style="color:white !important; font-size:200% !important; padding-bottom:0.5em;">$10</span></a></form><form id="donateform25" 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 + 25).submit()"><span class="btn btn-large btn-primary" style="color:white !important; font-size:200% !important; padding-bottom:0.5em;">$25</span></a></div></form></div>'); |
||
− | } |