Commit graph

10 commits

Author SHA1 Message Date
44c0a9db32
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
10dfdb617b
Convert further jQuery to plain JS 2024-05-09 15:43:53 +10:00
ccc036d631
Fix JS error 2024-05-09 14:10:10 +10:00
73e30c30e8
Further split up the supporter JS into functions 2024-05-09 14:06:39 +10:00
8a9f796eb1
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
7b1ffebcfb
Add "use strict" on JS 2024-05-07 11:00:14 +10:00
37c9f0f282
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
e3a8c4bd70
Fix the sustainer page expanding sections when no URL fragment provided 2023-11-22 22:17:59 +11:00
a557f2b335
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
ce6be591bd
Rename "www" directory to "conservancy" 2023-10-25 13:01:21 +11:00
Renamed from www/static/js/supporter-page.js (Browse further)