fa20-bt/js/reveal.min.js

8 lines
20 KiB
JavaScript
Raw Normal View History

2013-03-17 12:10:04 +00:00
/*!
* reveal.js 2.4.0 (2013-04-27, 17:34)
2013-03-17 12:10:04 +00:00
* 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 xt||qt?(window.addEventListener("load",h,!1),c(yt,e),n(),r(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(At.theme=document.querySelector("#theme"),At.wrapper=document.querySelector(".reveal"),At.slides=document.querySelector(".reveal .slides"),!At.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="<span></span>",At.wrapper.appendChild(e)}if(!At.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>',At.wrapper.appendChild(t)}if(!At.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),At.wrapper.appendChild(n)}if(!At.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),At.wrapper.appendChild(r)}At.progress=document.querySelector(".reveal .progress"),At.progressbar=document.querySelector(".reveal .progress span"),yt.controls&&(At.controls=document.querySelector(".reveal .controls"),At.controlsLeft=l(document.querySelectorAll(".navigate-left")),At.controlsRight=l(document.querySelectorAll(".navigate-right")),At.controlsUp=l(document.querySelectorAll(".navigate-up")),At.controlsDown=l(document.querySelectorAll(".navigate-down")),At.controlsPrev=l(document.querySelectorAll(".navigate-prev")),At.controlsNext=l(document.querySelectorAll(".navigate-next")))}function n(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",u,!1),window.addEventListener("orientationchange",u,!1))}function r(){function e(){n.length&&head.js.apply(null,n),o()}for(var t=[],n=[],r=0,s=yt.dependencies.length;s>r;r++){var a=yt.dependencies[r];(!a.condition||a.condition())&&(a.async?n.push(a.src):t.push(a.src),"function"==typeof a.callback&&head.ready(a.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],a.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function o(){t(),s(),Y(),setTimeout(function(){v("ready",{indexh:wt,indexv:bt,currentSlide:ft})},1)}function s(e){if(At.wrapper.classList.remove(yt.transition),"object"==typeof e&&c(yt,e),qt===!1&&(yt.transition="linear"),At.wrapper.classList.add(yt.transition),At.wrapper.setAttribute("data-transition-speed",yt.transitionSpeed),At.controls&&(At.controls.style.display=yt.controls&&At.controls?"block":"none"),At.progress&&(At.progress.style.display=yt.progress&&At.progress?"block":"none"),yt.rtl?At.wrapper.classList.add("rtl"):At.wrapper.classList.remove("rtl"),yt.center?At.wrapper.classList.add("center"):At.wrapper.classList.remove("center"),yt.mouseWheel?(document.addEventListener("DOMMouseScroll",tt,!1),document.addEventListener("mousewheel",tt,!1)):(document.removeEventListener("DOMMouseScroll",tt,!1),document.removeEventListener("mousewheel",tt,!1)),yt.rollingLinks?f():p(),yt.theme&&At.theme){var t=At.theme.getAttribute("href"),n=/[^\/]*?(?=\.css)/,r=t.match(n)[0];yt.theme!==r&&(t=t.replace(n,yt.theme),At.theme.setAttribute("href",t))}M()}function a(){Dt=!0,window.addEventListener("hashchange",lt,!1),window.addEventListener("resize",dt,!1),yt.touch&&(At.wrapper.addEventListener("touchstart",Q,!1),At.wrapper.addEventListener("touchmove",V,!1),At.wrapper.addEventListener("touchend",B,!1),window.navigator.msPointerEnabled&&(At.wrapper.addEventListener("MSPointerDown",G,!1),At.wrapper.addEventListener("MSPointerMove",J,!1),At.wrapper.addEventListener("MSPointerUp",et,!1))),yt.keyboard&&document.addEventListener("keydown",Z,!1),yt.progress&&At.progress&&At.progress.addEventListener("click",nt,!1),yt.controls&&At.controls&&["touchstart","click"].forEach(function(e){At.controlsLeft.forEach(function(t){t.addEventListener(e,rt,!1)}),At.controlsRight.forEach(function(t){t.addEventListener(e,ot,!1)}),At.controlsUp.forEach(function(t){t.addEventListener(e,st,!1)}),At.controlsD