Skip to content

Commit

Permalink
Example of accessing the current slideshow index.
Browse files Browse the repository at this point in the history
  • Loading branch information
srobbin committed Nov 26, 2012
1 parent 5c63013 commit c71b20a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -117,6 +117,12 @@ var instance = $('.foo').data('backstretch');
instance.images.push('path/to/image4.jpg')
```

Additionally, the current index of a slideshow is available through the instance as well:

```javascript
$("body").data("backstretch").index;
```

## Changelog

### Version 2.0
Expand Down

0 comments on commit c71b20a

Please sign in to comment.