Sha256: a2950f59bb8ec0fcf9a6e7ca9b7084f671b0373c9cbab292a1031e2eb39bca64

Contents?: true

Size: 939 Bytes

Versions: 19

Compression:

Stored size: 939 Bytes

Contents

(function() {

	// Don't emit events from inside of notes windows
	if ( window.location.search.match( /receiver/gi ) ) { return; }

	var multiplex = Reveal.getConfig().multiplex;

	var socket = io.connect( multiplex.url );

	function post() {

		var messageData = {
			state: Reveal.getState(),
			secret: multiplex.secret,
			socketId: multiplex.id
		};

		socket.emit( 'multiplex-statechanged', messageData );

	};

	// post once the page is loaded, so the client follows also on "open URL".
	window.addEventListener( 'load', post );

	// Monitor events that trigger a change in state
	Reveal.addEventListener( 'slidechanged', post );
	Reveal.addEventListener( 'fragmentshown', post );
	Reveal.addEventListener( 'fragmenthidden', post );
	Reveal.addEventListener( 'overviewhidden', post );
	Reveal.addEventListener( 'overviewshown', post );
	Reveal.addEventListener( 'paused', post );
	Reveal.addEventListener( 'resumed', post );

}());

Version data entries

19 entries across 19 versions & 5 rubygems

Version Path
reveal-ck-4.0.0 files/reveal.js/plugin/multiplex/master.js
reveal-jekyll-0.0.4 assets/plugin/multiplex/master.js
reveal-jekyll-0.0.3 assets/plugin/multiplex/master.js
reveal-jekyll-0.0.2 assets/plugin/multiplex/master.js
reveal-jekyll-0.0.1 assets/plugin/multiplex/master.js
reveal.rb-0.5.3 lib/reveal/templates/revealjs/plugin/multiplex/master.js
reveal.rb-0.5.2 lib/reveal/templates/revealjs/plugin/multiplex/master.js
reveal.rb-0.5.1 lib/reveal/templates/revealjs/plugin/multiplex/master.js
reveal-ck-3.9.2 files/reveal.js/plugin/multiplex/master.js
reveal-ck-3.9.1 files/reveal.js/plugin/multiplex/master.js
reveal-ck-3.9.0 files/reveal.js/plugin/multiplex/master.js
reveal.rb-0.5.0 lib/reveal/templates/revealjs/plugin/multiplex/master.js
jekyll-theme-slides-0.1.3 assets/reveal.js/plugin/multiplex/master.js
jekyll-theme-slides-0.1.2 assets/reveal.js/plugin/multiplex/master.js
jekyll-theme-newtype-0.1.4 assets/revealjs/plugin/multiplex/master.js
jekyll-theme-newtype-0.1.3 assets/revealjs/plugin/multiplex/master.js
jekyll-theme-newtype-0.1.2 assets/revealjs/plugin/multiplex/master.js
jekyll-theme-newtype-0.1.1 assets/revealjs/plugin/multiplex/master.js
jekyll-theme-newtype-0.1.0 assets/revealjs/plugin/multiplex/master.js