Dependencies

The lightbox has dependencies to following resources:

Files

There are two directories in the package that contain the lightbox-files. The directory "src" contains the original (unminified) files and should only be used for debugging. The directory "dist" contains the minified files. Add a "bb-lightbox" directory to the directory that contains your javascript and stylesheet directories and copy the content of the "dist" directory inside.

Code

Please add the following resources to the document

Inside the <head>-tag:

<head>
	...
	<link rel="stylesheet" href="bb-lightbox/css/bb-lightbox.css">
	...
</head>

We recommend to add most of the javascript files just before the closing </body>-tag, nevertheless the lightbox works too, when added inside the <head>

...
	<script src="//code.jquery.com/jquery.min.js"></script>
	<script src="/bb-lightbox/js/bb-lightbox.js"></script>
</body>