js/impress.js
function() {
            if ( consoleWindow ) {

                // Set notes to next steps notes.
                var newNotes = document.querySelector( '.active' ).querySelector( '.notes' );
                if ( newNotes ) {
                    newNotes = newNotes.innerHTML;
                } else {
                    newNotes = lang.noNotes;
                }
                consoleWindow.document.getElementById( 'notes' ).innerHTML = newNotes;

                // Set the views
                var baseURL = document.URL.substring( 0, document.URL.search( '#/' ) );
                var slideSrc = baseURL + '#' + document.querySelector( '.active' ).id;
                var preSrc = baseURL + '#' + nextStep().id;
                var slideView = consoleWindow.document.getElementById( 'slideView' );

                // Setting them when they are already set causes glithes in Firefox, so check first:
                if ( slideView.src !== slideSrc ) {
                    slideView.src = slideSrc;
                }
                var preView = consoleWindow.document.getElementById( 'preView' );
                if ( preView.src !== preSrc ) {
                    preView.src = preSrc;
                }

                consoleWindow.document.getElementById( 'status' ).innerHTML =
                    '<span class="moving">' + lang.moving + '</span>';
            }
        }
function() {
            if ( consoleWindow ) {

                // Set notes to next steps notes.
                var newNotes = document.querySelector( '.active' ).querySelector( '.notes' );
                if ( newNotes ) {
                    newNotes = newNotes.innerHTML;
                } else {
                    newNotes = lang.noNotes;
                }
                consoleWindow.document.getElementById( 'notes' ).innerHTML = newNotes;

                // Set the views
                var baseURL = document.URL.substring( 0, document.URL.search( '#/' ) );
                var slideSrc = baseURL + '#' + document.querySelector( '.active' ).id;
                var preSrc = baseURL + '#' + nextStep().id;
                var slideView = consoleWindow.document.getElementById( 'slideView' );

                // Setting them when they are already set causes glithes in Firefox, so check first:
                if ( slideView.src !== slideSrc ) {
                    slideView.src = slideSrc;
                }
                var preView = consoleWindow.document.getElementById( 'preView' );
                if ( preView.src !== preSrc ) {
                    preView.src = preSrc;
                }

                consoleWindow.document.getElementById( 'status' ).innerHTML =
                    '<span class="moving">' + lang.moving + '</span>';
            }
        }
function ( ) { if ( consoleWindow ) { // Set notes to next steps notes. var newNotes = document . querySelector ( '.active' ) . querySelector ( '.notes' ) ; if ( newNotes ) { newNotes = newNotes . innerHTML ; } else { newNotes = lang . noNotes ; } consoleWindow . document . getElementById ( 'notes' ) . innerHTML = newNotes ; // Set the views var baseURL = document . URL . substring ( 0 , document . URL . search ( '#/' ) ) ; var slideSrc = baseURL + '#' + document . querySelector ( '.active' ) . id ; var preSrc = baseURL + '#' + nextStep ( ) . id ; var slideView = consoleWindow . document . getElementById ( 'slideView' ) ; // Setting them when they are already set causes glithes in Firefox, so check first: if ( slideView . src !== slideSrc ) { slideView . src = slideSrc ; } var preView = consoleWindow . document . getElementById ( 'preView' ) ; if ( preView . src !== preSrc ) { preView . src = preSrc ; } consoleWindow . document . getElementById ( 'status' ) . innerHTML = '<span class="moving">' + lang . moving + '</span>' ; } }
Sync the notes to the step
Sync the notes to the step