aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorHakim El Hattab2015-01-16 13:48:13 +0100
committerHakim El Hattab2015-01-16 13:48:13 +0100
commit5fb81b1b3cb058f3a9bbd5f190a12e44b47b8df2 (patch)
treea2e2721a00efdbad8db52bb0d861a4a4bea9c9dc /README.md
parent817bb3bf43879009ae445e52d4b6ef88053c5583 (diff)
support for custom slide number formatting #965
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index e748ca8..a942a8d 100644
--- a/README.md
+++ b/README.md
@@ -572,7 +572,16 @@ By default, Reveal is configured with [highlight.js](http://softwaremaniacs.org/
If you would like to display the page number of the current slide you can do so using the ```slideNumber``` configuration value.
```javascript
+// Shows the slide number using default formatting
Reveal.configure({ slideNumber: true });
+
+// Slide number formatting can be configured using these variables:
+// h: current slide's horizontal index
+// v: current slide's vertical index
+// c: current slide index (flattened)
+// t: total number of slides (flattened)
+Reveal.configure({ slideNumber: 'c / t' });
+
```