plainJS

Libraries / UI

accordion-menu

Simple solution for an accordion menu using vanilla javascript and some CSS3 properties.

Dormant0 dependenciesScript tag

Facts

Facts fetched 2026-10-30 by the directory sync (GitHub, npm, jsDelivr, deps.dev). Nothing here is typed by hand.
Size1.0 KB minified, 0.6 KB gzipped (js/index.js)
Dependenciesnone
Last activity2015-03-26 (Dormant)
Stars2 on GitHub
Formatsclassic script (global el;hook;rotated;i;Toogle;hasClass)
GatesG1 not run (no runtime dependencies); G2 failed (loads in a browser as it is); G3 passed (no compile-only entry points); G4 failed (open-source licence); G5 passed (not archived or deprecated). Smoke test on vmaster in headless Chromium, 2026-10-30

Load it

Pin the version. The hash is computed from the file jsDelivr serves, so a changed file fails to load instead of running.

htmlscript tag, with SRI
<script src="https://cdn.jsdelivr.net/gh/jamesxv7/accordion-menu@master/js/index.js"
        integrity="sha384-akGPEg0fRkt7BOBn2vXwLg3PeKwpNEjiIoDDlVm8oOInEKz6K2rh/KZanpInNjt7" crossorigin="anonymous"></script>
Advertisement

Entry 42 in the directory. Facts refreshed monthly; last run 2026-10-30.