# HG changeset patch # User Armin Rigo <arigo@tunes.org> # Date 1289403709 0 # Wed Nov 10 15:41:49 2010 +0000 # Branch extradoc # Node ID 061cf2e5204e3b1bd67a2abeebfd53472a2d2e22 # Parent 2c0152a4cea47b42d92a95e51a853cd0e5d950c3 Add the google checkout link to pypy.org. diff --git a/compat.html b/compat.html --- a/compat.html +++ b/compat.html @@ -122,6 +122,40 @@ </li> <li> <div class="sidepic"> +<script type="text/javascript"> +function validateAmount(amount){ + if(amount.value.match( /^[0-9]+(\.([0-9]+))?$/)){ + return true; + }else{ + alert('You must enter a valid donation.'); + amount.focus(); + return false; + } +} +</script> +<form action="https://checkout.google.com/cws/v2/Donations/622836985124940/checkoutForm" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" onSubmit="return validateAmount(this.item_price_1)" target="_top"> + <input name="item_name_1" type="hidden" value="PyPy Directed Donation via Software Freedom Conservancy, Inc." /> + <input name="item_description_1" type="hidden" value="This is a donation to the Software Freedom Conservancy, Inc. The donation will be directed for the PyPy project." /> + <input name="item_quantity_1" type="hidden" value="1" /> + <input name="item_currency_1" type="hidden" value="USD" /> + <input name="item_is_modifiable_1" type="hidden" value="true" /> + <input name="item_min_price_1" type="hidden" value="5.0" /> + <input name="item_max_price_1" type="hidden" value="25000.0" /> + <input name="_charset_" type="hidden" value="utf-8" /> + <table cellpadding="5" cellspacing="0" width="1%"> + <tr> + <td align="right" nowrap="nowrap" width="1%">$ <input id="item_price_1" name="item_price_1" onfocus="this.style.color='black'; this.value='';" size="11" style="color:grey;" type="text" value="Enter Amount" /> + </td> + <td align="left" width="1%"> + <input alt="Donate" src="https://checkout.google.com/buttons/donateNow.gif?merchant_id=622836985124940&w=115&h=50&style=white&variant=text&loc=en_US" type="image" /> + </td> + </tr> + </table> +</form> + </div> + </li> + <li> + <div class="sidepic"> <a id="main_download" href="download.html">Download PyPy</a> </div> </li> diff --git a/contact.html b/contact.html --- a/contact.html +++ b/contact.html @@ -68,6 +68,40 @@ </li> <li> <div class="sidepic"> +<script type="text/javascript"> +function validateAmount(amount){ + if(amount.value.match( /^[0-9]+(\.([0-9]+))?$/)){ + return true; + }else{ + alert('You must enter a valid donation.'); + amount.focus(); + return false; + } +} +</script> +<form action="https://checkout.google.com/cws/v2/Donations/622836985124940/checkoutForm" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" onSubmit="return validateAmount(this.item_price_1)" target="_top"> + <input name="item_name_1" type="hidden" value="PyPy Directed Donation via Software Freedom Conservancy, Inc." /> + <input name="item_description_1" type="hidden" value="This is a donation to the Software Freedom Conservancy, Inc. The donation will be directed for the PyPy project." /> + <input name="item_quantity_1" type="hidden" value="1" /> + <input name="item_currency_1" type="hidden" value="USD" /> + <input name="item_is_modifiable_1" type="hidden" value="true" /> + <input name="item_min_price_1" type="hidden" value="5.0" /> + <input name="item_max_price_1" type="hidden" value="25000.0" /> + <input name="_charset_" type="hidden" value="utf-8" /> + <table cellpadding="5" cellspacing="0" width="1%"> + <tr> + <td align="right" nowrap="nowrap" width="1%">$ <input id="item_price_1" name="item_price_1" onfocus="this.style.color='black'; this.value='';" size="11" style="color:grey;" type="text" value="Enter Amount" /> + </td> + <td align="left" width="1%"> + <input alt="Donate" src="https://checkout.google.com/buttons/donateNow.gif?merchant_id=622836985124940&w=115&h=50&style=white&variant=text&loc=en_US" type="image" /> + </td> + </tr> + </table> +</form> + </div> + </li> + <li> + <div class="sidepic"> <a id="main_download" href="download.html">Download PyPy</a> </div> </li> diff --git a/download.html b/download.html --- a/download.html +++ b/download.html @@ -241,6 +241,40 @@ </li> <li> <div class="sidepic"> +<script type="text/javascript"> +function validateAmount(amount){ + if(amount.value.match( /^[0-9]+(\.([0-9]+))?$/)){ + return true; + }else{ + alert('You must enter a valid donation.'); + amount.focus(); + return false; + } +} +</script> +<form action="https://checkout.google.com/cws/v2/Donations/622836985124940/checkoutForm" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" onSubmit="return validateAmount(this.item_price_1)" target="_top"> + <input name="item_name_1" type="hidden" value="PyPy Directed Donation via Software Freedom Conservancy, Inc." /> + <input name="item_description_1" type="hidden" value="This is a donation to the Software Freedom Conservancy, Inc. The donation will be directed for the PyPy project." /> + <input name="item_quantity_1" type="hidden" value="1" /> + <input name="item_currency_1" type="hidden" value="USD" /> + <input name="item_is_modifiable_1" type="hidden" value="true" /> + <input name="item_min_price_1" type="hidden" value="5.0" /> + <input name="item_max_price_1" type="hidden" value="25000.0" /> + <input name="_charset_" type="hidden" value="utf-8" /> + <table cellpadding="5" cellspacing="0" width="1%"> + <tr> + <td align="right" nowrap="nowrap" width="1%">$ <input id="item_price_1" name="item_price_1" onfocus="this.style.color='black'; this.value='';" size="11" style="color:grey;" type="text" value="Enter Amount" /> + </td> + <td align="left" width="1%"> + <input alt="Donate" src="https://checkout.google.com/buttons/donateNow.gif?merchant_id=622836985124940&w=115&h=50&style=white&variant=text&loc=en_US" type="image" /> + </td> + </tr> + </table> +</form> + </div> + </li> + <li> + <div class="sidepic"> <a id="main_download" href="download.html">Download PyPy</a> </div> </li> diff --git a/features.html b/features.html --- a/features.html +++ b/features.html @@ -134,6 +134,40 @@ </li> <li> <div class="sidepic"> +<script type="text/javascript"> +function validateAmount(amount){ + if(amount.value.match( /^[0-9]+(\.([0-9]+))?$/)){ + return true; + }else{ + alert('You must enter a valid donation.'); + amount.focus(); + return false; + } +} +</script> +<form action="https://checkout.google.com/cws/v2/Donations/622836985124940/checkoutForm" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" onSubmit="return validateAmount(this.item_price_1)" target="_top"> + <input name="item_name_1" type="hidden" value="PyPy Directed Donation via Software Freedom Conservancy, Inc." /> + <input name="item_description_1" type="hidden" value="This is a donation to the Software Freedom Conservancy, Inc. The donation will be directed for the PyPy project." /> + <input name="item_quantity_1" type="hidden" value="1" /> + <input name="item_currency_1" type="hidden" value="USD" /> + <input name="item_is_modifiable_1" type="hidden" value="true" /> + <input name="item_min_price_1" type="hidden" value="5.0" /> + <input name="item_max_price_1" type="hidden" value="25000.0" /> + <input name="_charset_" type="hidden" value="utf-8" /> + <table cellpadding="5" cellspacing="0" width="1%"> + <tr> + <td align="right" nowrap="nowrap" width="1%">$ <input id="item_price_1" name="item_price_1" onfocus="this.style.color='black'; this.value='';" size="11" style="color:grey;" type="text" value="Enter Amount" /> + </td> + <td align="left" width="1%"> + <input alt="Donate" src="https://checkout.google.com/buttons/donateNow.gif?merchant_id=622836985124940&w=115&h=50&style=white&variant=text&loc=en_US" type="image" /> + </td> + </tr> + </table> +</form> + </div> + </li> + <li> + <div class="sidepic"> <a id="main_download" href="download.html">Download PyPy</a> </div> </li> diff --git a/index.html b/index.html --- a/index.html +++ b/index.html @@ -81,6 +81,40 @@ </li> <li> <div class="sidepic"> +<script type="text/javascript"> +function validateAmount(amount){ + if(amount.value.match( /^[0-9]+(\.([0-9]+))?$/)){ + return true; + }else{ + alert('You must enter a valid donation.'); + amount.focus(); + return false; + } +} +</script> +<form action="https://checkout.google.com/cws/v2/Donations/622836985124940/checkoutForm" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" onSubmit="return validateAmount(this.item_price_1)" target="_top"> + <input name="item_name_1" type="hidden" value="PyPy Directed Donation via Software Freedom Conservancy, Inc." /> + <input name="item_description_1" type="hidden" value="This is a donation to the Software Freedom Conservancy, Inc. The donation will be directed for the PyPy project." /> + <input name="item_quantity_1" type="hidden" value="1" /> + <input name="item_currency_1" type="hidden" value="USD" /> + <input name="item_is_modifiable_1" type="hidden" value="true" /> + <input name="item_min_price_1" type="hidden" value="5.0" /> + <input name="item_max_price_1" type="hidden" value="25000.0" /> + <input name="_charset_" type="hidden" value="utf-8" /> + <table cellpadding="5" cellspacing="0" width="1%"> + <tr> + <td align="right" nowrap="nowrap" width="1%">$ <input id="item_price_1" name="item_price_1" onfocus="this.style.color='black'; this.value='';" size="11" style="color:grey;" type="text" value="Enter Amount" /> + </td> + <td align="left" width="1%"> + <input alt="Donate" src="https://checkout.google.com/buttons/donateNow.gif?merchant_id=622836985124940&w=115&h=50&style=white&variant=text&loc=en_US" type="image" /> + </td> + </tr> + </table> +</form> + </div> + </li> + <li> + <div class="sidepic"> <a id="main_download" href="download.html">Download PyPy</a> </div> </li> diff --git a/source/_layouts/page.genshi b/source/_layouts/page.genshi --- a/source/_layouts/page.genshi +++ b/source/_layouts/page.genshi @@ -22,6 +22,40 @@ </li> <li> <div class="sidepic"> +<script type="text/javascript"> +function validateAmount(amount){ + if(amount.value.match( /^[0-9]+(\.([0-9]+))?$/)){ + return true; + }else{ + alert('You must enter a valid donation.'); + amount.focus(); + return false; + } +} +</script> +<form action="https://checkout.google.com/cws/v2/Donations/622836985124940/checkoutForm" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm" onSubmit="return validateAmount(this.item_price_1)" target="_top"> + <input name="item_name_1" type="hidden" value="PyPy Directed Donation via Software Freedom Conservancy, Inc."/> + <input name="item_description_1" type="hidden" value="This is a donation to the Software Freedom Conservancy, Inc. The donation will be directed for the PyPy project."/> + <input name="item_quantity_1" type="hidden" value="1"/> + <input name="item_currency_1" type="hidden" value="USD"/> + <input name="item_is_modifiable_1" type="hidden" value="true"/> + <input name="item_min_price_1" type="hidden" value="5.0"/> + <input name="item_max_price_1" type="hidden" value="25000.0"/> + <input name="_charset_" type="hidden" value="utf-8"/> + <table cellpadding="5" cellspacing="0" width="1%"> + <tr> + <td align="right" nowrap="nowrap" width="1%">$ <input id="item_price_1" name="item_price_1" onfocus="this.style.color='black'; this.value='';" size="11" style="color:grey;" type="text" value="Enter Amount"/> + </td> + <td align="left" width="1%"> + <input alt="Donate" src="https://checkout.google.com/buttons/donateNow.gif?merchant_id=622836985124940&w=115&h=50&style=white&variant=text&loc=en_US" type="image"/> + </td> + </tr> + </table> +</form> + </div> + </li> + <li> + <div class="sidepic"> <a id="main_download" href="download.html">Download PyPy</a> </div> </li>