diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-03-25 14:51:54 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-03-25 14:51:54 +0100 |
commit | 70ab0ae80b37c077d3ba799b74bca613d049868c (patch) | |
tree | b5f3fe3b01db291f04ab4e626a497a54ada102a5 /js | |
parent | 2999b628cfe625b1aa9e55d43e185dcef725a42a (diff) | |
download | perl-software-in-gnu-guix-70ab0ae80b37c077d3ba799b74bca613d049868c.tar perl-software-in-gnu-guix-70ab0ae80b37c077d3ba799b74bca613d049868c.tar.gz |
remove variable definitions #1158
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/js/reveal.js b/js/reveal.js index f5ca21f..8162a17 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2475,13 +2475,10 @@ format = config.slideNumber; } - var totalSlides = getTotalSlides(); - var currentSlide = getSlidePastCount() + 1; - dom.slideNumber.innerHTML = format.replace( /h/g, indexh ) .replace( /v/g, indexv ) - .replace( /c/g, currentSlide ) - .replace( /t/g, totalSlides ); + .replace( /c/g, getSlidePastCount() + 1 ) + .replace( /t/g, getTotalSlides() ); } } |