[tor-commits] [webwml/staging] fix other ways to donate link functionality

nima at torproject.org nima at torproject.org
Sat Dec 26 06:27:17 UTC 2015


commit 7d62660e6672a51e6dffe58130696dea2f169a85
Author: MehrabKamrani <mk.zizou at gmail.com>
Date:   Sun Dec 20 13:21:35 2015 +0800

    fix other ways to donate link functionality
    scroll down the page to other ways donate section if click on other ways to donate link
---
 donate/en/donate.wml |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/donate/en/donate.wml b/donate/en/donate.wml
index 06d8289..490f1a3 100644
--- a/donate/en/donate.wml
+++ b/donate/en/donate.wml
@@ -91,7 +91,7 @@
                 <h5 class="error-msg">The minimum donation amount is $5</h5>
                 <button id="donate-btn" class="btn btn-primary btn-lg btn-block donate-button" style="padding:10px;">Donate</button>
                 <h5>via PayPal (doesn't require an account)</h5>
-                <h4><a href="<page donate/donate-options>">Other Ways to Donate</a></h4>
+                <h4><a id="link" href="#other-ways-section">Other Ways to Donate</a></h4>
               </div>
               
               <!-- PAYPAL ESSENTIAL INPUTS -->
@@ -370,6 +370,14 @@
       $(".left").removeClass('active');
     });
     
+
+    $("#link").on('click',function(event){
+      event.preventDefault();
+      $('html, body').animate({
+        scrollTop: $("#other-ways-section").offset().top
+      }, 200);
+    });
+
   });
 
 





More information about the tor-commits mailing list