diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-09-10 08:50:55 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-09-10 08:51:04 +0200 |
commit | b0b2ce1fe310ae9009c710509d1afc2bb2f39e50 (patch) | |
tree | d03fd0af04a19907bf1e6099cb972e23726b5cc5 /js | |
parent | 0338f280d3942094782da57ea3b5b72bdb833e9d (diff) | |
download | fosdem-2018-presentation-b0b2ce1fe310ae9009c710509d1afc2bb2f39e50.tar fosdem-2018-presentation-b0b2ce1fe310ae9009c710509d1afc2bb2f39e50.tar.gz |
print notes to pdf when is enabled #304
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 12 |
1 files changed, 12 insertions, 0 deletions
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 ); + } + } } } ); |