From 0c1a4add3a760a4bd9e68a4d8c02e36dac7cafdc Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 4 Jul 2012 15:09:58 -0400 Subject: [PATCH] small tweaks to notes page style --- lib/slidenotes/notes.html | 50 +++++++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 13 deletions(-) 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); });