DraggableDualViewSlideshow icon indicating copy to clipboard operation
DraggableDualViewSlideshow copied to clipboard

How to add buttons (prev/next) to the slider

Open rhysothehero opened this issue 11 years ago • 3 comments

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.

rhysothehero avatar Oct 07 '14 08:10 rhysothehero

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 avatar Nov 28 '15 10:11 mbriskar

@mbriskar I'm looking into this, would you care to share how you achieved this?

casperovergaard avatar Dec 23 '16 12:12 casperovergaard

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 ); };

casperovergaard avatar Dec 28 '16 08:12 casperovergaard