From b0b2ce1fe310ae9009c710509d1afc2bb2f39e50 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Thu, 10 Sep 2015 08:50:55 +0200 Subject: print notes to pdf when is enabled #304 --- js/reveal.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'js/reveal.js') diff --git a/js/reveal.js b/js/reveal.js index 2b8fec7..e517b33 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -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 ); + } + } } } ); -- cgit v1.2.3