Changeset - 00b0576bbb2f
[Not reviewed]
0 1 0
Bradley Kuhn (bkuhn) - 9 years ago 2014-12-01 18:38:08
bkuhn@ebb.org
Add show/hide javascript as used for npoacct.
1 file changed with 31 insertions and 0 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/supporter/index.html
Show inline comments
 
{% extends "base_conservancy.html" %}
 
{% block subtitle %}Support Conservancy - {% endblock %}
 
{% block category %}supporter{% endblock %}
 

	
 
{% block head %}
 
<link href="/jquery-ui.css" rel="stylesheet" type="text/css"/>
 
<script type="text/javascript" src="/jquery.min.js"></script>
 
<script type="text/javascript" src="/jquery-ui.min.js"></script>
 
<script type="text/javascript">
 
  $(document).ready(function() {
 
    $('.toggle-content').hide();
 

	
 
    $('.toggle-control')
 
     .addClass('clickable')
 
     .bind('click', function() {
 
        var $control = $(this);
 
        var $parent = $control.parents('.toggle-unit');
 

	
 
        $parent.toggleClass('expanded');
 
        $parent.find('.toggle-content').slideToggle();
 

	
 
        // if control has HTML5 data attributes, use to update text
 
        if ($parent.hasClass('expanded')) {
 
            $control.html($control.attr('data-expanded-text'));
 
        } 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");
 
    });
 
  });
 
</script>
 

	
 
{% endblock %}
 

	
 
{% block content %}
 
<div style="position:fixed;top:180px;right:2%;width:18%">
 
<table style="background-color:#afe478;width:100%;">
 
<tr><td style="text-align:center;padding:10px;padding-bottom:10px;">
 

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

	
 

	
 
<form id="supporter-form"
 
            action="https://www.paypal.com/cgi-bin/webscr"
 
            method="post" name="supporter">
 
                <input type="hidden" name="business" value="info@sfconservancy.org" />
 
                <input type="hidden" name="return" value="https://sfconservancy.org/thank-you/" />
 
                  <input type="hidden" name="item_name" value="Conservancy Supporter, Annual" />
 
                      <input type="hidden" name="cmd" value="_s-xclick" />
 
                      <input id="amount" type="text" name="amount" size="5" value="120" />
 
                      <small>($120 min; increase amount if you'd like.)</small>
 

	
 
                                            <h5>Do you want to receive a t-shirt?</h5>
 
                      <input type="hidden" name="on1" value="Donation Gift" />
 
                      <input type="radio" checked="checked" name="os1" value="Yes" />Yes
 
                      <input type="radio" name="os1" value="No" />No
 
                      <br />
 
                      <strong>T-shirt size:</strong>
 
                      <select type="hidden" name="on3" id="T-shirt Size">
 
                        <option value="MenS" />Men's S</option>
 
                        <option value="MenM" />Men's M</option>
 
                        <option value="MenL" />Men's L</option>
 
                        <option value="MenXL" />Men's XL</option>
 
                        <option value="Men2XL" />Men's 2XL</option>
 
                        <option value="LadiesS" />Ladies' S</option>
 
                        <option value="LadiesM" />Ladies' M</option>
 
                        <option value="LadiesL" />Ladies' L</option>
 
                         <option value="LadiesXL" />Ladies' XL</option>
 
                      </select><br/>
 
                      <strong>Public Acknowledgment of your Support?:</strong>
 
                      <input type="hidden" name="on2" value="List name in the donors page" />
 
                      <input type="radio" checked="checked" name="os2" value="Yes" />Yes
 
                      <input type="radio" name="os2" value="No" />No<br/>
 
            
 
                                            <strong>Join Announcement Email List?</strong>
 
                      <input type="hidden" name="on4" value="Join Mailing List" />
 
                      <input type="radio" checked="checked" name="os4" value="Yes" />Yes
 
                      <input type="radio" name="os4" value="No" />No<br>
 
                      <br />
 
                      <small>You will be redirected to the Paypal website.</small>
 
                      <input type="hidden" name="hosted_button_id" value="WJZ98RW3A49XJ">
 
                      <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
 
                      <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
 
                    </form>
 
<p>
 
Other payment methods  to become a supporter:
 
<div class="toggle-unit">
 
    <h4 class="toggle-control" data-text="Wire Transfer" 
 
    data-expanded-text="Wire Transfer:">Wire Transfer</h4>
 
    <div class="toggle-content">
 
        Please
 
            contact <a href="mailto:accounting@sfconservancy.org">Conservancy
 
            by email</a><br/> for wire transfer instructions.<br/>
 
            Please Include your currency and country.<br/>
 
    </div><!-- /.toggle-content -->
 
</div><!-- /.toggle.unit -->
 

	
 
<div class="toggle-unit">
 
    <h4 class="toggle-control" data-text="Paper Check" 
 
    data-expanded-text="Paper Check:">Paper Check</h4>
 
    <div class="toggle-content">
 
    Send paper check donations of $120 to:<br/>
 
    Software Freedom Conservancy, Inc.<br/>
 
    137 MONTAGUE ST  STE 380<br/>
 
    BROOKLYN, NY 11201-3548<br/>
 
    Please write <q>SUPPORTER PROGRAM</q> and your t-shirt size in the memo line. 
 
    </div><!-- /.toggle-content -->
 
</div><!-- /.toggle.unit -->
 

	
 
<p><a href="/donate">Other Ways to Donate</a></p>
 
<!-- Flattr end -->
 
</td></tr></table>
 
</div>
 

	
 

	
 
<div style="align:left;width:80%;">
 
<!-- begin campaign text -->
 
<p>Software Freedom Conservancy is an essential organization to free and
 
open source software. We are the home of over
 
<a href="http://sfconservancy.org/members/current/">30 projects</a> like 
 
Git,
 
Inkscape, Samba, Wine, Selenium, the Linux Compliance project, PyPy and
 
Sugar Labs just to name a few. Conservancy is a "fiscal sponsor plus",
 
providing everything that our projects need in a nonprofit. We help our
 
projects defend their trademarks, manage their assets, handle donations,
 
improve their community management, manage risk and assist them with all
 
legal needs they may have. While we do receive a portion of the revenue
0 comments (0 inline, 0 general)