diff --git a/demo/groups.html b/demo/groups.html new file mode 100644 index 0000000..9f03c9d --- /dev/null +++ b/demo/groups.html @@ -0,0 +1,62 @@ + + + + + Demo + + + + + +
+

Responsive Lightbox

+

Group 1

+ +

Group 2

+ + +
+ + + + + + \ No newline at end of file diff --git a/jquery.lightbox.js b/jquery.lightbox.js index a477393..e05a63a 100644 --- a/jquery.lightbox.js +++ b/jquery.lightbox.js @@ -30,13 +30,15 @@ image: null, current: null, locked: false, - + selector: "#lightbox", + init: function (items) { plugin.items = items; + plugin.selector = "lightbox-"+Math.random().toString().replace('.',''); if (!plugin.lightbox) { $('body').append( - '