aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorMichael Kühnel <mail@michael-kuehnel.de>2012-10-19 00:07:26 +0200
committerMichael Kühnel <mail@michael-kuehnel.de>2012-10-19 00:07:26 +0200
commitd02e64adbd986d44dd02a70aec54aac606cdf7ab (patch)
tree5ad41b98165dfd756598cc953e79a43f5e9a0d1e /plugin
parentc46486b3df7db25912bc085c7d84612b0724a7cc (diff)
downloadfosdem-2018-presentation-d02e64adbd986d44dd02a70aec54aac606cdf7ab.tar
fosdem-2018-presentation-d02e64adbd986d44dd02a70aec54aac606cdf7ab.tar.gz
get 'fragmentdata' and react by showing/hiding the corresponding fragments
Diffstat (limited to 'plugin')
-rw-r--r--plugin/speakernotes/notes.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugin/speakernotes/notes.html b/plugin/speakernotes/notes.html
index c051879..af42480 100644
--- a/plugin/speakernotes/notes.html
+++ b/plugin/speakernotes/notes.html
@@ -110,6 +110,7 @@
socket.on('slidedata', function(data) {
// ignore data from sockets that aren't ours
+ console.dir(data);
if (data.socketId !== socketId) { return; }
if (data.markdown) {
@@ -122,6 +123,18 @@
currentSlide.contentWindow.Reveal.slide(data.indexh, data.indexv);
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>
</body>