Slick Lightbox jQuery plugin http://mreq.github.io/slick-lightbox/
Copyright 2014-2016 mreq https://github.com/mreq
Released under the MIT license
Documentation generated by CoffeeDoc
The core class.
Binds the plugin.
Creates the lightbox, opens it, binds events and calls slick
. Accepts index
of the element, that triggered it (so that we know, on which slide to start slick).
Creates individual slides to be used with slick. If options.images
array is specified, it uses it's contents, otherwise loops through elements' options.itemSelector
.
Creates a slick
-friendly modal.
Runs slick by default, using options.slick
if provided. If options.slick
is a function, it gets fired instead of us initializing slick. Merges in initialSlide option.
Opens the lightbox.
Closes the lightbox and destroys it, maintaining the original element bindings.
Binds global events.
Moves the slick prev or next.
Detects usage of IE8 and lower.
Returns caption for each slide based on the type of options.caption
.
Returns src for each slide image based on the type of options.src
.
Unbinds global events.
Destroys the lightbox and unbinds global events. If true
is passed as an argument, unbinds the original element as well.
Destroys lightboxes currently in DOM.
Detects the transition duration to know when to remove stuff from DOM etc.
Writes an empty state to the history API if supported.
Removes all slick clones from the set of elements. Only does so, if the target element is a slick slider.