[gentoo-commits] sites/www:master commit in: donate/

2016-11-15 Thread Robin H. Johnson
commit: b451fae0e5ff70b38adc2ec1c469a6463fd476b4
Author: Robin H. Johnson  gentoo  org>
AuthorDate: Tue Nov 15 17:56:40 2016 +
Commit: Robin H. Johnson  gentoo  org>
CommitDate: Tue Nov 15 17:56:40 2016 +
URL:https://gitweb.gentoo.org/sites/www.git/commit/?id=b451fae0

Donation button was broken for a month :-(.

Signed-off-by: Robin H. Johnson  gentoo.org>

 donate/index.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/donate/index.html b/donate/index.html
index d36d368..7b105ed 100644
--- a/donate/index.html
+++ b/donate/index.html
@@ -32,7 +32,7 @@ layout: tyrian
   function validate_donation_form() {
 var input_field = $('#donation-amount');
 
-var amount_str = input_field.value;
+var amount_str = input_field[0].value;
 var amount_num = +amount_str; // unary conversion op
 if (isNaN(amount_num) || amount_num < 5.00) {
   $('#donation-input-group').addClass('has-error');



[gentoo-commits] sites/www:master commit in: donate/

2016-10-14 Thread Alex Legler
commit: 1e2cee911253fb3ee38aa305e97fa1f4ac7cd515
Author: Alex Legler  a3li  li>
AuthorDate: Fri Oct 14 11:35:36 2016 +
Commit: Alex Legler  gentoo  org>
CommitDate: Fri Oct 14 11:35:36 2016 +
URL:https://gitweb.gentoo.org/sites/www.git/commit/?id=1e2cee91

Improve donation checking UX

 donate/index.html | 21 +++--
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/donate/index.html b/donate/index.html
index 8aa2f05..d36d368 100644
--- a/donate/index.html
+++ b/donate/index.html
@@ -30,12 +30,13 @@ layout: tyrian
 
 

[gentoo-commits] sites/www:master commit in: donate/

2016-09-23 Thread Robin H. Johnson
commit: 0d3af7ac18335c4ca74f9350e586313b94ea98f1
Author: Robin H. Johnson  gentoo  org>
AuthorDate: Sat Sep 24 00:26:46 2016 +
Commit: Robin H. Johnson  gentoo  org>
CommitDate: Sat Sep 24 00:30:48 2016 +
URL:https://gitweb.gentoo.org/sites/www.git/commit/?id=0d3af7ac

donate: set $5 min donation.

The foundation has recieved a number of small fraudulant donations,
possibly made to test stolen credit card numbers. These donations had
chargebacks fee levied against us by Paypal.

We are striving to verify the donations where possible, but this will
help reduce them.

Signed-off-by: Robin H. Johnson  gentoo.org>

 donate/index.html | 23 +++
 1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/donate/index.html b/donate/index.html
index 7168a69..8aa2f05 100644
--- a/donate/index.html
+++ b/donate/index.html
@@ -28,7 +28,20 @@ layout: tyrian
   
 You can easily make a one-time contribution using PayPal:
 
-https://www.paypal.com/cgi-bin/webscr; method="post" 
class="donate-form">
+
+  function validate_donation_form() {
+var amount_str = document.forms["donate-form"]["amount"].value;
+var amount_num = +amount_str; // unary conversion op
+if (isNaN(amount_num)) {
+  return false;
+}
+if (amount_num < 5.00) {
+  return false;
+}
+return true;
+  }
+
+https://www.paypal.com/cgi-bin/webscr; method="post" 
class="donate-form" name="donate-form" onsubmit="return 
validate_donation_form()">
   
   
   
@@ -41,7 +54,7 @@ layout: tyrian
   https://www.gentoo.org/donate/cancel.html;>
   
 US $
-
+
 
Donate!
 
@@ -50,7 +63,9 @@ layout: tyrian
 
 
   You can use this form even if you don't have or want to create a 
PayPal account.
-  On the next screen, you can pay with your credit card instead.
+  On the next screen, you can pay with your credit card instead. 
Please note that
+  there is a US$ 5 minimum, and you may be contacted to confirm your 
donation is
+  not fraudulent.
 
   
 
@@ -113,4 +128,4 @@ layout: tyrian
 Our presence there was only possible thanks to your support
 Picture by Hanno Böck/CC-0
   
-
\ No newline at end of file
+