diff --git a/lib/slidenotes/notes.html b/lib/slidenotes/notes.html index 4201647..404b023 100644 --- a/lib/slidenotes/notes.html +++ b/lib/slidenotes/notes.html @@ -6,22 +6,27 @@ reveal.js - Slide Notes -
- +
+
-
+
+ UPCOMING
@@ -68,7 +92,7 @@ var socketId = '{{socketId}}'; var socket = io.connect(window.location.origin); var notes = document.getElementById('notes'); - var slides = document.getElementById('slides'); + var currentSlide = document.getElementById('current-slide'); var nextSlide = document.getElementById('next-slide'); socket.on('slidedata', function(data) { @@ -76,7 +100,7 @@ if (data.socketId !== socketId) { return; } notes.innerHTML = data.notes; - slides.contentWindow.Reveal.navigateTo(data.indexh, data.indexv); + currentSlide.contentWindow.Reveal.navigateTo(data.indexh, data.indexv); nextSlide.contentWindow.Reveal.navigateTo(data.nextindexh, data.nextindexv); });