From 0d25e1a87db76c68b10bbd2e574c7479b28dbb84 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Wed, 8 May 2024 17:23:45 +1000 Subject: [PATCH] Remove use of jQuery in conservancy.js This is the first step towards removing jQuery from the site. --- conservancy/static/js/conservancy.js | 92 ++++++++++++++++------------ 1 file changed, 53 insertions(+), 39 deletions(-) diff --git a/conservancy/static/js/conservancy.js b/conservancy/static/js/conservancy.js index 92db96df..db482368 100644 --- a/conservancy/static/js/conservancy.js +++ b/conservancy/static/js/conservancy.js @@ -5,48 +5,62 @@ ** Find a copy of GPL at https://sfconservancy.org/GPLv3 */ -"use strict"; +'use strict'; -function qs (selector) { +function qs (selector, parent) { return document.querySelector(selector); } -function init () { - /* When the browser doesn't support any video source, replace it - with the HTML inside the