accordion-menu
Simple solution for an accordion menu using vanilla javascript and some CSS3 properties.
Dormant0 dependenciesScript tag
Facts
| Size | 1.0 KB minified, 0.6 KB gzipped (js/index.js) |
|---|---|
| Dependencies | none |
| Last activity | 2015-03-26 (Dormant) |
| Stars | 2 on GitHub |
| Formats | classic script (global el;hook;rotated;i;Toogle;hasClass) |
| Gates | G1 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.
<script src="https://cdn.jsdelivr.net/gh/jamesxv7/accordion-menu@master/js/index.js"
integrity="sha384-akGPEg0fRkt7BOBn2vXwLg3PeKwpNEjiIoDDlVm8oOInEKz6K2rh/KZanpInNjt7" crossorigin="anonymous"></script>Advertisement
Related libraries
- Notus – Web Notifications Widget Yet another JavaScript pop-up notification library for the web.
- Speckle.js A JavaScript plugin that adds responsive, stylized speckles to any element; with no dependencies.
- Roar A zero-dependency, vanilla JavaScript alert/confirm replacement.
Entry 42 in the directory. Facts refreshed monthly; last run 2026-10-30.