Vanilla js safe menu
Skill mhrsdev/AI-Agent-Skills-Library/organized-skills/brand-content-creation/vanilla-js-safe-menu
A curated library of 124 AI agent skills organized into 10 categories, with model-specific versions for Claude, GPT-5.5, GPT-5.4 and earlier, GLM, and DeepSeek.
npx -y skills add mhrsdev/AI-Agent-Skills-Library --skill vanilla-js-safe-menuAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Safe Vanilla JS event-handling notes for mobile menus without external dependencies.
SKILL.md
0.6 KB, as published. Nobody here has run it
Vanilla JS safe menu
- Use small named functions:
openMobileNav,closeMobileNav,toggleMobileNav,cleanupMobileNavState. - Event handlers should be idempotent and safe if elements are missing.
- Closing the menu must remove all open classes from menu/backdrop/html/body.
- Clean stale inline scroll-lock styles on
bodyanddocumentElement. - Theme buttons inside the menu must not leave the page locked.
- Avoid copying external code directly; adapt only the principle.