Andrew Tomaka
f3d18656b2
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.
13 lines
403 B
JavaScript
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');
|
|
});
|
|
}());
|