diff --git a/README.md b/README.md index 22a4d0b..0660872 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ var lightbox = $('.gallery a').simpleLightbox(options); | nav | true | bool | show arrow-navigation or not | | navText | ['←','→'] | array | text or html for the navigation arrows | | captions | true | bool | show captions if availabled or not | +| captionsData | title | string | get the caption from title or data-title attribute | | close | true | bool | show the close button or not | | closeText | 'X' | string | text or html for the close button | | fileExt | 'png|jpg|jpeg|gif' | regexp | list of fileextensions the plugin works with | @@ -29,9 +30,9 @@ var lightbox = $('.gallery a').simpleLightbox(options); | loop | true | bool | enables looping through images | | docClose | true | bool | closes the lightbox when clicking outside | | swipeTolerance | 50 | int | how much pixel you have to swipe, until next or previous image | -| className: | 'simple-lightbox' | string | adds a class to the wrapper of the lightbox -| widthRatio: | 0.8 | float | Ratio of image width to screen width -| heightRatio: | 0.9 | float | Ratio of image height to screen height +| className: | 'simple-lightbox' | string | adds a class to the wrapper of the lightbox | +| widthRatio: | 0.8 | float | Ratio of image width to screen width | +| heightRatio: | 0.9 | float | Ratio of image height to screen height | ###Events | Name | Description | @@ -64,6 +65,7 @@ var gallery = $('.gallery a').simpleLightbox(); gallery.next(); // Next Image ``` ### Changelog +**1.2.0 - Added option for captions attribute (title or data-title)** **1.1.2 - Bugfix for looping images** **1.1.1 - Bugfix for loading indicator and removed a log-event** **1.1.0 - Added classname for lightbox wrapper and width/height ratio** diff --git a/bower.json b/bower.json index 212fcd5..ddde756 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "simplelightbox", - "version": "1.1.0", + "version": "1.1.2", "homepage": "http://andreknieriem.de/simple-lightbox", "authors": [ "André Knieriem (http://andreknieriem.de)" diff --git a/demo/index.html b/demo/index.html index 47995a3..1ac95ec 100644 --- a/demo/index.html +++ b/demo/index.html @@ -13,7 +13,7 @@

Simple Lightbox Demo Page

- - + +