Changeset - 37c9f0f2820f
[Not reviewed]
0 2 0
Ben Sturmfels (bsturmfels) - 6 months ago 2023-11-23 03:41:27
ben@sturm.com.au
Remove nesting of hidden sections on sustainer page

This makes the page more similar to how it has worked in previous years.
2 files changed with 1 insertions and 12 deletions:
0 comments (0 inline, 0 general)
conservancy/static/js/supporter-page.js
Show inline comments
...
 
@@ -154,26 +154,15 @@ $(document).ready(function() {
 
    });
 
    // Final two each's enable the "Expand All" link.
 
    $('a[data-expand-link-text]').each(function(index, element) {
 
        var $element = $(element);
 
        $element.append($element.data('expand-link-text'));
 
    });
 
    $('.expandable-section').each(function(index) {
 
        var $expandlink = $(this).find('a.expander');
 
        var $ourexpandablesection = $(this);
 
        $expandlink.on('click', function(event) {
 
            $expandlink.fadeOut('slow');
 
            $ourexpandablesection.find('.read-more').each(function(index) { $(this).click(); });
 
            // Don't laugh. I'm running this twice because the expandable
 
            // sections are hidden by actually their text from the DOM and
 
            // storing it in a closure, to be reinstated later. That means when
 
            // the above ".find('.read-more')" runs it only finds the one
 
            // top-level .read-more element because the children have been
 
            // temporarily removed from the page. After this top-level element
 
            // has been clicked to restore it's body, we can run this again and
 
            // .find() the children elements. I suspect this may have worked in
 
            // the past if there were multiple sections all at the top-level,
 
            // rather than being nested under "Our Year in Review".
 
            $ourexpandablesection.find('.read-more').each(function(index) { $(this).click(); });
 
        });
 
    });
 
});
conservancy/templates/supporter/index.html
Show inline comments
...
 
@@ -122,24 +122,25 @@ In that vein <a href="https://sfconservancy.org/news/2022/may/12/introduction/">
 
(narrated by our Executive Director Karen Sandler) that introduces
 
the ideas of software freedom, and specifically what Software Freedom
 
Conservancy does. We also did a lot of public writings about some of the
 
important issues this year. From <a href="https://sfconservancy.org/news/2023/feb/09/kuhn-neo4j-purethink-expert-report/">our perspective on the Neo4j suit</a>
 
to <a href="https://sfconservancy.org/news/2023/aug/15/exit-zoom/">highlighting problematic behavior from proprietary software companies</a> and calling for folks to Exit Zoom. We'd also like to
 
remind you that as a Sustainer, we will provide you with your own <a href="https://bbb.sfconservancy.org">BigBlueButton</a> account so that you can host your own video calls on a FOSS platform. Once
 
you have donated to us, you can fill our the new account signup and your
 
account will be approved.</p>
 

	
 
<div class="picture-small right">
 
  <a href="https://sfconservancy.org/videos/sfc-introduction_1080p.mp4"><img src="https://sfconservancy.org/videos/sfc-introduction-video_poster.jpg" alt="Thumbnail of video showing a tree and Software Freedom" /></a>
 
</div>
 
</div>
 

	
 

	
 
<h3 id="NewStaff">New staff!</h3>
 
<div data-read-more="Click more for on our new staff&hellip;">
 

	
 
<p>SFC hired two additional employees this year! General Counsel Rick Sanders
 
joins the team to help with our continued legal needs. Rick has over 20 years
 
experience as a intellectual-property litigator. His expertise has been
 
critical in helping our license compliance efforts and helping our organization
 
take on the increasing needs from projects and new initiatives. SFC's new
 
systems administrator is Paul Visscher. With over 20 years experience with
 
Linux and free software, Paul's belief in the power of free software to help
...
 
@@ -275,25 +276,24 @@ reach for reproducibility. </p>
 
  software users. We work hard and efficiently, and accomplish so much with
 
  our small staff. We hope &mdash; through our hard work, creativity, and
 
  passionate dedication &mdash; that we've demonstrated over the years how
 
  Software Freedom Conservancy continues to be the beacon of change for
 
  software freedom that the world needs. <a href="/donate/">Please consider
 
  donating now!</a></p>
 

	
 

	
 

	
 
</div>
 
<a class="expander" data-expand-link-text="(Expand All Sections)"></a>
 
</div>
 
</div>
 

	
 
<div class="donate-sidebar">
 
  <details>
 
    <summary>Support Now!</summary>
 

	
 
    <h3 class="donate-box-highlight">Become a Sustainer Now:</h3>
 

	
 
    <p>Support us now!</p>
 

	
 
    <h4><a href="#annual"><span class="donate-box-highlight">Annual sustainer</span> via PayPal, ACH, or credit card.</a></h4>
 
    <h4><a href="#monthly"><span class="donate-box-highlight">Monthly sustainer</span> via PayPal, ACH, or credit card.</a></h4>
 
    <h4><a href="#renewal"><span class="donate-box-highlight">Renewing Annual sustainer</span> via PayPal, ACH, or credit card.</a></h4>
0 comments (0 inline, 0 general)