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

This commit is contained in:
Hakim El Hattab
2012-07-04 14:18:09 -04:00
parent 421afe6368
commit 0e86400943
4 changed files with 52 additions and 6 deletions

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 ) {

View File

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>Slide Notes</title>
<title>reveal.js - Slide Notes</title>
<style>
#notes {