Files @ 2ba369aa5c5a
Branch filter:

Location: website/www/conservancy/templates/base_compliance.html

Bradley M. Kuhn
Supporter: js: fade out “Expand All” anchor when all sections expand

The expandable sections can be expanded either one-by-one, or with
the “Expand All” button. Add a counter for each expandable
section (which requires their div's to have 'id' attributes, lest
they be counted in the '__global' section of expandables).

The __global counter will work as advertised if you have no 'id'
attributes on any of your 'expandable-section'-classed div's, but if
you mix a __global without an id with ones that *do* have an id, it's
likely this particular code won't work for that.

Finally, add some documentation which is probably over-documenting
for someone who knows Javascript and jQuery well, but it took me a
while to figure out this code so I felt throwing some notes in there
might be helpful.
{% extends "base_conservancy.html" %}
{% load cache %}
{% load humanize %}
{% block head %}
<link href="/jquery-ui.css" rel="stylesheet" type="text/css"/>
<link href="/forms.css" rel="stylesheet" type="text/css"/>

{% endblock %}

{% block outercontent %}
<div class="donate-sidebar">
<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">Support
    Now!</h1></div>

<h3>Support Copyleft Enforcement Now!</h3>

<p>
  To support our copyleft compliance &amp; enforcement work,
  please <a href="/supporter/#annual"><span class="donate-box-highlight">become a Conservancy
      Supporter <strong>right now</strong></span></a>.  We can't sustain
  this work without ongoing support from donors like you!</p>
</td></tr></table>
</div>
<div class="content-with-donate-sidebar">
    <div id="container">
         <div id="sidebar" class="{% block submenuselection %}other{% endblock %}">
            <h2>Our Copyleft {% block category %}Compliance{% endblock %} Projects</h2>
            <ul>
            <li class="AboutCompliance"><a href="/copyleft-compliance/about.html">About</a></li>
            <li class="EnforcementStrategy"><a href="/copyleft-compliance/enforcement-strategy.html">Strategic GPL Enforcement Initiative</a></li>
            <li class="CopyleftPrinciples"><a href="/copyleft-compliance/principles.html">Principles of Community-Oriented GPL Enforcement</a></li>
            <li class="LiberateFirmware"><a href="/copyleft-compliance/firmware-liberation.html">Liberate IoT Firmware via GPL Enforcement</a></li>
            <li class="VMwareLawsuitLinks"><a href="/copyleft-compliance/vmware-lawsuit-links.html">VMware Lawsuit: Summary and Resources</a></li>
            <li class="CopyleftOrg"><a href="https://copyleft.org/">copyleft.org</a></li>
            </ul>
         </div>
               <div id="mainContent">{% block content %}{% endblock %}
               </div>
</div></div>
{% endblock %}