Skip to content

Instantly share code, notes, and snippets.

@pennyfx
Created October 9, 2013 04:49
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 pennyfx/6896373 to your computer and use it in GitHub Desktop.
Save pennyfx/6896373 to your computer and use it in GitHub Desktop.
$(document).ready(function() {
var slidebox = $('x-slidebox')[0];
// go back a slide
document.getElementById('prevButton').addEventListener("click", function(){
slidebox.slidePrevious();
});
// go forward a slide
document.getElementById('nextButton').addEventListener("click", function(){
slidebox.slideNext();
});
// jump to slide 6
document.getElementById('slideToButton').addEventListener("click", function(){
slidebox.slideTo(6);
});
});
function ab(){
alert('HI');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment