From 544e090bd12b79ae48c8daa8c1d267d4a83d4f19 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 4 Jun 2013 20:25:47 +0200 Subject: allow control over background color when using images (#453) --- js/reveal.js | 7 +++++-- js/reveal.min.js | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'js') diff --git a/js/reveal.js b/js/reveal.js index 3d6e2da..5ac219e 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -249,7 +249,8 @@ var Reveal = (function(){ /** * Creates the slide background elements and appends them - * to the background container. + * to the background container. One element is created per + * slide no matter if the given slide has visible background. */ function createBackgrounds() { @@ -264,6 +265,7 @@ var Reveal = (function(){ var data = { background: slide.getAttribute( 'data-background' ), backgroundSize: slide.getAttribute( 'data-background-size' ), + backgroundColor: slide.getAttribute( 'data-background-color' ), backgroundRepeat: slide.getAttribute( 'data-background-repeat' ), backgroundPosition: slide.getAttribute( 'data-background-position' ) }; @@ -272,7 +274,7 @@ var Reveal = (function(){ if( data.background ) { // Auto-wrap image urls in url(...) - if( /\.(png|jpg|jpeg|gif|bmp|)$/gi.test( data.background ) ) { + if( /\.(png|jpg|jpeg|gif|bmp)$/gi.test( data.background ) ) { element.style.backgroundImage = 'url('+ data.background +')'; } else { @@ -282,6 +284,7 @@ var Reveal = (function(){ // Additional and optional background properties if( data.backgroundSize ) element.style.backgroundSize = data.backgroundSize; + if( data.backgroundColor ) element.style.backgroundColor = data.backgroundColor; if( data.backgroundRepeat ) element.style.backgroundRepeat = data.backgroundRepeat; if( data.backgroundPosition ) element.style.backgroundPosition = data.backgroundPosition; diff --git a/js/reveal.min.js b/js/reveal.min.js index c066420..a321063 100644 --- a/js/reveal.min.js +++ b/js/reveal.min.js @@ -1,8 +1,8 @@ /*! - * reveal.js 2.5.0 (2013-06-04, 20:14) + * reveal.js 2.5.0 (2013-06-04, 20:24) * 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 Nt||Pt?(window.addEventListener("load",g,!1),l(St,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Mt.theme=document.querySelector("#theme"),Mt.wrapper=document.querySelector(".reveal"),Mt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .background")||(Mt.background=document.createElement("div"),Mt.background.classList.add("background"),Mt.wrapper.appendChild(Mt.background)),!Mt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Mt.wrapper.appendChild(e)}if(!Mt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Mt.wrapper.appendChild(t)}if(!Mt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Mt.wrapper.appendChild(n)}if(!Mt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Mt.wrapper.appendChild(r)}Mt.progress=document.querySelector(".reveal .progress"),Mt.progressbar=document.querySelector(".reveal .progress span"),St.controls&&(Mt.controls=document.querySelector(".reveal .controls"),Mt.controlsLeft=d(document.querySelectorAll(".navigate-left")),Mt.controlsRight=d(document.querySelectorAll(".navigate-right")),Mt.controlsUp=d(document.querySelectorAll(".navigate-up")),Mt.controlsDown=d(document.querySelectorAll(".navigate-down")),Mt.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Mt.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position")},r=document.createElement("div");return n.background&&(/\.(png|jpg|jpeg|gif|bmp|)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),t.appendChild(r),r}Mt.background.innerHTML="",Mt.background.classList.add("no-transition"),d(document.querySelectorAll(Lt)).forEach(function(t){var n=e(t,Mt.background);d(t.querySelectorAll("section")).forEach(function(t){e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",f,!1),window.addEventListener("orientationchange",f,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=St.dependencies.length;o>r;r++){var s=St.dependencies[r];(!s.condition||s.condition())&&(s.async?n.push(s.src):t.push(s.src),"function"==typeof s.callback&&head.ready(s.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],s.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),s(),I(),setTimeout(function(){v("ready",{indexh:At,indexv:qt,currentSlide:yt})},1)}function s(e){if(Mt.wrapper.classList.remove(St.transition),"object"==typeof e&&l(St,e),Pt===!1&&(St.transition="linear"),Mt.wrapper.classList.add(St.transition),Mt.wrapper.setAttribute("data-transition-speed",St.transitionSpeed),Mt.wrapper.setAttribute("data-background-transition",St.backgroundTransition),Mt.controls&&(Mt.controls.style.display=St.controls&&Mt.controls?"block":"none"),Mt.progress&&(Mt.progress.style.display=St.progress&&Mt.progress?"block":"none"),St.rtl?Mt.wrapper.classList.add("rtl"):Mt.wrapper.classList.remove("rtl"),St.center?Mt.wrapper.classList.add("center"):Mt.wrapper.classList.remove("center"),St.mouseWheel?(document.addEventListener("DOMMouseScroll",st,!1),document.addEventListener("mousewheel",st,!1)):(document.removeEventListener("DOMMouseScroll",st,!1),document.removeEventListener("mousewheel",st,!1)),St.rollingLinks?p():m(),St.theme&&Mt.theme){var t=Mt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];St.theme!==r&&(t=t.replace(n,St.theme),Mt.theme.setAttribute("href",t))}N()}function i(){zt=!0,window.addEventListener("hashchange",pt,!1),window.addEventListener("resize",mt,!1),St.touch&&(Mt.wrapper.addEventListener("touchstart",et,!1),Mt.wrapper.addEventListener("touchmove",tt,!1),Mt.wrapper.addEventListener("touchend",nt,!1),window.navigator.msPointerEnabled&&(Mt.wrapper.addEventListener("MSPointerDown",rt,!1),Mt.wrapper.addEventListener("MSPointerMove",ot,!1),Mt.wrapper.addEventListener("MSPointerUp",at,!1))),St.keyboard&&document.addEventListener("keydown",J,!1),St.progress&&Mt.progress&&Mt.progress.addEventListener("click",it,!1),St.controls&&Mt.controls&&["touchstart","click"].forEach(function(e){Mt.controlsLeft.forEach(function(t){t.addEventListener(e,ct,!1)}),Mt.controlsRight.forEach(function(t){t.addEventListener(e,lt,!1)}),Mt.controlsUp.forEach(function(t){t.addEventListener(e,dt,!1)}),Mt.controlsDown.forEach(function(t){t.addEventListener(e,ut,!1)}),Mt.controlsPrev.forEach(function(t){t.addEventListener(e,ft,!1)}),Mt.controlsNext.forEach(function(t){t.addEventListener(e,vt,!1)})})}function c(){zt=!1,document.removeEventListener("keydown",J,!1),window.removeEventListener("hashchange",pt,!1),window.removeEventListener("resize",mt,!1),Mt.wrapper.removeEventListener("touchstart",et,!1),Mt.wrapper.removeEventListener("touchmove",tt,!1),Mt.wrapper.removeEventListener("touchend",nt,!1),window.navigator.msPointerEnabled&&(Mt.wrapper.removeEventListener("MSPointerDown",rt,!1),Mt.wrapper.removeEventListener("MSPointerMove",ot,!1),Mt.wrapper.removeEventListener("MSPointerUp",at,!1)),St.progress&&Mt.progress&&Mt.progress.removeEventListener("click",it,!1),St.controls&&Mt.controls&&["touchstart","click"].forEach(function(e){Mt.controlsLeft.forEach(function(t){t.removeEventListener(e,ct,!1)}),Mt.controlsRight.forEach(function(t){t.removeEventListener(e,lt,!1)}),Mt.controlsUp.forEach(function(t){t.removeEventListener(e,dt,!1)}),Mt.controlsDown.forEach(function(t){t.removeEventListener(e,ut,!1)}),Mt.controlsPrev.forEach(function(t){t.removeEventListener(e,ft,!1)}),Mt.controlsNext.forEach(function(t){t.removeEventListener(e,vt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}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),l(n,t),Mt.wrapper.dispatchEvent(n)}function p(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(bt+" 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(bt+" 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=d(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 g(){if(Mt.wrapper){var e=Mt.wrapper.offsetWidth,t=Mt.wrapper.offsetHeight;e-=t*St.margin,t-=t*St.margin;var n=St.width,r=St.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Mt.slides.style.width=n+"px",Mt.slides.style.height=r+"px",Tt=Math.min(e/n,t/r),Tt=Math.max(Tt,St.minScale),Tt=Math.min(Tt,St.maxScale),void 0===Mt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Tt+") translate(50%, 50%)";Mt.slides.style.WebkitTransform=o,Mt.slides.style.MozTransform=o,Mt.slides.style.msTransform=o,Mt.slides.style.OTransform=o,Mt.slides.style.transform=o}else Mt.slides.style.zoom=Tt;for(var a=d(document.querySelectorAll(bt)),s=0,i=a.length;i>s;s++){var c=a[s];"none"!==c.style.display&&(c.style.top=St.center?c.classList.contains("stack")?0:Math.max(-(c.offsetHeight/2)-20,-r/2)+"px":"")}C()}}function y(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function b(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 L(){if(St.overview){K();var e=Mt.wrapper.classList.contains("overview");Mt.wrapper.classList.add("overview"),Mt.wrapper.classList.remove("exit-overview"),clearTimeout(Ot),clearTimeout(Yt),Ot=setTimeout(function(){for(var t=document.querySelectorAll(Lt),n=0,r=t.length;r>n;n++){var o=t[n],a=St.rtl?-105:105,s="translateZ(-2500px) translate("+(n-At)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=s,o.style.MozTransform=s,o.style.msTransform=s,o.style.OTransform=s,o.style.transform=s,o.classList.contains("stack"))for(var i=o.querySelectorAll("section"),c=0,l=i.length;l>c;c++){var d=n===At?qt:b(o),u=i[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",ht,!0)}else o.addEventListener("click",ht,!0)}g(),e||v("overviewshown",{indexh:At,indexv:qt,currentSlide:yt})},10)}}function w(){if(St.overview){clearTimeout(Ot),clearTimeout(Yt),Mt.wrapper.classList.remove("overview"),Mt.wrapper.classList.add("exit-overview"),Yt=setTimeout(function(){Mt.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(bt)),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",ht,!0)}P(At,qt),_(),v("overviewhidden",{indexh:At,indexv:qt,currentSlide:yt})}}function E(e){"boolean"==typeof e?e?L():w():S()?w():L()}function S(){return Mt.wrapper.classList.contains("overview")}function k(e){return e=e?e:yt,e&&!!e.parentNode.nodeName.match(/section/i)}function A(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function q(){var e=Mt.wrapper.classList.contains("paused");K(),Mt.wrapper.classList.add("paused"),e===!1&&v("paused")}function x(){var e=Mt.wrapper.classList.contains("paused");Mt.wrapper.classList.remove("paused"),_(),e&&v("resumed")}function T(){M()?x():q()}function M(){return Mt.wrapper.classList.contains("paused")}function P(e,t,n,r){gt=yt;var o=document.querySelectorAll(Lt);void 0===t&&(t=b(o[e])),gt&>.parentNode&>.parentNode.classList.contains("stack")&&y(gt.parentNode,qt);var a=xt.concat();xt.length=0;var s=At,i=qt;At=D(Lt,void 0===e?At:e),qt=D(wt,void 0===t?qt:t),g();e:for(var c=0,l=xt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===xt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(xt[c]),v(xt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());S()&&L(),W(1500);var f=o[At],p=f.querySelectorAll("section");if(yt=p[qt]||f,n!==void 0){var m=h(yt.querySelectorAll(".fragment"));d(m).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}At!==s||qt!==i?v("slidechanged",{indexh:At,indexv:qt,previousSlide:gt,currentSlide:yt,origin:r}):gt=null,gt&&(gt.classList.remove("present"),document.querySelector(Et).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(Lt+".stack"));for(e in t)t[e]&&y(t[e],0)},0)),H(gt),X(yt),R(),C(),O()}function N(){c(),i(),g(),kt=St.autoSlide,_(),n(),R(),C(),O()}function D(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){St.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(S()===!1){var s=Math.abs((t-o)%(r-3))||0;a.style.display=s>3?"none":"block"}var i=St.rtl&&!k(a);a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),t>o?a.classList.add(i?"future":"past"):o>t&&a.classList.add(i?"past":"future"),a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present");var c=n[t].getAttribute("data-state");c&&(xt=xt.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");kt=l?parseInt(l,10):St.autoSlide}else t=0;return t}function C(){if(St.progress&&Mt.progress){var e=d(document.querySelectorAll(Lt)),t=document.querySelectorAll(bt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),s=0;a.length>s;s++){if(a[s].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Mt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function R(){if(St.controls&&Mt.controls){var e=Y(),t=z();Mt.controlsLeft.concat(Mt.controlsRight).concat(Mt.controlsUp).concat(Mt.controlsDown).concat(Mt.controlsPrev).concat(Mt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Mt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Mt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Mt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Mt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Mt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Mt.controlsNext.forEach(function(e){e.classList.add("enabled")}),yt&&(t.prev&&Mt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Mt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),k(yt)?(t.prev&&Mt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Mt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Mt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Mt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function O(){d(Mt.background.childNodes).forEach(function(e,t){e.className=At>t?"past":t>At?"future":"present",d(e.childNodes).forEach(function(e,t){e.className=qt>t?"past":t>qt?"future":"present"})}),setTimeout(function(){Mt.background.classList.remove("no-transition")},1)}function Y(){var e=document.querySelectorAll(Lt),t=document.querySelectorAll(wt),n={left:At>0||St.loop,right:e.length-1>At||St.loop,up:qt>0,down:t.length-1>qt};if(St.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function z(){if(yt&&St.fragments){var e=yt.querySelectorAll(".fragment"),t=yt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function X(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function H(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(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 I(){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);P(o.h,o.v)}else P(At,qt)}else{var a=parseInt(t[0],10)||0,s=parseInt(t[1],10)||0;P(a,s)}}function W(e){if(St.history)if(clearTimeout(Rt),"number"==typeof e)Rt=setTimeout(W,e);else{var t="/";yt&&"string"==typeof yt.getAttribute("id")?t="/"+yt.getAttribute("id"):((At>0||qt>0)&&(t+=At),qt>0&&(t+="/"+qt)),window.location.hash=t}}function U(e){var t,n=At,r=qt;if(e){var o=k(e),a=o?e.parentNode:e,s=d(document.querySelectorAll(Lt));n=Math.max(s.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&yt){var i=yt.querySelectorAll(".fragment.visible");i.length&&(t=i.length)}return{h:n,v:r,f:t}}function F(){if(yt&&St.fragments){var e=h(yt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=yt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible"),v("fragmentshown",{fragment:e})}),R(),!0}}return!1}function j(){if(yt&&St.fragments){var e=h(yt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=yt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible"),v("fragmenthidden",{fragment:e})}),R(),!0}}return!1}function _(){clearTimeout(Ct),!kt||M()||S()||(Ct=setTimeout(G,kt))}function K(){clearTimeout(Ct)}function $(){St.rtl?(S()||F()===!1)&&Y().left&&P(At+1):(S()||j()===!1)&&Y().left&&P(At-1)}function V(){St.rtl?(S()||j()===!1)&&Y().right&&P(At-1):(S()||F()===!1)&&Y().right&&P(At+1)}function Z(){(S()||j()===!1)&&Y().up&&P(At,qt-1)}function Q(){(S()||F()===!1)&&Y().down&&P(At,qt+1)}function B(){if(j()===!1)if(Y().up)Z();else{var e=document.querySelector(Lt+".past:nth-child("+At+")");e&&(qt=e.querySelectorAll("section").length+1||void 0,At--,P(At,qt))}}function G(){F()===!1&&(Y().down?Q():V()),_()}function J(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(M()&&-1===[66,190,191].indexOf(e.keyCode))return!1;switch(e.keyCode){case 80:case 33:B();break;case 78:case 34:G();break;case 72:case 37:$();break;case 76:case 39:V();break;case 75:case 38:Z();break;case 74:case 40:Q();break;case 36:P(0);break;case 35:P(Number.MAX_VALUE);break;case 32:S()?w():e.shiftKey?B():G();break;case 13:S()?w():n=!1;break;case 66:case 190:case 191:T();break;case 70:A();break;default:n=!1}n?e.preventDefault():27===e.keyCode&&Pt&&(E(),e.preventDefault()),_()}}function et(e){Xt.startX=e.touches[0].clientX,Xt.startY=e.touches[0].clientY,Xt.startCount=e.touches.length,2===e.touches.length&&St.overview&&(Xt.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Xt.startX,y:Xt.startY}))}function tt(e){if(Xt.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===Xt.startCount&&St.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Xt.startX,y:Xt.startY});Math.abs(Xt.startSpan-r)>Xt.threshold&&(Xt.handled=!0,Xt.startSpan>r?L():w()),e.preventDefault()}else if(1===e.touches.length&&2!==Xt.startCount){var o=t-Xt.startX,a=n-Xt.startY;o>Xt.threshold&&Math.abs(o)>Math.abs(a)?(Xt.handled=!0,$()):-Xt.threshold>o&&Math.abs(o)>Math.abs(a)?(Xt.handled=!0,V()):a>Xt.threshold?(Xt.handled=!0,Z()):-Xt.threshold>a&&(Xt.handled=!0,Q()),e.preventDefault()}}}function nt(){Xt.handled=!1}function rt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],et(e))}function ot(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],tt(e))}function at(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],nt(e))}function st(e){clearTimeout(Dt),Dt=setTimeout(function(){var t=e.detail||-e.wheelDelta;t>0?G():B()},100)}function it(e){e.preventDefault();var t=d(document.querySelectorAll(Lt)).length,n=Math.floor(e.clientX/Mt.wrapper.offsetWidth*t);P(n)}function ct(e){e.preventDefault(),$()}function lt(e){e.preventDefault(),V()}function dt(e){e.preventDefault(),Z()}function ut(e){e.preventDefault(),Q()}function ft(e){e.preventDefault(),B()}function vt(e){e.preventDefault(),G()}function pt(){I()}function mt(){g()}function ht(e){if(zt&&S()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(w(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);P(n,r)}}}var gt,yt,bt=".reveal .slides section",Lt=".reveal .slides>section",wt=".reveal .slides>section.present>section",Et=".reveal .slides>section:first-child",St={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,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},kt=0,At=0,qt=0,xt=[],Tt=1,Mt={},Pt="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,Nt="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,Dt=0,Ct=0,Rt=0,Ot=0,Yt=0,zt=!1,Xt={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:s,sync:N,slide:P,left:$,right:V,up:Z,down:Q,prev:B,next:G,prevFragment:j,nextFragment:F,navigateTo:P,navigateLeft:$,navigateRight:V,navigateUp:Z,navigateDown:Q,navigatePrev:B,navigateNext:G,layout:g,availableRoutes:Y,availableFragments:z,toggleOverview:E,togglePause:T,isOverview:S,isPaused:M,addEventListeners:i,removeEventListeners:c,getIndices:U,getSlide:function(e,t){var n=document.querySelectorAll(Lt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return gt},getCurrentSlide:function(){return yt},getScale:function(){return Tt},getConfig:function(){return St},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(bt+".past")?!0:!1},isLastSlide:function(){return yt&&yt.classList.contains(".stack")?null==yt.querySelector(bt+".future")?!0:!1:null==document.querySelector(bt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Mt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Mt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}(); \ No newline at end of file +var Reveal=function(){"use strict";function e(e){return Nt||Pt?(window.addEventListener("load",g,!1),l(St,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Mt.theme=document.querySelector("#theme"),Mt.wrapper=document.querySelector(".reveal"),Mt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .background")||(Mt.background=document.createElement("div"),Mt.background.classList.add("background"),Mt.wrapper.appendChild(Mt.background)),!Mt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="",Mt.wrapper.appendChild(e)}if(!Mt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='',Mt.wrapper.appendChild(t)}if(!Mt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Mt.wrapper.appendChild(n)}if(!Mt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Mt.wrapper.appendChild(r)}Mt.progress=document.querySelector(".reveal .progress"),Mt.progressbar=document.querySelector(".reveal .progress span"),St.controls&&(Mt.controls=document.querySelector(".reveal .controls"),Mt.controlsLeft=d(document.querySelectorAll(".navigate-left")),Mt.controlsRight=d(document.querySelectorAll(".navigate-right")),Mt.controlsUp=d(document.querySelectorAll(".navigate-up")),Mt.controlsDown=d(document.querySelectorAll(".navigate-down")),Mt.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Mt.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position")},r=document.createElement("div");return n.background&&(/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),t.appendChild(r),r}Mt.background.innerHTML="",Mt.background.classList.add("no-transition"),d(document.querySelectorAll(Lt)).forEach(function(t){var n=e(t,Mt.background);d(t.querySelectorAll("section")).forEach(function(t){e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",f,!1),window.addEventListener("orientationchange",f,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=St.dependencies.length;o>r;r++){var s=St.dependencies[r];(!s.condition||s.condition())&&(s.async?n.push(s.src):t.push(s.src),"function"==typeof s.callback&&head.ready(s.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],s.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),s(),I(),setTimeout(function(){v("ready",{indexh:At,indexv:qt,currentSlide:yt})},1)}function s(e){if(Mt.wrapper.classList.remove(St.transition),"object"==typeof e&&l(St,e),Pt===!1&&(St.transition="linear"),Mt.wrapper.classList.add(St.transition),Mt.wrapper.setAttribute("data-transition-speed",St.transitionSpeed),Mt.wrapper.setAttribute("data-background-transition",St.backgroundTransition),Mt.controls&&(Mt.controls.style.display=St.controls&&Mt.controls?"block":"none"),Mt.progress&&(Mt.progress.style.display=St.progress&&Mt.progress?"block":"none"),St.rtl?Mt.wrapper.classList.add("rtl"):Mt.wrapper.classList.remove("rtl"),St.center?Mt.wrapper.classList.add("center"):Mt.wrapper.classList.remove("center"),St.mouseWheel?(document.addEventListener("DOMMouseScroll",st,!1),document.addEventListener("mousewheel",st,!1)):(document.removeEventListener("DOMMouseScroll",st,!1),document.removeEventListener("mousewheel",st,!1)),St.rollingLinks?p():m(),St.theme&&Mt.theme){var t=Mt.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];St.theme!==r&&(t=t.replace(n,St.theme),Mt.theme.setAttribute("href",t))}N()}function i(){zt=!0,window.addEventListener("hashchange",pt,!1),window.addEventListener("resize",mt,!1),St.touch&&(Mt.wrapper.addEventListener("touchstart",et,!1),Mt.wrapper.addEventListener("touchmove",tt,!1),Mt.wrapper.addEventListener("touchend",nt,!1),window.navigator.msPointerEnabled&&(Mt.wrapper.addEventListener("MSPointerDown",rt,!1),Mt.wrapper.addEventListener("MSPointerMove",ot,!1),Mt.wrapper.addEventListener("MSPointerUp",at,!1))),St.keyboard&&document.addEventListener("keydown",J,!1),St.progress&&Mt.progress&&Mt.progress.addEventListener("click",it,!1),St.controls&&Mt.controls&&["touchstart","click"].forEach(function(e){Mt.controlsLeft.forEach(function(t){t.addEventListener(e,ct,!1)}),Mt.controlsRight.forEach(function(t){t.addEventListener(e,lt,!1)}),Mt.controlsUp.forEach(function(t){t.addEventListener(e,dt,!1)}),Mt.controlsDown.forEach(function(t){t.addEventListener(e,ut,!1)}),Mt.controlsPrev.forEach(function(t){t.addEventListener(e,ft,!1)}),Mt.controlsNext.forEach(function(t){t.addEventListener(e,vt,!1)})})}function c(){zt=!1,document.removeEventListener("keydown",J,!1),window.removeEventListener("hashchange",pt,!1),window.removeEventListener("resize",mt,!1),Mt.wrapper.removeEventListener("touchstart",et,!1),Mt.wrapper.removeEventListener("touchmove",tt,!1),Mt.wrapper.removeEventListener("touchend",nt,!1),window.navigator.msPointerEnabled&&(Mt.wrapper.removeEventListener("MSPointerDown",rt,!1),Mt.wrapper.removeEventListener("MSPointerMove",ot,!1),Mt.wrapper.removeEventListener("MSPointerUp",at,!1)),St.progress&&Mt.progress&&Mt.progress.removeEventListener("click",it,!1),St.controls&&Mt.controls&&["touchstart","click"].forEach(function(e){Mt.controlsLeft.forEach(function(t){t.removeEventListener(e,ct,!1)}),Mt.controlsRight.forEach(function(t){t.removeEventListener(e,lt,!1)}),Mt.controlsUp.forEach(function(t){t.removeEventListener(e,dt,!1)}),Mt.controlsDown.forEach(function(t){t.removeEventListener(e,ut,!1)}),Mt.controlsPrev.forEach(function(t){t.removeEventListener(e,ft,!1)}),Mt.controlsNext.forEach(function(t){t.removeEventListener(e,vt,!1)})})}function l(e,t){for(var n in t)e[n]=t[n]}function d(e){return Array.prototype.slice.call(e)}function u(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}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),l(n,t),Mt.wrapper.dispatchEvent(n)}function p(){if(Pt&&!("msPerspective"in document.body.style))for(var e=document.querySelectorAll(bt+" 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(bt+" 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=d(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 g(){if(Mt.wrapper){var e=Mt.wrapper.offsetWidth,t=Mt.wrapper.offsetHeight;e-=t*St.margin,t-=t*St.margin;var n=St.width,r=St.height;if("string"==typeof n&&/%$/.test(n)&&(n=parseInt(n,10)/100*e),"string"==typeof r&&/%$/.test(r)&&(r=parseInt(r,10)/100*t),Mt.slides.style.width=n+"px",Mt.slides.style.height=r+"px",Tt=Math.min(e/n,t/r),Tt=Math.max(Tt,St.minScale),Tt=Math.min(Tt,St.maxScale),void 0===Mt.slides.style.zoom||navigator.userAgent.match(/(iphone|ipod|ipad|android)/gi)){var o="translate(-50%, -50%) scale("+Tt+") translate(50%, 50%)";Mt.slides.style.WebkitTransform=o,Mt.slides.style.MozTransform=o,Mt.slides.style.msTransform=o,Mt.slides.style.OTransform=o,Mt.slides.style.transform=o}else Mt.slides.style.zoom=Tt;for(var a=d(document.querySelectorAll(bt)),s=0,i=a.length;i>s;s++){var c=a[s];"none"!==c.style.display&&(c.style.top=St.center?c.classList.contains("stack")?0:Math.max(-(c.offsetHeight/2)-20,-r/2)+"px":"")}D()}}function y(e,t){"object"==typeof e&&"function"==typeof e.setAttribute&&e.setAttribute("data-previous-indexv",t||0)}function b(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 L(){if(St.overview){K();var e=Mt.wrapper.classList.contains("overview");Mt.wrapper.classList.add("overview"),Mt.wrapper.classList.remove("exit-overview"),clearTimeout(Ot),clearTimeout(Yt),Ot=setTimeout(function(){for(var t=document.querySelectorAll(Lt),n=0,r=t.length;r>n;n++){var o=t[n],a=St.rtl?-105:105,s="translateZ(-2500px) translate("+(n-At)*a+"%, 0%)";if(o.setAttribute("data-index-h",n),o.style.display="block",o.style.WebkitTransform=s,o.style.MozTransform=s,o.style.msTransform=s,o.style.OTransform=s,o.style.transform=s,o.classList.contains("stack"))for(var i=o.querySelectorAll("section"),c=0,l=i.length;l>c;c++){var d=n===At?qt:b(o),u=i[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",ht,!0)}else o.addEventListener("click",ht,!0)}g(),e||v("overviewshown",{indexh:At,indexv:qt,currentSlide:yt})},10)}}function w(){if(St.overview){clearTimeout(Ot),clearTimeout(Yt),Mt.wrapper.classList.remove("overview"),Mt.wrapper.classList.add("exit-overview"),Yt=setTimeout(function(){Mt.wrapper.classList.remove("exit-overview")},10);for(var e=d(document.querySelectorAll(bt)),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",ht,!0)}P(At,qt),_(),v("overviewhidden",{indexh:At,indexv:qt,currentSlide:yt})}}function E(e){"boolean"==typeof e?e?L():w():S()?w():L()}function S(){return Mt.wrapper.classList.contains("overview")}function k(e){return e=e?e:yt,e&&!!e.parentNode.nodeName.match(/section/i)}function A(){var e=document.body,t=e.requestFullScreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;t&&t.apply(e)}function q(){var e=Mt.wrapper.classList.contains("paused");K(),Mt.wrapper.classList.add("paused"),e===!1&&v("paused")}function x(){var e=Mt.wrapper.classList.contains("paused");Mt.wrapper.classList.remove("paused"),_(),e&&v("resumed")}function T(){M()?x():q()}function M(){return Mt.wrapper.classList.contains("paused")}function P(e,t,n,r){gt=yt;var o=document.querySelectorAll(Lt);void 0===t&&(t=b(o[e])),gt&>.parentNode&>.parentNode.classList.contains("stack")&&y(gt.parentNode,qt);var a=xt.concat();xt.length=0;var s=At,i=qt;At=C(Lt,void 0===e?At:e),qt=C(wt,void 0===t?qt:t),g();e:for(var c=0,l=xt.length;l>c;c++){for(var u=0;a.length>u;u++)if(a[u]===xt[c]){a.splice(u,1);continue e}document.documentElement.classList.add(xt[c]),v(xt[c])}for(;a.length;)document.documentElement.classList.remove(a.pop());S()&&L(),W(1500);var f=o[At],p=f.querySelectorAll("section");if(yt=p[qt]||f,n!==void 0){var m=h(yt.querySelectorAll(".fragment"));d(m).forEach(function(e,t){n>t?e.classList.add("visible"):e.classList.remove("visible")})}At!==s||qt!==i?v("slidechanged",{indexh:At,indexv:qt,previousSlide:gt,currentSlide:yt,origin:r}):gt=null,gt&&(gt.classList.remove("present"),document.querySelector(Et).classList.contains("present")&&setTimeout(function(){var e,t=d(document.querySelectorAll(Lt+".stack"));for(e in t)t[e]&&y(t[e],0)},0)),H(gt),X(yt),R(),D(),O()}function N(){c(),i(),g(),kt=St.autoSlide,_(),n(),R(),D(),O()}function C(e,t){var n=d(document.querySelectorAll(e)),r=n.length;if(r){St.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(S()===!1){var s=Math.abs((t-o)%(r-3))||0;a.style.display=s>3?"none":"block"}var i=St.rtl&&!k(a);a.classList.remove("past"),a.classList.remove("present"),a.classList.remove("future"),t>o?a.classList.add(i?"future":"past"):o>t&&a.classList.add(i?"past":"future"),a.querySelector("section")&&a.classList.add("stack")}n[t].classList.add("present");var c=n[t].getAttribute("data-state");c&&(xt=xt.concat(c.split(" ")));var l=n[t].getAttribute("data-autoslide");kt=l?parseInt(l,10):St.autoSlide}else t=0;return t}function D(){if(St.progress&&Mt.progress){var e=d(document.querySelectorAll(Lt)),t=document.querySelectorAll(bt+":not(.stack)").length,n=0;e:for(var r=0;e.length>r;r++){for(var o=e[r],a=d(o.querySelectorAll("section")),s=0;a.length>s;s++){if(a[s].classList.contains("present"))break e;n++}if(o.classList.contains("present"))break;o.classList.contains("stack")===!1&&n++}Mt.progressbar.style.width=n/(t-1)*window.innerWidth+"px"}}function R(){if(St.controls&&Mt.controls){var e=Y(),t=z();Mt.controlsLeft.concat(Mt.controlsRight).concat(Mt.controlsUp).concat(Mt.controlsDown).concat(Mt.controlsPrev).concat(Mt.controlsNext).forEach(function(e){e.classList.remove("enabled"),e.classList.remove("fragmented")}),e.left&&Mt.controlsLeft.forEach(function(e){e.classList.add("enabled")}),e.right&&Mt.controlsRight.forEach(function(e){e.classList.add("enabled")}),e.up&&Mt.controlsUp.forEach(function(e){e.classList.add("enabled")}),e.down&&Mt.controlsDown.forEach(function(e){e.classList.add("enabled")}),(e.left||e.up)&&Mt.controlsPrev.forEach(function(e){e.classList.add("enabled")}),(e.right||e.down)&&Mt.controlsNext.forEach(function(e){e.classList.add("enabled")}),yt&&(t.prev&&Mt.controlsPrev.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Mt.controlsNext.forEach(function(e){e.classList.add("fragmented","enabled")}),k(yt)?(t.prev&&Mt.controlsUp.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Mt.controlsDown.forEach(function(e){e.classList.add("fragmented","enabled")})):(t.prev&&Mt.controlsLeft.forEach(function(e){e.classList.add("fragmented","enabled")}),t.next&&Mt.controlsRight.forEach(function(e){e.classList.add("fragmented","enabled")})))}}function O(){d(Mt.background.childNodes).forEach(function(e,t){e.className=At>t?"past":t>At?"future":"present",d(e.childNodes).forEach(function(e,t){e.className=qt>t?"past":t>qt?"future":"present"})}),setTimeout(function(){Mt.background.classList.remove("no-transition")},1)}function Y(){var e=document.querySelectorAll(Lt),t=document.querySelectorAll(wt),n={left:At>0||St.loop,right:e.length-1>At||St.loop,up:qt>0,down:t.length-1>qt};if(St.rtl){var r=n.left;n.left=n.right,n.right=r}return n}function z(){if(yt&&St.fragments){var e=yt.querySelectorAll(".fragment"),t=yt.querySelectorAll(".fragment:not(.visible)");return{prev:e.length-t.length>0,next:!!t.length}}return{prev:!1,next:!1}}function X(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-autoplay")&&e.play()}),d(e.querySelectorAll('iframe[src*="youtube.com/embed/"]')).forEach(function(e){e.hasAttribute("data-autoplay")&&e.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}))}function H(e){e&&(d(e.querySelectorAll("video, audio")).forEach(function(e){e.hasAttribute("data-ignore")||e.pause()}),d(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 I(){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);P(o.h,o.v)}else P(At,qt)}else{var a=parseInt(t[0],10)||0,s=parseInt(t[1],10)||0;P(a,s)}}function W(e){if(St.history)if(clearTimeout(Rt),"number"==typeof e)Rt=setTimeout(W,e);else{var t="/";yt&&"string"==typeof yt.getAttribute("id")?t="/"+yt.getAttribute("id"):((At>0||qt>0)&&(t+=At),qt>0&&(t+="/"+qt)),window.location.hash=t}}function U(e){var t,n=At,r=qt;if(e){var o=k(e),a=o?e.parentNode:e,s=d(document.querySelectorAll(Lt));n=Math.max(s.indexOf(a),0),o&&(r=Math.max(d(e.parentNode.querySelectorAll("section")).indexOf(e),0))}if(!e&&yt){var i=yt.querySelectorAll(".fragment.visible");i.length&&(t=i.length)}return{h:n,v:r,f:t}}function F(){if(yt&&St.fragments){var e=h(yt.querySelectorAll(".fragment:not(.visible)"));if(e.length){var t=e[0].getAttribute("data-fragment-index");return e=yt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.add("visible"),v("fragmentshown",{fragment:e})}),R(),!0}}return!1}function j(){if(yt&&St.fragments){var e=h(yt.querySelectorAll(".fragment.visible"));if(e.length){var t=e[e.length-1].getAttribute("data-fragment-index");return e=yt.querySelectorAll('.fragment[data-fragment-index="'+t+'"]'),d(e).forEach(function(e){e.classList.remove("visible"),v("fragmenthidden",{fragment:e})}),R(),!0}}return!1}function _(){clearTimeout(Dt),!kt||M()||S()||(Dt=setTimeout(G,kt))}function K(){clearTimeout(Dt)}function $(){St.rtl?(S()||F()===!1)&&Y().left&&P(At+1):(S()||j()===!1)&&Y().left&&P(At-1)}function V(){St.rtl?(S()||j()===!1)&&Y().right&&P(At-1):(S()||F()===!1)&&Y().right&&P(At+1)}function Z(){(S()||j()===!1)&&Y().up&&P(At,qt-1)}function Q(){(S()||F()===!1)&&Y().down&&P(At,qt+1)}function B(){if(j()===!1)if(Y().up)Z();else{var e=document.querySelector(Lt+".past:nth-child("+At+")");e&&(qt=e.querySelectorAll("section").length+1||void 0,At--,P(At,qt))}}function G(){F()===!1&&(Y().down?Q():V()),_()}function J(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(M()&&-1===[66,190,191].indexOf(e.keyCode))return!1;switch(e.keyCode){case 80:case 33:B();break;case 78:case 34:G();break;case 72:case 37:$();break;case 76:case 39:V();break;case 75:case 38:Z();break;case 74:case 40:Q();break;case 36:P(0);break;case 35:P(Number.MAX_VALUE);break;case 32:S()?w():e.shiftKey?B():G();break;case 13:S()?w():n=!1;break;case 66:case 190:case 191:T();break;case 70:A();break;default:n=!1}n?e.preventDefault():27===e.keyCode&&Pt&&(E(),e.preventDefault()),_()}}function et(e){Xt.startX=e.touches[0].clientX,Xt.startY=e.touches[0].clientY,Xt.startCount=e.touches.length,2===e.touches.length&&St.overview&&(Xt.startSpan=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Xt.startX,y:Xt.startY}))}function tt(e){if(Xt.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===Xt.startCount&&St.overview){var r=u({x:e.touches[1].clientX,y:e.touches[1].clientY},{x:Xt.startX,y:Xt.startY});Math.abs(Xt.startSpan-r)>Xt.threshold&&(Xt.handled=!0,Xt.startSpan>r?L():w()),e.preventDefault()}else if(1===e.touches.length&&2!==Xt.startCount){var o=t-Xt.startX,a=n-Xt.startY;o>Xt.threshold&&Math.abs(o)>Math.abs(a)?(Xt.handled=!0,$()):-Xt.threshold>o&&Math.abs(o)>Math.abs(a)?(Xt.handled=!0,V()):a>Xt.threshold?(Xt.handled=!0,Z()):-Xt.threshold>a&&(Xt.handled=!0,Q()),e.preventDefault()}}}function nt(){Xt.handled=!1}function rt(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],et(e))}function ot(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],tt(e))}function at(e){e.pointerType===e.MSPOINTER_TYPE_TOUCH&&(e.touches=[{clientX:e.clientX,clientY:e.clientY}],nt(e))}function st(e){clearTimeout(Ct),Ct=setTimeout(function(){var t=e.detail||-e.wheelDelta;t>0?G():B()},100)}function it(e){e.preventDefault();var t=d(document.querySelectorAll(Lt)).length,n=Math.floor(e.clientX/Mt.wrapper.offsetWidth*t);P(n)}function ct(e){e.preventDefault(),$()}function lt(e){e.preventDefault(),V()}function dt(e){e.preventDefault(),Z()}function ut(e){e.preventDefault(),Q()}function ft(e){e.preventDefault(),B()}function vt(e){e.preventDefault(),G()}function pt(){I()}function mt(){g()}function ht(e){if(zt&&S()){e.preventDefault();for(var t=e.target;t&&!t.nodeName.match(/section/gi);)t=t.parentNode;if(t&&!t.classList.contains("disabled")&&(w(),t.nodeName.match(/section/gi))){var n=parseInt(t.getAttribute("data-index-h"),10),r=parseInt(t.getAttribute("data-index-v"),10);P(n,r)}}}var gt,yt,bt=".reveal .slides section",Lt=".reveal .slides>section",wt=".reveal .slides>section.present>section",Et=".reveal .slides>section:first-child",St={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,theme:null,transition:"default",transitionSpeed:"default",backgroundTransition:"default",dependencies:[]},kt=0,At=0,qt=0,xt=[],Tt=1,Mt={},Pt="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,Nt="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,Ct=0,Dt=0,Rt=0,Ot=0,Yt=0,zt=!1,Xt={startX:0,startY:0,startSpan:0,startCount:0,handled:!1,threshold:80};return{initialize:e,configure:s,sync:N,slide:P,left:$,right:V,up:Z,down:Q,prev:B,next:G,prevFragment:j,nextFragment:F,navigateTo:P,navigateLeft:$,navigateRight:V,navigateUp:Z,navigateDown:Q,navigatePrev:B,navigateNext:G,layout:g,availableRoutes:Y,availableFragments:z,toggleOverview:E,togglePause:T,isOverview:S,isPaused:M,addEventListeners:i,removeEventListeners:c,getIndices:U,getSlide:function(e,t){var n=document.querySelectorAll(Lt)[e],r=n&&n.querySelectorAll("section");return t!==void 0?r?r[t]:void 0:n},getPreviousSlide:function(){return gt},getCurrentSlide:function(){return yt},getScale:function(){return Tt},getConfig:function(){return St},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(bt+".past")?!0:!1},isLastSlide:function(){return yt&&yt.classList.contains(".stack")?null==yt.querySelector(bt+".future")?!0:!1:null==document.querySelector(bt+".future")?!0:!1},addEventListener:function(e,t,n){"addEventListener"in window&&(Mt.wrapper||document.querySelector(".reveal")).addEventListener(e,t,n)},removeEventListener:function(e,t,n){"addEventListener"in window&&(Mt.wrapper||document.querySelector(".reveal")).removeEventListener(e,t,n)}}}(); \ No newline at end of file -- cgit v1.2.3