Accordion-Blocks
Accordion-Blocks copied to clipboard
Decouple the JavaScript from the HTML structure
Currently the HTML structure is very specific and the JavaScript expects that specific structure (see use of .children()
, instead of more general .find()
). In some cases, other plugins wrap parts of the plugin's HTML with additional elements. This obviously breaks the accordion functionality.
A long term goal would be to decouple the JavaScript from the specific HTML structure, but this will require a much larger overhaul of both the HTML and JavaScript.