aboutsummaryrefslogtreecommitdiff
path: root/plugin/notes-server/notes.html
diff options
context:
space:
mode:
authorMichael Kühnel <mail@michael-kuehnel.de>2012-10-24 17:48:50 +0200
committerMichael Kühnel <mail@michael-kuehnel.de>2012-10-24 17:48:50 +0200
commit5af915adaf0f03ea936323e827e86fab6b0bb4e9 (patch)
tree0e72e9c726ed96105ccc3ef7364ee782bf412306 /plugin/notes-server/notes.html
parentaefe981040ea8c5c7875d9da1ac860def44a19e8 (diff)
parent379f5d38ff8c66c10c22a0a18227b481e945dc02 (diff)
downloadfosdem-2018-presentation-5af915adaf0f03ea936323e827e86fab6b0bb4e9.tar
fosdem-2018-presentation-5af915adaf0f03ea936323e827e86fab6b0bb4e9.tar.gz
Merge branch 'refs/heads/fix-fragments-in-speakernotes' into fragments-in-notes-server
Conflicts: js/reveal.min.js Need to generate a new minified version afterwards.
Diffstat (limited to 'plugin/notes-server/notes.html')
-rw-r--r--plugin/notes-server/notes.html25
1 files changed, 18 insertions, 7 deletions
diff --git a/plugin/notes-server/notes.html b/plugin/notes-server/notes.html
index 548bc12..d71d7f8 100644
--- a/plugin/notes-server/notes.html
+++ b/plugin/notes-server/notes.html
@@ -112,17 +112,28 @@
// ignore data from sockets that aren't ours
if (data.socketId !== socketId) { return; }
- if (data.markdown) {
- notes.innerHTML = (new Showdown.converter()).makeHtml(data.notes);
- }
- else {
- notes.innerHTML = data.notes;
- }
+ if (data.markdown) {
+ notes.innerHTML = (new Showdown.converter()).makeHtml(data.notes);
+ }
+ else {
+ notes.innerHTML = data.notes;
+ }
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
+ if (data.socketId !== socketId) { return; }
+
+ if (data.fragment === 'next') {
+ currentSlide.contentWindow.Reveal.nextFragment();
+ }
+ else if (data.fragment === 'previous') {
+ currentSlide.contentWindow.Reveal.prevFragment();
+ }
+ });
</script>
</body>
-</html> \ No newline at end of file
+</html>