From efe90bd2d04ea3b82389db0ebfe74b94d8a18981 2015-03-09 15:46:16 From: Bradley M. Kuhn Date: 2015-03-09 15:46:16 Subject: [PATCH] Better animation effects when donate link clicked. The banner always faded in/out, but now other texts can be designated with the class 'donate-box-highlight' and those will fade out and fade back in with bold and slightly larger font. --- diff --git a/www/conservancy/static/npoacct/index.html b/www/conservancy/static/npoacct/index.html index 55a6bf55980945c386ca2730cb5114fbe54d16c8..f8a40ee69232760b48d93d56d26dcad5c4c5b8b1 100644 --- a/www/conservancy/static/npoacct/index.html +++ b/www/conservancy/static/npoacct/index.html @@ -109,7 +109,7 @@ our ${{ fundgoal.fundraiser_goal_amount|floatformat:0
(i.e., {{ fundgoal.percentage_there|floatformat:1 }}%)

(Progress bar updated daily.)

-

Help us reach our goal:

+
@@ -204,7 +204,7 @@ evbind(document.getElementById('bank-account-form'), 'submit', - Balanced end -->

-Other donation methods: +

Wire Transfer

diff --git a/www/conservancy/static/supporter-page.js b/www/conservancy/static/supporter-page.js index c2e6d52bfc3fe3a7d7d1b1e549ae75e48f78550f..910c679d9c23d1196cfe8a5fea021884b575e4bc 100644 --- a/www/conservancy/static/supporter-page.js +++ b/www/conservancy/static/supporter-page.js @@ -59,10 +59,18 @@ $(document).ready(function() { .addClass('clickable') .bind('click', function() { var $control = $('#donate-box'); + var $otherTextControl = $('.donate-sidebar'); - $control.toggleClass('expanded'); - $control.find('.toggle-content').slideUp("slow"); - $control.find('.toggle-content').slideDown("slow"); + setTimeout(function() { $control.find('.toggle-content').slideUp(100); + $control.toggleClass('expanded'); + $control.find('.toggle-content').slideDown(800).fadeOut(10); + $otherTextControl.find('.donate-box-highlight').fadeOut(100); + }, 300); + setTimeout(function() { $control.find('.toggle-content').fadeIn(2000); + $otherTextControl.find('.donate-box-highlight') + .css({'font-weight': 'bold', 'font-size' : '110%' }); + $otherTextControl.find('.donate-box-highlight').fadeIn(10000); + }, 500); }); $(".t-shirt-size-selector").hide(); $('input[name=on0]:radio').change(function() { diff --git a/www/conservancy/templates/base_compliance.html b/www/conservancy/templates/base_compliance.html index 0895a769a1c498d7c686734802d1c9695e0060c4..9c79e3314c6340a8accb3796b79c75148f86601e 100644 --- a/www/conservancy/templates/base_compliance.html +++ b/www/conservancy/templates/base_compliance.html @@ -19,7 +19,7 @@

Support GPL Compliance Now!

-

Support our GPL compliance work now & donations count double!

+

Support our GPL compliance work now &

{% cache 3600 compliancedonation fundgoal.fundraiser_so_far_amount %} ${{ fundgoal.fundraiser_so_far_amount|floatformat:0|intcomma }} @@ -27,7 +27,7 @@ of ${{ fundgoal.fundraiser_goal_amount|floatformat:0|
(i.e., {{ fundgoal.percentage_there|floatformat:1 }}%)
{% endcache %} -

Donate now via PayPal: +

@@ -38,8 +38,8 @@ of ${{ fundgoal.fundraiser_goal_amount|floatformat:0| -

Or, become a Conservancy - Supporter (— a better option if you're donating more +

Or, (— a better option if you're donating more than $120, since you'll get a t-shirt!).