From 0e8640094301889e5c848dcf92084678778f0a19 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Wed, 4 Jul 2012 14:18:09 -0400 Subject: conditional loading of socket.io and the notes client js based on window host --- lib/slidenotes/client.js | 1 + lib/slidenotes/notes.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/slidenotes/client.js b/lib/slidenotes/client.js index b686ec9..f594fb6 100644 --- a/lib/slidenotes/client.js +++ b/lib/slidenotes/client.js @@ -5,6 +5,7 @@ var socket = io.connect(window.location.origin); var socketId = Math.random().toString().slice(2); + console.log('View slide notes at ' + window.location.origin + '/notes/' + socketId); Reveal.addEventListener( 'slidechanged', function( event ) { diff --git a/lib/slidenotes/notes.html b/lib/slidenotes/notes.html index a0c945c..4201647 100644 --- a/lib/slidenotes/notes.html +++ b/lib/slidenotes/notes.html @@ -3,7 +3,7 @@ - Slide Notes + reveal.js - Slide Notes