Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

accessiblenav.js

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accessiblenav.js

A tiny JavaScript plugin for accessible multi-level dropdown menus

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18
increased by157.14%
Maintainers
1
Weekly downloads
 
Created
Source

accessibleNav.js

A tiny JavaScript plugin for accessible multi-level dropdown menus

Usage

Install

Available as NPM package:

$ yarn add accessiblenav.js

Include

Webpack environment
import accessibleNav from 'accessiblenav.js'
Old-school way
<script src="dist/index.min.js"></script>

Initiate

const nav = document.querySelector('.nav')

accessibleNav(nav, {
  selSub: 'ul',
  selItem: 'li',
  selButton: 'a',
  classItemActive: '--active',
  classEnabled: '--jsfied',
  click: true,
  mouseover: true,
  keypress: true,
  outsideClick: true,
  escPress: true,
})

Development

  1. $ yarn
  2. $ yarn dev
  3. Edit plugin at /src/index.js, edit demo(s) at /demo
  4. Build with $ yarn build when done

FAQs

Package last updated on 23 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc