Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 806 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 806 Bytes

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.