Skip to content

jQuery plugin for a scrollable lightbox that utilises the history API

Notifications You must be signed in to change notification settings

mrwillihog/hotbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

hotbox

jQuery plugin for a scrollable lightbox that utilises the history API

Usage

Include the hotbox.js source code and then hotbox-enable any links you like:

$('a').hotbox();

If you want to prevent the main content from scrolling with the hotbox then include the mousewheel jquery plugin before hotbox:

<script src="https://github.com/brandonaaron/jquery-mousewheel"></script>

To utilise the history API include the History.js API:

<script src="https://github.com/balupton/History.js/"></script>

and enable the history option in hotbox:

$('a').hotbox({
  history: true
});

The only other configuration option is maxWidth, which limits the width of hotbox.

WARNING hotbox currently only supports links that return HTML via AJAX.

About

jQuery plugin for a scrollable lightbox that utilises the history API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published