Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Set universal options via JS not working

Great plugin and just started to use it today.

I would like to set a universal option to show 'top' for all slides.
However all my slides still use the default right side after writing a function at the base of the page.

Here is my markup:

[article]
[a href="http://lorempixel.com/400/200/" class="strip" data-strip-group="article-20150501" data-strip-options="side: 'top'"
p>my link on the page[/a]
[a href="http://lorempixel.com/400/200/" class="strip" data-strip-group="article-20150501">[/a]
[/article]

*ignore the lack of correct markup tags (will not show otherwise)


$(document).ready(function() {

$('.strip').bind('click', function(event) {
event.preventDefault();

Strip.show({
options: {
side: 'top'
}
});
});
});


Hope you can help.

Thanks.


Comments

Sign In or Register to comment.