aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2012-07-18 18:18:41 -0700
committerHakim El Hattab <hakim.elhattab@gmail.com>2012-07-18 18:18:41 -0700
commit54e59d02d4a1903a8f159f100aa1e322866ceddd (patch)
tree46f5e37d5783212323ca8abc6e3848928e1036e5
parent819d2488aa1eb6a57fd3f635fbede76a6b5b1604 (diff)
parentdd6c60582654f6a1a9237529007160ed6f3b3348 (diff)
downloadfosdem-2018-presentation-54e59d02d4a1903a8f159f100aa1e322866ceddd.tar
fosdem-2018-presentation-54e59d02d4a1903a8f159f100aa1e322866ceddd.tar.gz
Merge pull request #83 from basecode/patch-slidechange
slidechange doesn't get fired on "hashchange" events
-rw-r--r--js/reveal.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 9276da3..c9e69a8 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -765,12 +765,12 @@ var Reveal = (function(){
function readURL() {
// Break the hash down to separate components
var bits = window.location.hash.slice(2).split('/');
-
+
// Read the index components of the hash
- indexh = parseInt( bits[0] ) || 0 ;
- indexv = parseInt( bits[1] ) || 0 ;
-
- navigateTo( indexh, indexv );
+ var h = parseInt( bits[0] ) || 0 ;
+ var v = parseInt( bits[1] ) || 0 ;
+
+ navigateTo( h, v );
}
/**