conditional loading of socket.io and the notes client js based on window host

This commit is contained in:
Hakim El Hattab committed 2012-07-04 14:18:09 -04:00
1 parent 421afe6368
commit 0e86400943
4 files changed
+52 -6

No files matched your search

+1
View File
@@ -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 ) {
+1 -1
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>Slide Notes</title>
<title>reveal.js - Slide Notes</title>
<style>
#notes {