summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--public/js/slide.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/public/js/slide.js b/public/js/slide.js
index e45f78a6..bdd8b3be 100644
--- a/public/js/slide.js
+++ b/public/js/slide.js
@@ -98,12 +98,15 @@ function renderSlide(event) {
markdown.attr('data-rendered', 'true');
document.title = title;
Reveal.layout();
- // force browser redraw
- setTimeout(function () {
- markdown.hide().show(0);
- }, 0);
}
}
-Reveal.addEventListener('ready', renderSlide);
-Reveal.addEventListener('slidechanged', renderSlide); \ No newline at end of file
+Reveal.addEventListener('ready', function (event) {
+ renderSlide(event);
+ var markdown = $(event.currentSlide);
+ // force browser redraw
+ setTimeout(function () {
+ markdown.hide().show(0);
+ }, 0);
+});
+Reveal.addEventListener('slidechanged', renderSlide);