
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Instant mega menus in vanilla JavaScript.
const menuAim = require('menu-aim')
element
is a DOM element and options
is an optional object literal.
Returns a “clean up” function for removing event listeners bound by the function to element
and window
.
element
has the following HTML structure:
<ul class="menu-aim">
<li class="menu-aim__item">
<a class="menu-aim__item-name"><!-- ... --></a>
<ul class="menu-aim__item-submenu"><!-- ... --></ul>
</li>
<!-- ... -->
</ul>
See the demo for the CSS styles required on element
and the various nested elements.
Keys on options
:
Key | Description | Default |
---|---|---|
menuItemSelector | Selector for each menu item. | .menu-aim__item |
menuItemActiveClassName | Class name assigned to a menu item when it is active. | menu-aim__item--active |
menuItemSubMenuSelector | Selector for the sub-menu element nested within each menu item. | .menu-aim__item-submenu |
delayingClassName | Class name applied to element when some menu item is active and the mouse is determined to be enroute to the active submenu. | menu-aim--delaying |
Install via yarn:
$ yarn add menu-aim
Or npm:
$ npm install --save menu-aim
FAQs
Did you know?
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.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.