diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-10-29 16:44:47 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-10-29 16:44:47 +0100 |
commit | edfa131c9c7e4337766623a1413f2e6c46f343e0 (patch) | |
tree | 0eb81988b0d14f8405b334cfad70a64cbe7b945b /js | |
parent | f87f3e60f384cb9c98a16a3eb2abc6d462ee7539 (diff) | |
download | fosdem-2018-presentation-edfa131c9c7e4337766623a1413f2e6c46f343e0.tar fosdem-2018-presentation-edfa131c9c7e4337766623a1413f2e6c46f343e0.tar.gz |
tweak how speaker notes look in pdf exports
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js index 2d49d2e..d2b2970 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -592,11 +592,14 @@ if( config.showNotes ) { var notes = getSlideNotes( slide ); if( notes ) { + var notesSpacing = 8; var notesElement = document.createElement( 'div' ); notesElement.classList.add( 'speaker-notes' ); notesElement.classList.add( 'speaker-notes-pdf' ); notesElement.innerHTML = notes; - notesElement.style.bottom = ( 40 - top ) + 'px'; + notesElement.style.left = ( notesSpacing - left ) + 'px'; + notesElement.style.bottom = ( notesSpacing - top ) + 'px'; + notesElement.style.width = ( pageWidth - notesSpacing*2 ) + 'px'; slide.appendChild( notesElement ); } } @@ -881,7 +884,7 @@ dom.controls.style.display = config.controls ? 'block' : 'none'; dom.progress.style.display = config.progress ? 'block' : 'none'; - dom.slideNumber.style.display = config.slideNumber ? 'block' : 'none'; + dom.slideNumber.style.display = config.slideNumber && !isPrintingPDF() ? 'block' : 'none'; if( config.rtl ) { dom.wrapper.classList.add( 'rtl' ); |