-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,6 +119,27 @@ If you want different link for plugin's big image and for non-javascript clients | |
|
||
Also, you can use `data-href` attribute on any element, not only links. | ||
|
||
### Static methods | ||
|
||
/* open image by URL */ | ||
$.abigimage.open('/some_image.jpg'); | ||
|
||
/* open image by index in current list */ | ||
$.abigimage.open(5); | ||
|
||
/* open image by URL at specified position in current list */ | ||
$.abigimage.open('/some_image.jpg', 5); | ||
|
||
/* open next image */ | ||
$.abigimage.next(); | ||
|
||
/* open previous image */ | ||
$.abigimage.prev(); | ||
|
||
/* close image */ | ||
$.abigimage.close(); | ||
|
||
|
||
## License | ||
|
||
Copyright © 2014 Maksim Krylosov <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters