aboutsummaryrefslogtreecommitdiffhomepage
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab2013-11-17 17:13:26 -0500
committerHakim El Hattab2013-11-17 17:13:26 -0500
commit85c2a0a3c192c7e23bd6a3681b8f28107b2f0a58 (patch)
tree2874ea4adffa19d8e039ca79702ae32390d422d0 /js/reveal.js
parentbdb46060b362af6ff657ed9db13d829ca9419860 (diff)
slide number changes; config value renamed, added to readme, moved to right side of screen
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 0bda3d5..7b81e5c 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -35,6 +35,9 @@ var Reveal = (function(){
// Display a presentation progress bar
progress: true,
+ // Display the page number of the current slide
+ slideNumber: false,
+
// Push each slide change to the browser history
history: false,
@@ -108,10 +111,8 @@ var Reveal = (function(){
viewDistance: 3,
// Script dependencies to load
- dependencies: [],
+ dependencies: []
- // Indicates whether to show the slides number
- showSlideNumber: false
},
// Flags if reveal.js is loaded (has dispatched the 'ready' event)
@@ -381,8 +382,8 @@ var Reveal = (function(){
'<div class="navigate-up"></div>' +
'<div class="navigate-down"></div>' );
- // slide number
- createSingletonNode( dom.wrapper, 'div', 'slide-number', '' );
+ // Slide number
+ dom.slideNumber = createSingletonNode( dom.wrapper, 'div', 'slide-number', '' );
// State background element [DEPRECATED]
createSingletonNode( dom.wrapper, 'div', 'state-background', null );
@@ -401,7 +402,6 @@ var Reveal = (function(){
dom.controlsPrev = toArray( document.querySelectorAll( '.navigate-prev' ) );
dom.controlsNext = toArray( document.querySelectorAll( '.navigate-next' ) );
- dom.slideNumber = document.querySelector( '.slide-number' );
}
/**
@@ -1866,7 +1866,7 @@ var Reveal = (function(){
function updateSlideNumber() {
// Update slide number if enabled
- if( config.showSlideNumber && dom.slideNumber) {
+ if( config.slideNumber && dom.slideNumber) {
// Display the number of the page using 'indexh - indexv' format
var indexString = indexh;