diff options
author | Marvin Borner | 2019-06-17 18:28:49 +0200 |
---|---|---|
committer | Marvin Borner | 2019-06-17 18:28:49 +0200 |
commit | 4ec65de8e4f9ed80bbce93c7ea64a24775e7de7e (patch) | |
tree | 784b1a82d1c6c4b0c7d0029b6ec2b60d70132dc1 /presentation/plugin/multiplex/master.js | |
parent | f31866c0decfc10a164cc4c8d740e787422b6ddd (diff) |
Removed presentation from tracking
Diffstat (limited to 'presentation/plugin/multiplex/master.js')
-rw-r--r-- | presentation/plugin/multiplex/master.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/presentation/plugin/multiplex/master.js b/presentation/plugin/multiplex/master.js deleted file mode 100644 index 7f4bf45..0000000 --- a/presentation/plugin/multiplex/master.js +++ /dev/null @@ -1,34 +0,0 @@ -(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 ); - -}()); |