aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorhakimel <hakim.elhattab@gmail.com>2012-05-03 12:42:53 -0400
committerhakimel <hakim.elhattab@gmail.com>2012-05-03 12:42:53 -0400
commitebb834f4b0b42363e3a59836fc1f2aa15a691c77 (patch)
treea6b3434280ff1fcc1538e035bc78f1c93ffe8805 /js
parent5a6837358bd91896114359b598a42b7172af1ec8 (diff)
downloadperl-software-in-gnu-guix-ebb834f4b0b42363e3a59836fc1f2aa15a691c77.tar
perl-software-in-gnu-guix-ebb834f4b0b42363e3a59836fc1f2aa15a691c77.tar.gz
ie9 fixes, including new classList polyfill
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js2
-rw-r--r--js/reveal.min.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 3360255..4761595 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -461,7 +461,7 @@ var Reveal = (function(){
// If this slide has a state associated with it, add it
// onto the current state of the deck
- var slideState = slides[index].dataset.state;
+ var slideState = slides[index].getAttribute( 'data-state' );
if( slideState ) {
state = state.concat( slideState.split( ' ' ) );
}
diff --git a/js/reveal.min.js b/js/reveal.min.js
index 2bbb956..b055124 100644
--- a/js/reveal.min.js
+++ b/js/reveal.min.js
@@ -31,8 +31,8 @@ N.style.MozTransform="";N.style.msTransform="";N.style.OTransform="";N.style.tra
}function x(M){if(H()){M.preventDefault();I();j=this.getAttribute("data-index-h");c=this.getAttribute("data-index-v");b();}}function L(N,P){var R=Array.prototype.slice.call(document.querySelectorAll(N)),S=R.length;
if(S){if(E.loop){P%=S;if(P<0){P=S+P;}}P=Math.max(Math.min(P,S-1),0);for(var Q=0;Q<S;Q++){var M=R[Q];if(H()===false){var T=Math.abs((P-Q)%(S-3))||0;M.style.display=T>3?"none":"block";
}R[Q].classList.remove("past");R[Q].classList.remove("present");R[Q].classList.remove("future");if(Q<P){R[Q].classList.add("past");}else{if(Q>P){R[Q].classList.add("future");
-}}if(M.querySelector("section")){R[Q].classList.add("stack");}}R[P].classList.add("present");var O=R[P].dataset.state;if(O){K=K.concat(O.split(" "));}}else{P=0;
-}return P;}function b(){var Q=K.concat();K.length=0;j=L(i,j);c=L(a,c);stateLoop:for(var O=0,M=K.length;O<M;O++){for(var N=0;N<Q.length;N++){if(Q[N]===K[O]){Q.splice(N,1);
+}}if(M.querySelector("section")){R[Q].classList.add("stack");}}R[P].classList.add("present");var O=R[P].getAttribute("data-state");if(O){K=K.concat(O.split(" "));
+}}else{P=0;}return P;}function b(){var Q=K.concat();K.length=0;j=L(i,j);c=L(a,c);stateLoop:for(var O=0,M=K.length;O<M;O++){for(var N=0;N<Q.length;N++){if(Q[N]===K[O]){Q.splice(N,1);
continue stateLoop;}}document.documentElement.classList.add(K[O]);var P=document.createEvent("HTMLEvents");P.initEvent(K[O],true,true);document.dispatchEvent(P);
}while(Q.length){document.documentElement.classList.remove(Q.pop());}if(E.progress){d.progressbar.style.width=(j/(document.querySelectorAll(i).length-1))*window.innerWidth+"px";
}if(H()){z();}n();clearTimeout(w);w=setTimeout(f,1500);}function n(){var M=e();[d.controlsLeft,d.controlsRight,d.controlsUp,d.controlsDown].forEach(function(N){N.classList.remove("enabled");