Skip to content

Instantly share code, notes, and snippets.

@n7studios
Created November 13, 2014 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n7studios/6732e93dedf3250da56a to your computer and use it in GitHub Desktop.
Save n7studios/6732e93dedf3250da56a to your computer and use it in GitHub Desktop.
Soliloquy - External Pager Control
<!-- data-slider-id must equal your Soliloquy slider's ID -->
<a href="#" data-slider-id="88" data-slider-index="0" class="thumbnail">Display Slide 1</a>
<a href="#" data-slider-id="88" data-slider-index="1" class="thumbnail">Display Slide 2</a>
<a href="#" data-slider-id="88" data-slider-index="2" class="thumbnail">Display Slide 3</a>
jQuery(document).ready(function($) {
$('a.thumbnail').click(function(e) {
e.preventDefault();
soliloquy_slider[$(this).data('slider-id')].goToSlide($(this).data('slider-index'));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment