Commit graph

11 commits

Author SHA1 Message Date
546f78bc91 Fix trailing whitespace and missing end-of-file newline 2024-07-22 18:39:05 +10:00
4d6e2460d7 Remove remaining jQuery
This avoids every page on the site parsing 250KB of JavaScript.

supporter-page.js isn't the most elegant code, but at least it's a little more
modular now and no longer user jQuery.
2024-05-09 22:15:33 +10:00
e641660f1d Convert further jQuery to plain JS 2024-05-09 15:43:53 +10:00
7adea02e1a Fix JS error 2024-05-09 14:10:10 +10:00
828d2179e3 Further split up the supporter JS into functions 2024-05-09 14:06:39 +10:00
b15c96e25a Replace complex expanding JS with native <details> elements
Have retained the "expand all" behaviour - just with less code.
2024-05-09 13:53:50 +10:00
dc005dcf07 Add "use strict" on JS 2024-05-07 11:00:14 +10:00
633e96b1ec Remove nesting of hidden sections on sustainer page
This makes the page more similar to how it has worked in previous years.
2023-11-23 14:41:27 +11:00
af80e1411f Fix the sustainer page expanding sections when no URL fragment provided 2023-11-22 22:17:59 +11:00
09c9364486 Fix "expand all sections" second link
Issue was that the jQuery is using .children() to add the event handlers but due
to some changes to the HTML, the second link is no longer a direct child. I've
switched this to .find() instead.
2023-11-22 10:38:37 +11:00
49ab5aafb4 Rename "www" directory to "conservancy" 2023-10-25 13:01:21 +11:00
Renamed from www/static/js/supporter-page.js (Browse further)