1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-09-01 10:42:54 +02:00

Merge branch 'pdf-slide-numbers' of https://github.com/dougalsutherland/reveal.js into dev

This commit is contained in:
Hakim El Hattab
2020-01-27 14:10:15 +01:00
2 changed files with 86 additions and 74 deletions

View File

@@ -1017,9 +1017,9 @@ Reveal.configure({ slideNumber: true });
Reveal.configure({ slideNumber: 'c/t' });
// You can provide a function to fully customize the number:
Reveal.configure({ slideNumber: function() {
Reveal.configure({ slideNumber: function( slide ) {
// Ignore numbering of vertical slides
return [ Reveal.getIndices().h ];
return [ Reveal.getIndices( slide ).h ];
}});
// Control which views the slide number displays on using the "showSlideNumber" value: