diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-07-04 14:18:09 -0400 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-07-04 14:18:09 -0400 |
commit | 0e8640094301889e5c848dcf92084678778f0a19 (patch) | |
tree | 943f10c7ebc7268522505c3750e03ee14b59eadc /lib | |
parent | 421afe6368686b40a13c3b837b41ae1ad552ff7f (diff) | |
download | perl-software-in-gnu-guix-0e8640094301889e5c848dcf92084678778f0a19.tar perl-software-in-gnu-guix-0e8640094301889e5c848dcf92084678778f0a19.tar.gz |
conditional loading of socket.io and the notes client js based on window host
Diffstat (limited to 'lib')
-rw-r--r-- | lib/slidenotes/client.js | 1 | ||||
-rw-r--r-- | lib/slidenotes/notes.html | 2 |
2 files changed, 2 insertions, 1 deletions
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 @@ <head> <meta charset="utf-8"> - <title>Slide Notes</title> + <title>reveal.js - Slide Notes</title> <style> #notes { |