8 lines
23 KiB
JavaScript
8 lines
23 KiB
JavaScript
/*!
|
|
* reveal.js 2.5.0 (2013-05-20, 00:27)
|
|
* http://lab.hakim.se/reveal-js
|
|
* MIT licensed
|
|
*
|
|
* Copyright (C) 2013 Hakim El Hattab, http://hakim.se
|
|
*/
|
|
var Reveal=function(){"use strict";function e(e){return Yt||Ot?(window.addEventListener("load",b,!1),c(kt,e),n(),r(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Ct.theme=document.querySelector("#theme"),Ct.wrapper=document.querySelector(".reveal"),Ct.slides=document.querySelector(".reveal .slides"),!Ct.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="<span></span>",Ct.wrapper.appendChild(e)}if(!Ct.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='<div class="navigate-left"></div><div class="navigate-right"></div><div class="navigate-up"></div><div class="navigate-down"></div>',Ct.wrapper.appendChild(t)}if(!Ct.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Ct.wrapper.appendChild(n)}if(!Ct.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Ct.wrapper.appendChild(r)}Ct.progress=document.querySelector(".reveal .progress"),Ct.progressbar=document.querySelector(".reveal .progress span"),kt.controls&&(Ct.controls=document.querySelector(".reveal .controls"),Ct.controlsLeft=l(document.querySelectorAll(".navigate-left")),Ct.controlsRight=l(document.querySelectorAll(".navigate-right")),Ct.controlsUp=l(document.querySelectorAll(".navigate-up")),Ct.controlsDown=l(document.querySelectorAll(".navigate-down")),Ct.controlsPrev=l(document.querySelectorAll(".navigate-prev")),Ct.controlsNext=l(document.querySelectorAll(".navigate-next")))}function n(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",f,!1),window.addEventListener("orientationchange",f,!1))}function r(){function e(){n.length&&head.js.apply(null,n),o()}for(var t=[],n=[],r=0,a=kt.dependencies.length;a>r;r++){var i=kt.dependencies[r];(!i.condition||i.condition())&&(i.async?n.push(i.src):t.push(i.src),"function"==typeof i.callback&&head.ready(i.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],i.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function o(){t(),a(),F(),setTimeout(function(){v("ready",{indexh:Mt,indexv:Pt,currentSlide:Et})},1)}function a(e){if(Ct.wrapper.classList.remove(kt.transition),"object"==typeof e&&c(kt,e),Ot===!1&&(kt.transition="linear"),Ct.wrapper.classList.add(kt.transition),Ct.wrapper.setAttribute("data-transition-speed",kt.transitionSpeed),Ct.controls&&(Ct.controls.style.display=kt.controls&&Ct.controls?"block":"none"),Ct.progress&&(Ct.progress.style.display=kt.progress&&Ct.progress?"block":"none"),kt.rtl?Ct.wrapper.classList.add("rtl"):Ct.wrapper.classList.remove("rtl"),kt.center?Ct.wrapper.classList.add("center"):Ct.wrapper.classList.remove("center"),kt.mouseWheel?(document.addEventListener("DOMMouseScroll",lt,!1),document.addEventListener("mousewheel",lt,!1)):(document.removeEventListener("DOMMouseScroll",lt,!1),document.removeEventListener("mousewheel",lt,!1)),kt.rollingLinks?p():m(),kt.previewLinks?h():(g(),h("[data-preview-link]")),kt.theme&&Ct.theme){var t=Ct.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];kt.theme!==r&&(t=t.replace(n,kt.theme),Ct.theme.setAttribute("href",t))}Y()}function i(){Ut=!0,window.addEventListener("hashchange",gt,!1),window.addEventListener("resize",yt,!1),kt.touch&&(Ct.wrapper.addEventListener("touchstart",rt,!1),Ct.wrapper.addEventListener("touchmove",ot,!1),Ct.wrapper.addEventListener("touchend",at,!1),window.navigator.msPointerEnabled&&(Ct.wrapper.addEventListener("MSPointerDown",it,!1),Ct.wrapper.addEventListener("MSPointerMove",st,!1),Ct.wrapper.addEventListener("MSPointerUp",ct,!1))),kt.keyboard&&document.addEventListener("keydown",nt,!1),kt.progress&&Ct.progress&&Ct.progress.addEventListener("click",dt,!1),kt.controls&&Ct.controls&&["touchstart","click"].forEach(function(e){Ct.controlsLeft.forEach(function(t){t.addEventListener(e,ut,!1)}),Ct.controlsRight.forEach(function(t){t.addEventListener(e,ft,!1)}),Ct.controlsUp.forEach(function(t){t.addEventListener(e,vt,!1)}),Ct.controlsDown.forEach(function(t){t.addEventListener(e,pt,!1)}),Ct.controlsPrev.forEach(function(t){t.addEventListener(e,mt,!1)}),Ct.controlsNext.forEach(function(t){t.addEventListener(e,ht,!1)})})}function s(){Ut=!1,document.removeEventListener("keydown",nt,!1),window.removeEventListener("hashchange",gt,!1),window.removeEventListener("resize",yt,!1),Ct.wrapper.removeEventListener("touchstart",rt,!1),Ct.wrapper.removeEventListener("touchmove",ot,!1),Ct.wrapper.removeEventListener("touchend",at,!1),window.navigator.msPointerEnabled&&(Ct.wrapper.removeEventListener("MSPointerDown",it,!1),Ct.wrapper.removeEventListener("MSPointerMove",st,!1),Ct.wrapper.removeEventListener("MSPointerUp",ct,!1)),kt.progress&&Ct.progress&&Ct.progress.removeEventListener("click",dt,!1),kt.controls&&Ct.controls&&["touchstart","click"].forEach(function(e){Ct.controlsLeft.forEach(function(t){t.removeEventListener(e,ut,!1)}),Ct.controlsRight.forEach(function(t){t.removeEventListener(e,ft,!1)}),Ct.controlsUp.forEach(function(t){t.removeEventListener(e,vt,!1)}),Ct.controlsDown.forEach(function(t){t.removeEventListener(e,pt,!1)}),Ct.controlsPrev.forEach(function(t){t.removeEventListener(e,mt,!1)}),Ct.controlsNext.forEach(function(t){t.removeEventListener(e,ht,!1)})})}function c(e,t){for(var n in t)e[n]=t[n]}function l(e){return Array.prototype.slice.call(e)}function d(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function u(e){var t=0;if(e){var n=0;l(e.childNodes).forEach(function(e){"number"==typeof e.offsetTop&&e.style&&("absolute"===e.style.position&&(n+=1),t=Math.max(t,e.offsetTop+e.offsetHeight))}),0===n&&(t=e.offsetHeight)}return t}function f(){0===window.orientation?(document.documentElement.style.overflow="scroll",document.body.style.height="120%"):(document.documentElement.style.overflow="",document.body.style.height="100%"),setTimeout(function(){window.scrollTo(0,1)},10)}function v(e,t){var n=document.createEvent("HTMLEvents",1,2);n.initEvent(e,!0,!0),c(n,t),Ct.wrapper.dispatchEvent(n)}function p(){if(Ot&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(St+" a:not(.image)"),t=0,n=e.length;n>t;t++){var r=e[t];if(!(!r.textContent||r.querySelector("*")||r.className&&r.classList.contains(r,"roll"))){var o=document.createElement("span");o.setAttribute("data-title",r.text),o.innerHTML=r.innerHTML,r.classList.add("roll"),r.innerHTML="",r.appendChild(o)}}}function m(){for(var e=document.querySelectorAll(St+" a.roll"),t=0,n=e.length;n>t;t++){var r=e[t],o=r.querySelector("span");o&&(r.classList.remove("roll"),r.innerHTML=o.innerHTML)}}function h(e){var t=l(document.querySelectorAll(e?e:"a"));t.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.addEventListener("click",Lt,!1)})}function g(){var e=l(document.querySelectorAll("a"));e.forEach(function(e){/^(http|www)/gi.test(e.getAttribute("href"))&&e.removeEventListener("click",Lt,!1)})}function y(e){w(),Ct.preview=document.createElement("div"),Ct.preview.classList.add("preview-link-overlay"),Ct.wrapper.appendChild(Ct.preview),Ct.preview.innerHTML=["<header>",'<a class="close" href="#"><span class="icon"></span></a>','<a class="external" href="'+e+'" target="_blank"><span class="icon"></span></a>',"</header>",'<div class="spinner"></div>','<div class="viewport">','<iframe src="'+e+'"></iframe>',"</div>"].join(""),Ct.preview.querySelector("iframe").addEventListener("load",function(){Ct.preview.classList.add("loaded")},!1),Ct.preview.querySelector(".close").addEventListener("click",function(e){w(),e.preventDefault()},!1),Ct.preview.querySelector(".external").addEventListener("click",function(){w()},!1),setTimeout(function(){Ct.preview.classList.add("visible")},1)}function w(){Ct.preview&&(Ct.preview.setAttribute("src",""),Ct.preview.parentNode.removeChild(Ct.preview),Ct.preview=null)}function L(e){var t=l(e);return t.forEach(function(e,t){e.hasAttribute("data-fragment-index")||e.setAttribute("data-fragment-index",t)}),t.sort(function(e,t){return e.getAttribute("data-fragment-index")-t.getAttribute("data-fragment-index")}),t}function b(){if(Ct.wrapper){var e=Ct.wrapper.offsetWidth,t=Ct.wrapper.offsetHeight;e-=t*kt.margin,t-=t*kt.margin;var n=kt.width,r=kt.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Ct.slides.style.width=n+"px",Ct.slides.style.height=r+"px",Nt=Math.min(e/n,t/r),Nt=Math.max(Nt,kt.minScale),Nt=Math.min(Nt,kt.maxScale),void 0===Ct.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Nt+") translate(50%, 50%)";Ct.slides.style.WebkitTransform=o,Ct.slides.style.MozTransform=o,Ct.slides.style.msTransform=o,Ct.slides.style.OTransform=o,Ct.slides.style.transform=o}else Ct.slides.style.zoom=Nt;for(var a=l(document.querySelectorAll(St)),i=0,s=a.length;s>i;i++){var c=a[i];"none"!==c.style.display&&(c.style.top=kt.center?c.classList.contains("stack")?0:Math.max(-(u(c)/2)-20,-r/2)+"px":"")}X()}}function E(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function S(e){if("object"==typeof e&&"function"==typeof e.setAttribute&&e.classList.contains("stack")){var t=e.hasAttribute("data-start-indexv")?"data-start-indexv":"data-previous-indexv";return parseInt(e.getAttribute(t)||0,10)}return 0}function A(){if(kt.overview){Z();var e=Ct.wrapper.classList.contains("overview");Ct.wrapper.classList.add("overview"),Ct.wrapper.classList.remove("exit-overview"),clearTimeout(It),clearTimeout(Wt),It=setTimeout(function(){for(var t=document.querySelectorAll(At),n=0,r=t.length;r>n;n++){var o=t[n],a=kt.rtl?-105:105,i="translateZ(-2500px) translate("+(n-Mt)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=i,o.style.MozTransform=i,o.style.msTransform=i,o.style.OTransform=i,o.style.transform=i,o.classList.contains("stack"))for(var s=o.querySelectorAll("section"),c=0,l=s.length;l>c;c++){var d=n===Mt?Pt:S(o),u=s[c],f="translate(0%, "+105*(c-d)+"%)";u.setAttribute("data-index-h",n),u.setAttribute("data-index-v",c),u.style.display="block",u.style.WebkitTransform=f,u.style.MozTransform=f,u.style.msTransform=f,u.style.OTransform=f,u.style.transform=f,u.addEventListener("click",wt,!0)}else o.addEventListener("click",wt,!0)}b(),e||v("overviewshown",{indexh:Mt,indexv:Pt,currentSlide:Et})},10)}}function q(){if(kt.overview){clearTimeout(It),clearTimeout(Wt),Ct.wrapper.classList.remove("overview"),Ct.wrapper.classList.add("exit-overview"),Wt=setTimeout(function(){Ct.wrapper.classList.remove("exit-overview")},10);for(var e=l(document.querySelectorAll(St)),t=0,n=e.length;n>t;t++){var r=e[t];r.style.display="",r.style.WebkitTransform="",r.style.MozTransform="",r.style.msTransform="",r.style.OTransform="",r.style.transform="",r.removeEventListener("click",wt,!0)}O(Mt,Pt),V(),v("overviewhidden",{indexh:Mt,indexv:Pt,currentSlide:Et})}}function x(e){"boolean"==typeof e?e?A():q():k()?q():A()}function k(){return Ct.wrapper.classList.contains("overview")}function T(e){return e=e?e:Et,e&&!!e.parentNode.nodeName.match(/section/i)}function M(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function P(){var e=Ct.wrapper.classList.contains("paused");Z(),Ct.wrapper.classList.add("paused"),e===!1&&v("paused")}function D(){var e=Ct.wrapper.classList.contains("paused");Ct.wrapper.classList.remove("paused"),V(),e&&v("resumed")}function N(){C()?D():P()}function C(){return Ct.wrapper.classList.contains("paused")}function O(e,t,n,r){bt=Et;var o=document.querySelectorAll(At);void 0===t&&(t=S(o[e])),bt&&bt.parentNode&&bt.parentNode.classList.contains("stack")&&E(bt.parentNode,Pt);var a=Dt.concat();Dt.length=0;var i=Mt,s=Pt;Mt=R(At,void 0===e?Mt:e),Pt=R(qt,void 0===t?Pt:t),b();e:for(var c=0,d=Dt.length;d>c;c++){for(var u=0;a.length>u;u++)if(a[u]===Dt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(Dt[c]),v(Dt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());k()&&A(),_(1500);var f=o[Mt],p=f.querySelectorAll("section");if(Et=p[Pt]||f,n!==void 0){var m=L(Et.querySelectorAll(".fragment"));l(m).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}Mt!==i||Pt!==s?v("slidechanged",{indexh:Mt,indexv:Pt,previousSlide:bt,currentSlide:Et,origin:r}):bt=null,bt&&(bt.classList.remove("present"),document.querySelector(xt).classList.contains("present")&&setTimeout(function(){var e,t=l(document.querySelectorAll(At+".stack"));for(e in t)t[e]&&E(t[e],0)},0)),z(bt),U(Et),H(),X()}function Y(){s(),i(),b(),Tt=kt.autoSlide,V(),H(),X()}function R(e,t){var n=l(document.querySelectorAll(e)),r=n.length;if(r){kt.loop&&(t%=r,0>t&&(t=r+t)),t=Math.max(Math.min(t,r-1),0);for(var o=0;r>o;o++){var a=n[o];if(k()===!1){var i=Math.abs((t-o)%(r-3))||0;a.style.display=i>3?"none":"block"}var s=kt.rtl&&!T(a);a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),t>o?a.classList.add(s?"future":"past"):o>t&&a.classList.add(s?"past":"future"),a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present");var c=n[t].getAttribute("data-state");c&&(Dt=Dt.concat(c.split(" ")));var d=n[t].getAttribute("data-autoslide");Tt=d?parseInt(d,10):kt.autoSlide}else t=0;return t}function X(){if(kt.progress&&Ct.progress){var e=l(document.querySelectorAll(At)),t=document.querySelectorAll(St+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=l(o.querySelectorAll("section")),i=0;a.length>i;i++){if(a[i].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Ct.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function H(){if(kt.controls&&Ct.controls){var e=I(),t=W();Ct.controlsLeft.concat(Ct.controlsRight).concat(Ct.controlsUp).concat(Ct.controlsDown).concat(Ct.controlsPrev).concat(Ct.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Ct.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Ct.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Ct.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Ct.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Ct.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Ct.controlsNext.forEach(function(e){e.classList.add("enabled")}),Et&&(t.prev&&Ct.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ct.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),T(Et)?(t.prev&&Ct.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ct.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Ct.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Ct.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function I(){var e=document.querySelectorAll(At),t=document.querySelectorAll(qt),n={left:Mt>0||kt.loop,right:e.length-1>Mt||kt.loop,up:Pt>0,down:t.length-1>Pt};if(kt.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function W(){if(Et&&kt.fragments){var e=Et.querySelectorAll(".fragment"),t=Et.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function U(e){e&&(l(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),l(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function z(e){e&&(l(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),l(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-ignore")||"function"!=typeof e.contentWindow.postMessage||e.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}))}function F(){var e=window.location.hash,t=e.slice(2).split("/"),n=e.replace(/#|\//gi,"");if(isNaN(parseInt(t[0],10))&&n.length){var r=document.querySelector("#"+n);if(r){var o=Reveal.getIndices(r);O(o.h,o.v)}else O(Mt,Pt)}else{var a=parseInt(t[0],10)||0,i=parseInt(t[1],10)||0;O(a,i)}}function _(e){if(kt.history)if(clearTimeout(Ht),"number"==typeof e)Ht=setTimeout(_,e);else{var t="/";Et&&"string"==typeof Et.getAttribute("id")?t="/"+Et.getAttribute("id"):((Mt>0||Pt>0)&&(t+=Mt),Pt>0&&(t+="/"+Pt)),window.location.hash=t}}function j(e){var t,n=Mt,r=Pt;if(e){var o=T(e),a=o?e.parentNode:e,i=l(document.querySelectorAll(At));n=Math.max(i.indexOf(a),0),o&&(r=Math.max(l(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&Et){var s=Et.querySelectorAll(".fragment.visible");s.length&&(t=s.length)}return{h:n,v:r,f:t}}function K(){if(Et&&kt.fragments){var e=L(Et.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=Et.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),l(e).forEach(function(e){e.classList.add("visible"),v("fragmentshown",{fragment:e})}),H(),!0}}return!1}function $(){if(Et&&kt.fragments){var e=L(Et.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=Et.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),l(e).forEach(function(e){e.classList.remove("visible"),v("fragmenthidden",{fragment:e})}),H(),!0}}return!1}function V(){clearTimeout(Xt),!Tt||C()||k()||(Xt=setTimeout(tt,Tt))}function Z(){clearTimeout(Xt)}function Q(){kt.rtl?(k()||K()===!1)&&I().left&&O(Mt+1):(k()||$()===!1)&&I().left&&O(Mt-1)}function B(){kt.rtl?(k()||$()===!1)&&I().right&&O(Mt-1):(k()||K()===!1)&&I().right&&O(Mt+1)}function G(){(k()||$()===!1)&&I().up&&O(Mt,Pt-1)}function J(){(k()||K()===!1)&&I().down&&O(Mt,Pt+1)}function et(){if($()===!1)if(I().up)G();else{var e=document.querySelector(At+".past:nth-child("+Mt+")");e&&(Pt=e.querySelectorAll("section").length+1||void 0,Mt--,O(Mt,Pt))}}function tt(){K()===!1&&(I().down?J():B()),V()}function nt(e){document.activeElement;var t=!(!document.activeElement||!document.activeElement.type&&!document.activeElement.href&&"inherit"===document.activeElement.contentEditable);if(!(t||e.shiftKey&&32!==e.keyCode||e.altKey||e.ctrlKey||e.metaKey)){var n=!0;if(C()&&-1===[66,190,191].indexOf(e.keyCode))return!1;switch(e.keyCode){case 80:case 33:et();break;case 78:case 34:tt();break;case 72:case 37:Q();break;case 76:case 39:B();break;case 75:case 38:G();break;case 74:case 40:J();break;case 36:O(0);break;case 35:O(Number.MAX_VALUE);break;case 32:k()?q():e.shiftKey?et():tt();break;case 13:k()?q():n=!1;break;case 66:case 190:case 191:N();break;case 70:M();break;default:n=!1}n?e.preventDefault():27===e.keyCode&&Ot&&(x(),e.preventDefault()),V()}}function rt(e){zt.startX=e.touches[0].clientX,zt.startY=e.touches[0].clientY,zt.startCount=e.touches.length,2===e.touches.length&&kt.overview&&(zt.startSpan=d({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:zt.startX,y:zt.startY}))}function ot(e){if(zt.handled)navigator.userAgent.match(/android/gi)&&e.preventDefault();else{var t=e.touches[0].clientX,n=e.touches[0].clientY;if(2===e.touches.length&&2===zt.startCount&&kt.overview){var r=d({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:zt.startX,y:zt.startY});Math.abs(zt.startSpan-r)>zt.threshold&&(zt.handled=!0,zt.startSpan>r?A():q()),e.preventDefault()}else if(1===e.touches.length&&2!==zt.startCount){var o=t-zt.startX,a=n-zt.startY;o>zt.threshold&&Math.abs(o)>Math.abs(a)?(zt.handled=!0,Q()):-zt.threshold>o&&Math.abs(o)>Math.abs(a)?(zt.handled=!0,B()):a>zt.threshold?(zt.handled=!0,G()):-zt.threshold>a&&(zt.handled=!0,J()),e.preventDefault()}}}function at(){zt.handled=!1}function it(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],rt(e))}function st(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],ot(e))}function ct(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],at(e))}function lt(e){clearTimeout(Rt),Rt=setTimeout(function(){var t=e.detail||-e.wheelDelta;t>0?tt():et()},100)}function dt(e){e.preventDefault();var t=l(document.querySelectorAll(At)).length,n=Math.floor(e.clientX/Ct.wrapper.offsetWidth*t);O(n)}function ut(e){e.preventDefault(),Q()}function ft(e){e.preventDefault(),B()}function vt(e){e.preventDefault(),G()}function pt(e){e.preventDefault(),J()}function mt(e){e.preventDefault(),et()}function ht(e){e.preventDefault(),tt()}function gt(){F()}function yt(){b()}function wt(e){if(Ut&&k()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(q(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);O(n,r)}}}function Lt(e){var t=e.target.getAttribute("href");t&&(y(t),e.preventDefault())}var bt,Et,St=".reveal .slides section",At=".reveal .slides>section",qt=".reveal .slides>section.present>section",xt=".reveal .slides>section:first-child",kt={width:960,height:700,margin:.1,minScale:.2,maxScale:1,controls:!0,progress:!0,history:!1,keyboard:!0,overview:!0,center:!0,touch:!0,loop:!1,rtl:!1,fragments:!0,autoSlide:0,mouseWheel:!1,rollingLinks:!0,previewLinks:!1,theme:null,transition:"default",transitionSpeed:"default",dependencies:[]},Tt=0,Mt=0,Pt=0,Dt=[],Nt=1,Ct={},Ot="WebkitPerspective"in document.body.style||"MozPerspective"in document.body.style||"msPerspective"in document.body.style||"OPerspective"in document.body.style||"perspective"in document.body.style,Yt="WebkitTransform"in document.body.style||"MozTransform"in document.body.style||"msTransform"in document.body.style||"OTransform"in document.body.style||"transform"in document.body.style,Rt=0,Xt=0,Ht=0,It=0,Wt=0,Ut=!1,zt={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:a,sync:Y,slide:O,left:Q,right:B,up:G,down:J,prev:et,next:tt,prevFragment:$,nextFragment:K,navigateTo:O,navigateLeft:Q,navigateRight:B,navigateUp:G,navigateDown:J,navigatePrev:et,navigateNext:tt,layout:b,availableRoutes:I,availableFragments:W,toggleOverview:x,togglePause:N,isOverview:k,isPaused:C,addEventListeners:i,removeEventListeners:s,getIndices:j,getSlide:function(e,t){var n=document.querySelectorAll(At)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return bt},getCurrentSlide:function(){return Et},getScale:function(){return Nt},getConfig:function(){return kt},getQueryHash:function(){var e={};return location.search.replace(/[A-Z0-9]+?=(\w*)/gi,function(t){e[t.split("=").shift()]=t.split("=").pop()}),e},isFirstSlide:function(){return null==document.querySelector(St+".past")?!0:!1},isLastSlide:function(){return Et&&Et.classList.contains(".stack")?null==Et.querySelector(St+".future")?!0:!1:null==document.querySelector(St+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Ct.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Ct.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}(); |