update main window when current slide changes in notes (closes #343)
authorHakim El Hattab <hakim.elhattab@gmail.com>
Wed, 27 Feb 2013 21:55:42 +0000 (16:55 -0500)
committerHakim El Hattab <hakim.elhattab@gmail.com>
Wed, 27 Feb 2013 21:55:42 +0000 (16:55 -0500)
plugin/notes/notes.html

index 50d172a989eedad96119600fcb9beaa50924e32f..e14c6ac7e1bcf4a12977ba81d8cc333952dd3ff8 100644 (file)
 
                                        }, 1000 );
 
+                                       // Navigate the main window when the notes slide changes
+                                       currentSlide.contentWindow.Reveal.addEventListener( 'slidechanged', function( event ) {
+
+                                               window.opener.Reveal.slide( event.indexh, event.indexv );
+
+                                       } );
+
                                }
                                else {