Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$(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
You can’t perform that action at this time.