aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2012-07-04 14:18:09 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2012-07-04 14:18:09 -0400
commit0e8640094301889e5c848dcf92084678778f0a19 (patch)
tree943f10c7ebc7268522505c3750e03ee14b59eadc /lib
parent421afe6368686b40a13c3b837b41ae1ad552ff7f (diff)
downloadfosdem-2018-presentation-0e8640094301889e5c848dcf92084678778f0a19.tar
fosdem-2018-presentation-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.js1
-rw-r--r--lib/slidenotes/notes.html2
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 {