Accordion module created in pure javascript & CSS. Very useful to create FAQ lists on your website.
no-unused-vars
ruleopenAll
and closeAll
will only work on open/close elements, added missing onClose & onOpen callsonlyChildNodes
optionopenOnInit
was set to 0
and more elements were loaded.The new major Accordion update is here! :fire: Many new options have been added and the core has been updated to meet the new accessibility standards.
.attachEvents()
& .detachEvents()
functions - #8 Thanks @northkode for the idea