2013-10-10 15:20:54 +02:00
|
|
|
var Reveal=function(){"use strict";function a(a){return b(),Mb||Lb?(window.addEventListener("load",C,!1),l(Sb,a),s(),c(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function b(){Lb="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,Mb="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,Nb=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function c(){function a(){c.length&&head.js.apply(null,c),d()}for(var b=[],c=[],e=0,f=Sb.dependencies.length;f>e;e++){var g=Sb.dependencies[e];(!g.condition||g.condition())&&(g.async?c.push(g.src):b.push(g.src),"function"==typeof g.callback&&head.ready(g.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],g.callback))}b.length?(head.ready(a),head.js.apply(null,b)):a()}function d(){f(),e(),i(),ab(),setTimeout(function(){Xb.slides.classList.remove("no-transition"),Tb=!0,u("ready",{indexh:Hb,indexv:Ib,currentSlide:Kb})},1)}function e(){var a=m(document.querySelectorAll(Pb));a.forEach(function(a){var b=m(a.querySelectorAll("section"));b.forEach(function(a,b){b>0&&a.classList.add("future")})})}function f(){Xb.theme=document.querySelector("#theme"),Xb.wrapper=document.querySelector(".reveal"),Xb.slides=document.querySelector(".reveal .slides"),Xb.slides.classList.add("no-transition"),Xb.background=g(Xb.wrapper,"div","backgrounds",null),Xb.progress=g(Xb.wrapper,"div","progress","<span></span>"),Xb.progressbar=Xb.progress.querySelector("span"),g(Xb.wrapper,"aside","controls",'<div class="navigate-left"></div><div class="navigate-right"></div><div class="navigate-up"></div><div class="navigate-down"></div>'),g(Xb.wrapper,"div","state-background",null),g(Xb.wrapper,"div","pause-overlay",null),Xb.controls=document.querySelector(".reveal .controls"),Xb.controlsLeft=m(document.querySelectorAll(".navigate-left")),Xb.controlsRight=m(document.querySelectorAll(".navigate-right")),Xb.controlsUp=m(document.querySelectorAll(".navigate-up")),Xb.controlsDown=m(document.querySelectorAll(".navigate-down")),Xb.controlsPrev=m(document.querySelectorAll(".navigate-prev")),Xb.controlsNext=m(document.querySelectorAll(".navigate-next"))}function g(a,b,c,d){var e=a.querySelector("."+c);return e||(e=document.createElement(b),e.classList.add(c),null!==d&&(e.innerHTML=d),a.appendChild(e)),e}function h(){function a(a,b){var c={background:a.getAttribute("data-background"),backgroundSize:a.getAttribute("data-background-size"),backgroundImage:a.getAttribute("data-background-image"),backgroundColor:a.getAttribute("data-background-color"),backgroundRepeat:a.getAttribute("data-background-repeat"),backgroundPosition:a.getAttribute("data-background-position"),backgroundTransition:a.getAttribute("data-background-transition")},d=document.createElement("div");return d.className="slide-background",c.background&&(/^(http|file|\/\/)/gi.test(c.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(c.background)?d.style.backgroundImage="url("+c.background+")":d.style.background=c.background),c.backgroundSize&&(d.style.backgroundSize=c.backgroundSize),c.backgroundImage&&(d.style.backgroundImage='url("'+c.backgroundImage+'")'),c.backgroundColor&&(d.style.backgroundColor=c.backgroundColor),c.backgroundRepeat&&(d.style.backgroundRepeat=c.backgroundRepeat),c.backgroundPosition&&(d.style.backgroundPosition=c.backgroundPosition),c.backgroundTransition&&d.setAttribute("data-background-transition",c.backgroundTransition),b.appendChild(d),d}r()&&document.body.classList.add("print-pdf"),Xb.background.innerHTML="",Xb.background.classList.add("no-transition"),m(document.querySelectorAll(Pb)).forEach(function(b){var c;c=r()?a(b,b):a(b,Xb.background),m(b.querySelectorAll("section")).forEach(function(b){r()?a(b,b):a(b,c)})}),Sb.parallaxBackgroundImage?(Xb.background.style.backgroundImage='url("'+Sb.parallaxBackgroundImage+'")',Xb.background.style.backgroundSize=Sb.
|