diff options
author | jackycute | 2015-11-28 21:57:35 -0600 |
---|---|---|
committer | jackycute | 2015-11-28 21:57:35 -0600 |
commit | d6dec55a07ceacbc21aa211b90c18fcf0d189013 (patch) | |
tree | b6f43191518b16f74ca33b1406567a0ffcaa6f32 /public/plugin/multiplex/client.js | |
parent | 75ae505a1544d8999e6705aad7ed96ff5a6eb0e5 (diff) | |
parent | f51b7370f030c5cd1235fa7a23514a7e1ccef2dd (diff) |
Merge pull request #43 from x000032001/master
Add Slide Mode
Diffstat (limited to '')
-rw-r--r-- | public/plugin/multiplex/client.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/public/plugin/multiplex/client.js b/public/plugin/multiplex/client.js new file mode 100644 index 00000000..e6179f6d --- /dev/null +++ b/public/plugin/multiplex/client.js @@ -0,0 +1,13 @@ +(function() { + var multiplex = Reveal.getConfig().multiplex; + var socketId = multiplex.id; + var socket = io.connect(multiplex.url); + + socket.on(multiplex.id, function(data) { + // ignore data from sockets that aren't ours + if (data.socketId !== socketId) { return; } + if( window.location.host === 'localhost:1947' ) return; + + Reveal.slide(data.indexh, data.indexv, data.indexf, 'remote'); + }); +}()); |