Difference between revisions of "User:James Hare/vector.js"
Jump to navigation
Jump to search
James Hare (talk | contribs) (Slightly wider buttons) |
James Hare (talk | contribs) (Ugh forget it) |
||
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('<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="width: |
+ | $('#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="width:60px; color:white !important; font-size:200% !important;">$10</span></a></form><div style="padding: 0.3em;"></div><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="width:60px; color:white !important; font-size:200% !important;">$25</span></a></form><div style="padding: 0.3em;"></div><form id="donateform50" 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="3E66M99JDV836"><a href="#" onclick="document.getElementById(formId + 50).submit()"><span class="btn btn-large btn-primary" style="width:60px; color:white !important; font-size:200% !important;">$50</span></a></form><div style="padding: 0.3em;"></div><form id="donateform100" 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="GNEQ7GUKNF9BS"><a href="#" onclick="document.getElementById(formId + 100).submit()"><span class="btn btn-large btn-primary" style="width:60px; color:white !important; font-size:200% !important;">$100</span></a></form><div style="padding: 0.3em;"></div><form id="donateform200" 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="BU3YMWQSVJ9HW"><a href="#" onclick="document.getElementById(formId + 200).submit()"><span class="btn btn-large btn-primary" style="width:60px; color:white !important; font-size:200% !important;">$200</span></a></form></div>'); |
} |
} |
Revision as of 22:09, 28 May 2013
/* Add donation buttons */
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="width:60px; color:white !important; font-size:200% !important;">$10</span></a></form><div style="padding: 0.3em;"></div><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="width:60px; color:white !important; font-size:200% !important;">$25</span></a></form><div style="padding: 0.3em;"></div><form id="donateform50" 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="3E66M99JDV836"><a href="#" onclick="document.getElementById(formId + 50).submit()"><span class="btn btn-large btn-primary" style="width:60px; color:white !important; font-size:200% !important;">$50</span></a></form><div style="padding: 0.3em;"></div><form id="donateform100" 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="GNEQ7GUKNF9BS"><a href="#" onclick="document.getElementById(formId + 100).submit()"><span class="btn btn-large btn-primary" style="width:60px; color:white !important; font-size:200% !important;">$100</span></a></form><div style="padding: 0.3em;"></div><form id="donateform200" 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="BU3YMWQSVJ9HW"><a href="#" onclick="document.getElementById(formId + 200).submit()"><span class="btn btn-large btn-primary" style="width:60px; color:white !important; font-size:200% !important;">$200</span></a></form></div>');
}