[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [webwml/staging] fix other ways to donate link functionality
commit 22088868a03ae9e9b55f7ce6e2993f787888ffa6
Author: MehrabKamrani <mk.zizou@xxxxxxxxx>
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);
+ });
+
});
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits