WordPress / slides

Slides: Presentations with WordPress
https://wordpress.org/plugins/slide/
88 stars 28 forks source link

How to determine if presentation is on first or last slide? #43

Open elvismdev opened 4 years ago

elvismdev commented 4 years ago

I'm interested in detecting when the presentation is on the first or last slide via JavaScript to then trigger another action from the page (firing an API call, redirecting the user to somewhere else, maybe another next presentation, or display an alert to the user, etc)

Is there a JS hook/filter I can use for that purpose?

Thanks!