Changeset - 94526d416d57
[Not reviewed]
0 1 0
Bradley Kuhn (bkuhn) - 11 years ago 2013-05-01 12:44:12
bkuhn@ebb.org
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.
1 file changed with 21 insertions and 9 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/campaign/index.html
Show inline comments
...
 
@@ -34,3 +34,12 @@
 
        }
 
    })
 
    });
 
    $('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");
 
    });
 
  });
...
 
@@ -45,2 +54,5 @@
 

	
 
<div id="donate-box" class="toggle-unit"><h1 class="toggle-content">Donate Now!</h1></div>
 
</div>
 

	
 
<!--
...
 
@@ -316,3 +328,3 @@ equality, democracy, and sharing.</p>
 

	
 
<p>You can help Conservancy fix this problem by <a href="http://sfconservancy.org/campaign">donating now</a>.  We seek to
 
<p>You can help Conservancy fix this problem by <a href="#donate-box" class="donate-now">donating now</a>.  We seek to
 
raise $75,000 to employ a 
...
 
@@ -331,3 +343,3 @@ into closer collaboration and understanding.</p>
 

	
 
<p>Thanks in advance for <a href="http://sfconservancy.org/campaign">helping us</a> develop Free Software to benefit all
 
<p>Thanks in advance for <a href="#donate-box" class="donate-now">helping us</a> develop Free Software to benefit all
 
non-profit organizations, and the 
...
 
@@ -341,3 +353,3 @@ Foundation, Mozilla Foundation, GNOME Foundation, OpenHatch, Open
 
Source Initiative, QuestionCopyright.org, and Software in the Public
 
Interest; all encourage you to <a href="http://sfconservancy.org/campaign">donate and support it</a>.</p>
 
Interest; all encourage you to <a href="#donate-box" class="donate-now">donate and support it</a>.</p>
 

	
...
 
@@ -387,4 +399,4 @@ Foundation</a>, The <a href="http://www.gnome.org/foundation/">GNOME Foundation<
 
  <a href="http://QuestionCopyright.org">QuestionCopyright.org</a>, and <a href="http://www.spi-inc.org/">Software in the Public Interest</a> have
 
  <a id="endorsements" style="text-decoration:none">all endorsed</a> Conservancy's plan, and they encourage you to donate and
 
  support it.</p>
 
  <a id="endorsements" style="text-decoration:none">all endorsed</a> Conservancy's plan, and they encourage you to <a href="#donate-box" class="donate-now">donate and
 
  support it</a>.</p>
 

	
...
 
@@ -524,4 +536,4 @@ proprietary software, NPOs in aggregate will pay <em>much more</em> money for
 
proprietary licensing than Conservancy will ever spend in developing a
 
replacement. Please donate
 
generously to help us do it!</p>
 
replacement. Please <a href="#donate-box" class="donate-now">donate
 
generously</a> to help us do it!</p>
 

	
...
 
@@ -596,3 +608,3 @@ Foundation</a></p>
 
effort; it would let us spend more of our time on programs and less on
 
paperwork.  I have already personally donated.</q> &mdash; Asheesh Laroia,
 
paperwork.  I have already personally <a href="#donate-box" class="donate-now">donated</a>.</q> &mdash; Asheesh Laroia,
 
Executive Director, <a href="https://openhatch.org/">OpenHatch</a>.</p>
0 comments (0 inline, 0 general)