DraggableDualViewSlideshow
DraggableDualViewSlideshow copied to clipboard
How to add buttons (prev/next) to the slider
I know this isn't really an issue but I am using this slider for a school project (instead of PowerPoint) and I need to add visible buttons to the page so that you can click next or previous (rather than the keyboard keys) and move through the slides. Is this achievable and if so how?
Any help would be hugely appreciated.
For anyone who would get into the problem. I made it work by simulating keys (left/right) and it works OK in my case.
@mbriskar I'm looking into this, would you care to share how you achieved this?
For any other looking into this, I solved it by adding the following event handling right after the keyboard navigation events in dragslideshow.js
// Replace with the ID of your navigation of choice document.getElementById("next").onclick = function() { self.dd.setStep( self.current + 2 ); };