vendor/reveal.js/plugin/notes/notes.html in slide_hero-0.0.3 vs vendor/reveal.js/plugin/notes/notes.html in slide_hero-0.0.4

- old
+ new

@@ -136,15 +136,23 @@ </style> </head> <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 +'"></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 +'"></iframe>' );</script> + <script>document.write( '<iframe width="640" height="512" id="next-slide" src="'+ notesNextSlideURL +'"></iframe>' );</script> <span>UPCOMING:</span> </div> <div class="time"> <div class="clock">