djsutherland / html-talk

Base for my talks using reveal.js, with bonus nice features (including browser/editor sync!)
9 stars 3 forks source link

livereload: go to same fragment spot #8

Closed djsutherland closed 6 years ago

djsutherland commented 6 years ago

Not sure how easy this would be, but it'd be really nice if when livereload triggered, it brought you back to the same fragment index in the current slide.

djsutherland commented 6 years ago

See https://github.com/hakimel/reveal.js/issues/1125, https://github.com/hakimel/reveal.js/pull/228.

So ideally we'd somehow convince livereload to call Reveal.slide to the appropriate place after reload. But not sure that's really possible, and indeed the livereload API doesn't support that.

So maybe would have to monkey-patch in something to put it in the URL fragment, like https://github.com/hakimel/reveal.js/pull/228.

djsutherland commented 6 years ago

Closed by 2411178, temporarily using my reveal.js fork; submitted upstream as https://github.com/hakimel/reveal.js/pull/2062.