diff options
author | Hakim El Hattab | 2012-10-25 09:36:25 -0400 |
---|---|---|
committer | Hakim El Hattab | 2012-10-25 09:36:25 -0400 |
commit | 5d1bac5790086cbd28fbcacd8a4cadb6c6e2e403 (patch) | |
tree | a68bfc7df9679bdb6f860068863e927861a2526d /js | |
parent | 4777afe0c562c40b388c304d00bcd07b42836901 (diff) | |
parent | 1801bf67eaf1fac8cb5776fe9ba83cc9e13272d6 (diff) |
merge in support for stepped fragments in notes window
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 2 | ||||
-rw-r--r-- | js/reveal.min.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index 1194657..425b617 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1324,6 +1324,8 @@ var Reveal = (function(){ down: navigateDown, prev: navigatePrev, next: navigateNext, + prevFragment: previousFragment, + nextFragment: nextFragment, // Deprecated aliases navigateTo: slide, diff --git a/js/reveal.min.js b/js/reveal.min.js index f82e040..e389070 100644 --- a/js/reveal.min.js +++ b/js/reveal.min.js @@ -76,7 +76,7 @@ if(am>ac.threshold&&Math.abs(am)>Math.abs(al)){ac.handled=true;B();}else{if(am<- u();}else{if(al<-ac.threshold){ac.handled=true;F();}}}}aq.preventDefault();}}}else{if(navigator.userAgent.match(/android/gi)){aq.preventDefault();}}}function W(al){ac.handled=false; }function o(al){clearTimeout(z);z=setTimeout(function(){var am=al.detail||-al.wheelDelta;if(am>0){x();}else{Z();}},100);}function ai(am){var al=Array.prototype.slice.call(document.querySelectorAll(l)).length; var an=Math.floor((am.clientX/f.wrapper.offsetWidth)*al);a(an);}function w(al){J();}function C(al){if(L()){al.preventDefault();ae();m=this.getAttribute("data-index-h"); -e=this.getAttribute("data-index-v");a();}}return{initialize:i,slide:a,left:B,right:j,up:u,down:F,prev:Z,next:x,navigateTo:a,navigateLeft:B,navigateRight:j,navigateUp:u,navigateDown:F,navigatePrev:Z,navigateNext:x,toggleOverview:X,addEventListeners:E,removeEventListeners:U,getIndices:M,getPreviousSlide:function(){return y; +e=this.getAttribute("data-index-v");a();}}return{initialize:i,slide:a,left:B,right:j,up:u,down:F,prev:Z,next:x,prevFragment:Q,nextFragment:v,navigateTo:a,navigateLeft:B,navigateRight:j,navigateUp:u,navigateDown:F,navigatePrev:Z,navigateNext:x,toggleOverview:X,addEventListeners:E,removeEventListeners:U,getIndices:M,getPreviousSlide:function(){return y; },getCurrentSlide:function(){return G;},getQueryHash:function(){var al={};location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(am){al[am.split("=").shift()]=am.split("=").pop(); });return al;},addEventListener:function(am,an,al){if("addEventListener" in window){(f.wrapper||document.querySelector(".reveal")).addEventListener(am,an,al); }},removeEventListener:function(am,an,al){if("addEventListener" in window){(f.wrapper||document.querySelector(".reveal")).removeEventListener(am,an,al); |