jdan / cleaver

30-second slideshows for hackers
http://jdan.github.io/cleaver
MIT License
4.02k stars 305 forks source link

skip slides using links #101

Open neotheicebird opened 9 years ago

neotheicebird commented 9 years ago

I need to go from one slide to another using a hyperlink.

I am in basic.html#3 and I want to go to basic.html#7, I added a hyperlink to a text with link './basic.html#7'. On clicking it the address in the address bar changes, but the slide doesn't change. Is there any way to achieve this?

jdan commented 9 years ago

Good idea :) Right now you'll need to inject your own JS and use the navigate function which is exposed to the client.

The front-end JS needs a big overhaul, though, so I'll be sure to include something like this.

neotheicebird commented 9 years ago

Cool, thanks. Let me try adding the JS for navigate in my markdown and see if it works.

tsycho commented 7 years ago

+1 for this feature.

tsycho commented 7 years ago

@neotheicebird Were you able to do this? Do you have a code example of how you used the navigate function?