1
0
Fork 0
intro-to-vim/bower_components/reveal.js/plugin/multiplex/client.js
Andrew Tomaka f3d18656b2 Initial commit
Install reveal.js presentation framework using bower:

bower install reveal.js --save

Setup an initial slide show with a title page and resources page to conclude.

It seems like the bower_components directory does not belong in the repository,
but I am not familar with practices using the tool so it can be included for
now.
2014-05-13 00:10:10 -04:00

13 lines
403 B
JavaScript

(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');
});
}());