Add slides sub-directories for Reveal.js
This commit is contained in:
parent
c79d949569
commit
76674130d4
395 changed files with 0 additions and 0 deletions
drupal-vm-symfony-console/2016-07-23-drupalcamp-bristol/slides/plugin/multiplex
|
@ -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.setState(data.state);
|
||||
});
|
||||
}());
|
Loading…
Add table
Add a link
Reference in a new issue