Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kanety/jquery-simple-lightbox
https://github.com/kanety/jquery-simple-lightbox
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kanety/jquery-simple-lightbox
- Owner: kanety
- License: mit
- Created: 2019-06-29T23:41:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-21T01:16:06.000Z (about 5 years ago)
- Last Synced: 2024-12-25T04:04:43.532Z (23 days ago)
- Language: JavaScript
- Size: 81.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# jquery-simple-lightbox
A jquery plugin for simple lightbox.
## Dependencies
* jquery
## Installation
Install from npm:
$ npm install @kanety/jquery-simple-lightbox --save
## Usage
Build file input field:
```html
```Then run:
```javascript
$('#gal').simpleLightbox();
```### Options
Change link selector:
```javascript
$('#gal').simpleLightbox({
links: 'a[rel="lightbox"]'
});
```Change lightbox owner:
```javascript
$('#gal').simpleLightbox({
owner: 'body'
});
```Change image extensions:
```javascript
$('#gal').simpleLightbox({
imageExt: /^(jpg|jpeg|png|gif|bmp|webp)$/
});
```## License
The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).