1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-13 18:14:33 +02:00

new controller for speaker notes

This commit is contained in:
Hakim El Hattab
2020-03-16 11:45:47 +01:00
parent 2b02f3a1f9
commit 97ee72549b
7 changed files with 180 additions and 144 deletions

View File

@@ -9,7 +9,7 @@ export default class SlideNumber {
}
createElement() {
render() {
this.element = document.createElement( 'div' );
this.element.className = 'slide-number';
@@ -18,12 +18,9 @@ export default class SlideNumber {
}
/**
* Shows or hides the slide number depending on the
* current config and state.
* Called when the reveal.js config is updated.
*/
refreshVisibility() {
let config = this.Reveal.getConfig();
configure( config, oldConfig ) {
let slideNumberDisplay = 'none';
if( config.slideNumber && !this.Reveal.isPrintingPDF() ) {