lca2019-talk/js/reveal.min.js

8 lines
25 KiB
JavaScript
Raw Normal View History

2013-03-17 12:10:04 +00:00
/*!
* reveal.js 2.5.0 (2013-07-29, 14:30)
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 Ht||Xt?(window.addEventListener("load",A,!1),u(Dt,e),a(),i(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){zt.theme=document.querySelector("#theme"),zt.wrapper=document.querySelector(".reveal"),zt.slides=document.querySelector(".reveal .slides"),zt.background=n(zt.wrapper,"div","backgrounds",null),zt.progress=n(zt.wrapper,"div","progress","<span></span>"),zt.progressbar=zt.progress.querySelector("span"),n(zt.wrapper,"aside","controls",'<div class="navigate-left"></div><div class="navigate-right"></div><div class="navigate-up"></div><div class="navigate-down"></div>'),n(zt.wrapper,"div","state-background",null),n(zt.wrapper,"div","pause-overlay",null),Dt.controls&&(zt.controls=document.querySelector(".reveal .controls"),zt.controlsLeft=f(document.querySelectorAll(".navigate-left")),zt.controlsRight=f(document.querySelectorAll(".navigate-right")),zt.controlsUp=f(document.querySelectorAll(".navigate-up")),zt.controlsDown=f(document.querySelectorAll(".navigate-down")),zt.controlsPrev=f(document.querySelectorAll(".navigate-prev")),zt.controlsNext=f(document.querySelectorAll(".navigate-next")))}function n(e,t,n,o){var a=e.querySelector("."+n);return a||(a=r(t,n,o),e.appendChild(a)),a}function r(e,t,n){var r=document.createElement(e);return r.classList.add(t),null!==n&&(r.innerHTML=n),r}function o(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundImage:e.getAttribute("data-background-image"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position"),backgroundTransition:e.getAttribute("data-background-transition")},r=document.createElement("div");return r.className="slide-background",n.background&&(/^(http|file|\/\/)/gi.test(n.background)||/\.(png|jpg|jpeg|gif|bmp)$/gi.test(n.background)?r.style.backgroundImage="url("+n.background+")":r.style.background=n.background),n.backgroundSize&&(r.style.backgroundSize=n.backgroundSize),n.backgroundImage&&(r.style.backgroundImage='url("'+n.backgroundImage+'")'),n.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),n.backgroundTransition&&r.setAttribute("data-background-transition",n.backgroundTransition),t.appendChild(r),r}m()&&document.body.classList.add("print-pdf"),zt.background.innerHTML="",zt.background.classList.add("no-transition"),f(document.querySelectorAll(Mt)).forEach(function(t){var n;n=m()?e(t,t):e(t,zt.background),f(t.querySelectorAll("section")).forEach(function(t){m()?e(t,t):e(t,n)})})}function a(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",g,!1),window.addEventListener("orientationchange",g,!1))}function i(){function e(){n.length&&head.js.apply(null,n),s()}for(var t=[],n=[],r=0,o=Dt.dependencies.length;o>r;r++){var a=Dt.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 s(){t(),c(),V(),setTimeout(function(){h("ready",{indexh:Rt,indexv:It,currentSlide:xt})},1)}function c(e){if(zt.wrapper.classList.remove(Dt.transition),"object"==typeof e&&u(Dt,e),Xt===!1&&(Dt.transition="linear"),zt.wrapper.classList.add(Dt.transition),zt.wrapper.setAttribute("data-transition-speed",Dt.transitionSpeed),zt.wrapper.setAttribute("data-background-transition",Dt.backgroundTransition),zt.controls&&(zt.controls.style.display=Dt.controls&&zt.controls?"block":"none"),zt.progress&&(zt.progress.style.display=Dt.progress&&zt.progress?"block":"none"),Dt.rtl?zt.wrapper.classList.add("rtl"):zt.wrapper.classList.remove("rtl"),Dt.center?zt.wrapper.classList.add("center"):zt.wrapper.classList.remove("cente