🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

hotmenu

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hotmenu

A responsive, full-screen jQuery menu.

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

hotmenu

A responsive, full-screen jQuery menu.

Usage

Include hotmenu.jquery.js and hotmenu.css in your project...

<script type="text/javascript" src="hotmenu.jquery.min.js"></script>
<link rel="stylesheet" href="hotmenu.min.css">`

...add a toggle...

<button class='hm-toggle'>Click me</button>

...and then:

$(function() { $('nav').hotMenu(); });

Options

toggleSelector
The selector for element that should trigger the menu to open. Default: '.hm-toggle'

mediaQuery
Media query string at which hotmenu should be active. Default: null

Example with options

$('nav').hotMenu({ 
  toggleSelector: '.hm-toggle', 
  mediaQuery: '(max-width: 600px)' 
});

hotmenu takes care of basic styling, but most of it's up to you. You're responsible for creating the toggle that opens the menu. The default class that hotmenu looks for is hm-toggle.

Keywords

hotmenu

FAQs

Package last updated on 02 Dec 2016

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