Skip to content

Commit d7b92c9

Browse files
committed
update main window when current slide changes in notes (closes #343)
1 parent c2ab30b commit d7b92c9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plugin/notes/notes.html

+7
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,13 @@ <h2>Elapsed</h2>
225225

226226
}, 1000 );
227227

228+
// Navigate the main window when the notes slide changes
229+
currentSlide.contentWindow.Reveal.addEventListener( 'slidechanged', function( event ) {
230+
231+
window.opener.Reveal.slide( event.indexh, event.indexv );
232+
233+
} );
234+
228235
}
229236
else {
230237

0 commit comments

Comments
 (0)