1
0
Fork 0
why-cant-we-deploy-today/js/reveal.min.js

9 lines
33 KiB
JavaScript
Raw Normal View History

2013-03-17 13:10:04 +01:00
/*!
* reveal.js 2.6.2 (2014-03-27, 16:30)
2013-03-17 13:10:04 +01:00
* http://lab.hakim.se/reveal-js
* MIT licensed
*
2014-02-16 17:12:05 +01:00
* Copyright (C) 2014 Hakim El Hattab, http://hakim.se
2013-03-17 13:10:04 +01:00
*/
var Reveal=function(){"use strict";function a(a){if(b(),!fc.transforms2d&&!fc.transforms3d)return void document.body.setAttribute("class","no-transforms");window.addEventListener("load",B,!1);var d=Reveal.getQueryHash();"undefined"!=typeof d.dependencies&&delete d.dependencies,l(ac,a),l(ac,d),s(),c()}function b(){fc.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,fc.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,fc.requestAnimationFrameMethod=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,fc.requestAnimationFrame="function"==typeof fc.requestAnimationFrameMethod,fc.canvas=!!document.createElement("canvas").getContext,Wb=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=ac.dependencies.length;h>g;g++){var i=ac.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(),R(),i(),db(),Y(!0),setTimeout(function(){ec.slides.classList.remove("no-transition"),bc=!0,u("ready",{indexh:Rb,indexv:Sb,currentSlide:Ub})},1)}function e(){ec.theme=document.querySelector("#theme"),ec.wrapper=document.querySelector(".reveal"),ec.slides=document.querySelector(".reveal .slides"),ec.slides.classList.add("no-transition"),ec.background=g(ec.wrapper,"div","backgrounds",null),ec.progress=g(ec.wrapper,"div","progress","<span></span>"),ec.progressbar=ec.progress.querySelector("span"),g(ec.wrapper,"aside","controls",'<div class="navigate-left"></div><div class="navigate-right"></div><div class="navigate-up"></div><div class="navigate-down"></div>'),ec.slideNumber=g(ec.wrapper,"div","slide-number",""),g(ec.wrapper,"div","state-background",null),g(ec.wrapper,"div","pause-overlay",null),ec.controls=document.querySelector(".reveal .controls"),ec.wrapper.setAttribute("role","application"),ec.controlsLeft=m(document.querySelectorAll(".navigate-left")),ec.controlsRight=m(document.querySelectorAll(".navigate-right")),ec.controlsUp=m(document.querySelectorAll(".navigate-up")),ec.controlsDown=m(document.querySelectorAll(".navigate-down")),ec.controlsPrev=m(document.querySelectorAll(".navigate-prev")),ec.controlsNext=m(document.querySelectorAll(".navigate-next")),ec.statusDiv=f()}function f(){var a=document.getElementById("statusDiv");if(!a){a=document.createElement("div");var b=a.style;b.position="absolute",b.height="1px",b.width="1px",b.overflow="hidden",b.clip="rect( 1px, 1px, 1px, 1px )",a.setAttribute("id","statusDiv"),a.setAttribute("aria-live","polite"),a.setAttribute("aria-atomic","true"),ec.wrapper.appendChild(a)}return a}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)||/\.(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.
},Qb.prototype.on=function(a,b){this.canvas.addEventListener(a,b,!1)},Qb.prototype.off=function(a,b){this.canvas.removeEventListener(a,b,!1)},Qb.prototype.destroy=function(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)},{initialize:a,configure:i,sync:Q,slide:P,left:ob,right:pb,up:qb,down:rb,prev:sb,next:tb,navigateFragment:hb,prevFragment:jb,nextFragment:ib,navigateTo:P,navigateLeft:ob,navigateRight:pb,navigateUp:qb,navigateDown:rb,navigatePrev:sb,navigateNext:tb,layout:B,availableRoutes:$,availableFragments:_,toggleOverview:H,togglePause:N,isOverview:I,isPaused:O,addEventListeners:j,removeEventListeners:k,getIndices:fb,getSlide:function(a,b){var c=document.querySelectorAll(Zb)[a],d=c&&c.querySelectorAll("section");return"undefined"!=typeof b?d?d[b]:void 0:c},getPreviousSlide:function(){return Tb},getCurrentSlide:function(){return Ub},getScale:function(){return dc},getConfig:function(){return ac},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]=unescape(c),"null"===c?a[b]=null:"true"===c?a[b]=!0:"false"===c?a[b]=!1:c.match(/^\d+$/)&&(a[b]=parseFloat(c))}return a},isFirstSlide:function(){return null==document.querySelector(Yb+".past")?!0:!1},isLastSlide:function(){return Ub?Ub.nextElementSibling?!1:J(Ub)&&Ub.parentNode.nextElementSibling?!1:!0:!1},isReady:function(){return bc},addEventListener:function(a,b,c){"addEventListener"in window&&(ec.wrapper||document.querySelector(".reveal")).addEventListener(a,b,c)},removeEventListener:function(a,b,c){"addEventListener"in window&&(ec.wrapper||document.querySelector(".reveal")).removeEventListener(a,b,c)}}}();