2013-06-04 19:42:33 +02:00
|
|
|
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="<span></span>",Mt.wrapper.appendChild(e)}if(!Mt.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>',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=e.getAttribute("data-background"),r=document.createElement("div");return n&&(/\.(png|jpg|jpeg|gif|bmp|)$/gi.test(n)?r.style.backgroundImage="url("+n+")":r.style.background=n),t.appendChild(r),r}Mt.background.innerHTML="",d(document.querySelectorAll(wt)).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(),W(),setTimeout(function(){v("ready",{indexh:qt,indexv:kt,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.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(){Xt=!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
|