diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2013-10-22 09:21:42 -0400 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2013-10-22 09:21:49 -0400 |
commit | c7077cf798326d820a520f2692c5ae29e2f7b4dd (patch) | |
tree | 2b08bcd9dfcfe1021f4703de53f5e834e14d16b7 /plugin | |
parent | f356d7228ac4dbd694324c7676134b37e167ec55 (diff) | |
download | fosdem-2018-presentation-c7077cf798326d820a520f2692c5ae29e2f7b4dd.tar fosdem-2018-presentation-c7077cf798326d820a520f2692c5ae29e2f7b4dd.tar.gz |
configure notes presentation through query string to avoid flicker
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/notes/notes.html | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html index 0e1238f..847499d 100644 --- a/plugin/notes/notes.html +++ b/plugin/notes/notes.html @@ -138,12 +138,20 @@ <body> + <script> + function getNotesURL( controls ) { + return window.opener.location.protocol + '//' + window.opener.location.host + window.opener.location.pathname + '?receiver&controls='+ ( controls || 'false' ) +'&progress=false&overview=false' + window.opener.location.hash; + } + var notesCurrentSlideURL = getNotesURL( true ); + var notesNextSlideURL = getNotesURL( false ); + </script> + <div id="wrap-current-slide" class="slides"> - <script>document.write( '<iframe width="1280" height="1024" id="current-slide" src="'+ window.opener.location.href +'?receiver"></iframe>' );</script> + <script>document.write( '<iframe width="1280" height="1024" id="current-slide" src="'+ notesCurrentSlideURL +'"></iframe>' );</script> </div> <div id="wrap-next-slide" class="slides"> - <script>document.write( '<iframe width="640" height="512" id="next-slide" src="'+ window.opener.location.href +'?receiver"></iframe>' );</script> + <script>document.write( '<iframe width="640" height="512" id="next-slide" src="'+ notesNextSlideURL +'"></iframe>' );</script> <span>UPCOMING:</span> </div> @@ -239,10 +247,6 @@ currentSlide.contentWindow.Reveal.addEventListener( 'fragmentshown', synchronizeMainWindow ); currentSlide.contentWindow.Reveal.addEventListener( 'fragmenthidden', synchronizeMainWindow ); - // Reconfigure the notes window to remove needless UI - currentSlide.contentWindow.Reveal.configure({ controls: false, progress: false, overview: false }); - nextSlide.contentWindow.Reveal.configure({ controls: false, progress: false, overview: false }); - } else { |