2014-03-12 08:51:51 +01:00
|
|
|
var Reveal=function(){"use strict";function a(a){if(b(),!jc.transforms2d&&!jc.transforms3d)return document.body.setAttribute("class","no-transforms"),void 0;window.addEventListener("load",B,!1);var d=Reveal.getQueryHash();"undefined"!=typeof d.dependencies&&delete d.dependencies,k(ec,a),k(ec,d),s(),c()}function b(){jc.transforms3d="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,jc.transforms2d="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,jc.requestAnimationFrameMethod=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,jc.requestAnimationFrame="function"==typeof jc.requestAnimationFrameMethod,jc.canvas=!!document.createElement("canvas").getContext,$b=navigator.userAgent.match(/(iphone|ipod|android)/gi)}function c(){function a(){e.length&&head.js.apply(null,e),d()}function b(b){head.ready(b.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],function(){"function"==typeof b.callback&&b.callback.apply(this),0===--f&&a()})}for(var c=[],e=[],f=0,g=0,h=ec.dependencies.length;h>g;g++){var i=ec.dependencies[g];(!i.condition||i.condition())&&(i.async?e.push(i.src):c.push(i.src),b(i))}c.length?(f=c.length,head.js.apply(null,c)):a()}function d(){e(),T(),h(),fb(),$(!0),setTimeout(function(){ic.slides.classList.remove("no-transition"),fc=!0,u("ready",{indexh:Vb,indexv:Wb,currentSlide:Yb})},1)}function e(){ic.theme=document.querySelector("#theme"),ic.wrapper=document.querySelector(".reveal"),ic.slides=document.querySelector(".reveal .slides"),ic.slides.classList.add("no-transition"),ic.background=f(ic.wrapper,"div","backgrounds",null),ic.progress=f(ic.wrapper,"div","progress","<span></span>"),ic.progressbar=ic.progress.querySelector("span"),f(ic.wrapper,"aside","controls",'<div class="navigate-left"></div><div class="navigate-right"></div><div class="navigate-up"></div><div class="navigate-down"></div>'),ic.slideNumber=f(ic.wrapper,"div","slide-number",""),f(ic.wrapper,"div","state-background",null),f(ic.wrapper,"div","pause-overlay",null),ic.controls=document.querySelector(".reveal .controls"),ic.controlsLeft=l(document.querySelectorAll(".navigate-left")),ic.controlsRight=l(document.querySelectorAll(".navigate-right")),ic.controlsUp=l(document.querySelectorAll(".navigate-up")),ic.controlsDown=l(document.querySelectorAll(".navigate-down")),ic.controlsPrev=l(document.querySelectorAll(".navigate-prev")),ic.controlsNext=l(document.querySelectorAll(".navigate-next"))}function f(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 g(){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)||/\.(svg|png|jpg|jpeg|gif|bmp)$/gi.test(c.background)?d.style.backgroundImage="url("+c.background+")":d.style.background=c.background),(c.background||c.backgroundColor||c.backgroundImage)&&d.setAttribute("data-background-hash",c.background+c.backgroundSize+c.backgroundImage+c.backgroundColor+c.backgroundRepeat+c.backgroundPosition+c.backgroundTransition),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.backgrou
|
|
|
|
},Ub.prototype.on=function(a,b){this.canvas.addEventListener(a,b,!1)},Ub.prototype.off=function(a,b){this.canvas.removeEventListener(a,b,!1)},Ub.prototype.destroy=function(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)},{initialize:a,configure:h,sync:S,slide:R,left:sb,right:tb,up:ub,down:vb,prev:wb,next:xb,navigateFragment:lb,prevFragment:nb,nextFragment:mb,navigateTo:R,navigateLeft:sb,navigateRight:tb,navigateUp:ub,navigateDown:vb,navigatePrev:wb,navigateNext:xb,layout:B,availableRoutes:ab,availableFragments:bb,toggleOverview:H,togglePause:N,toggleAutoSlide:P,isOverview:I,isPaused:O,isAutoSliding:Q,addEventListeners:i,removeEventListeners:j,getState:ib,setState:jb,getIndices:hb,getSlide:function(a,b){var c=document.querySelectorAll(bc)[a],d=c&&c.querySelectorAll("section");return"undefined"!=typeof b?d?d[b]:void 0:c},getPreviousSlide:function(){return Xb},getCurrentSlide:function(){return Yb},getScale:function(){return hc},getConfig:function(){return ec},getQueryHash:function(){var a={};location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,function(b){a[b.split("=").shift()]=b.split("=").pop()});for(var b in a){var c=a[b];a[b]=m(unescape(c))}return a},isFirstSlide:function(){return null==document.querySelector(ac+".past")?!0:!1},isLastSlide:function(){return Yb?Yb.nextElementSibling?!1:J(Yb)&&Yb.parentNode.nextElementSibling?!1:!0:!1},isReady:function(){return fc},addEventListener:function(a,b,c){"addEventListener"in window&&(ic.wrapper||document.querySelector(".reveal")).addEventListener(a,b,c)},removeEventListener:function(a,b,c){"addEventListener"in window&&(ic.wrapper||document.querySelector(".reveal")).removeEventListener(a,b,c)}}}();
|