From: uriel Date: Thu, 31 Oct 2013 17:47:13 +0000 (+0200) Subject: change SlidesNumber position and start page counter at 0 instead 1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f1dd807f662da68ef240f0746794077072d49036;p=reveal.js.git change SlidesNumber position and start page counter at 0 instead 1 --- diff --git a/css/reveal.css b/css/reveal.css index 4e5c8ea..d5204d0 100644 --- a/css/reveal.css +++ b/css/reveal.css @@ -486,10 +486,11 @@ body { opacity: 0.5; z-index: 31; width: 110px; - bottom: 60px; - right: 11px; + bottom: 30px; + left: 11px; font-size: 12px; text-align: center; + letter-spacing: 0px } /********************************************* diff --git a/js/reveal.js b/js/reveal.js index 136dc93..619d8d2 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1791,9 +1791,9 @@ var Reveal = (function(){ var element = dom.slideNumber; // change the number of the page using 'indexh - indexv' format - var indexString = ( indexh + 1 ).toString(); + var indexString = indexh; if( indexv > 0 ) { - indexString += ' - ' + indexv.toString(); + indexString += ' - ' + indexv; } element.innerHTML = indexString;