Skip to content
Snippets Groups Projects
Commit d02e64ad authored by Michael Kühnel's avatar Michael Kühnel
Browse files

get 'fragmentdata' and react by showing/hiding the corresponding fragments

parent c46486b3
No related branches found
No related tags found
No related merge requests found
...@@ -110,6 +110,7 @@ ...@@ -110,6 +110,7 @@
socket.on('slidedata', function(data) { socket.on('slidedata', function(data) {
// ignore data from sockets that aren't ours // ignore data from sockets that aren't ours
console.dir(data);
if (data.socketId !== socketId) { return; } if (data.socketId !== socketId) { return; }
if (data.markdown) { if (data.markdown) {
...@@ -122,6 +123,18 @@ ...@@ -122,6 +123,18 @@
currentSlide.contentWindow.Reveal.slide(data.indexh, data.indexv); currentSlide.contentWindow.Reveal.slide(data.indexh, data.indexv);
nextSlide.contentWindow.Reveal.slide(data.nextindexh, data.nextindexv); nextSlide.contentWindow.Reveal.slide(data.nextindexh, data.nextindexv);
}); });
socket.on('fragmentdata', function(data) {
// ignore data from sockets that aren't ours
console.dir(data);
if (data.socketId !== socketId) { return; }
if (data.showFragment === true) {
currentSlide.contentWindow.Reveal.nextFragment();
}
else if (data.hideFragment === true) {
currentSlide.contentWindow.Reveal.previousFragment();
}
});
</script> </script>
</body> </body>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment