From 94526d416d57fae2cc49a68cb3abf7cfacc6d1af 2013-05-01 12:44:12 From: Bradley M. Kuhn Date: 2013-05-01 12:44:12 Subject: [PATCH] Implement slider to draw attention to donate box upon clicking of donate links. Replaces previous self-link back to same page that was rather pointless. I've tested that this Gracefully degrades on a non-graphical browser to just in-page link back to the donate portion at the top the page. --- diff --git a/www/conservancy/static/campaign/index.html b/www/conservancy/static/campaign/index.html index cdaded3d34c5247718d36c237d7f0b06e03ba83e..1863ee49520b82f6b95e71c5003ae28f9cca819c 100644 --- a/www/conservancy/static/campaign/index.html +++ b/www/conservancy/static/campaign/index.html @@ -32,7 +32,16 @@ } else { $control.html($control.attr('data-text')); } - }) + }); + $('a.donate-now') + .addClass('clickable') + .bind('click', function() { + var $control = $('#donate-box'); + + $control.toggleClass('expanded'); + $control.find('.toggle-content').slideUp("slow"); + $control.find('.toggle-content').slideDown("slow"); + }); }); {% endblock %} @@ -43,6 +52,9 @@
+ + +