print notes to pdf when is enabled #304

This commit is contained in:
Hakim El Hattab
2015-09-10 08:50:55 +02:00
parent 0338f280d3
commit b0b2ce1fe3
4 changed files with 25 additions and 1 deletions

View File

@ -573,6 +573,18 @@
background.style.top = -top + 'px';
background.style.left = -left + 'px';
}
// If we're configured to `showNotes`, inject them into each slide
if( config.showNotes ) {
var notes = getSlideNotes( slide );
if( notes ) {
var notesElement = document.createElement( 'div' );
notesElement.classList.add( 'speaker-notes' );
notesElement.innerHTML = notes;
notesElement.style.bottom = 40 - ( ( pageHeight - contentHeight ) / 2 ) + 'px';
slide.appendChild( notesElement );
}
}
}
} );