meetup-ansible-mrs/2019-07/js/reveal.min.js

10 lines
52 KiB
JavaScript
Raw Normal View History

2019-07-03 23:59:50 +02:00
/*!
* reveal.js 3.6.0 (2019-03-29, 08:35)
* http://revealjs.com
* MIT licensed
*
* Copyright (C) 2017 Hakim El Hattab, http://hakim.se
*/
!function(a,b){"function"==typeof define&&define.amd?define(function(){return a.Reveal=b(),a.Reveal}):"object"==typeof exports?module.exports=b():a.Reveal=b()}(this,function(){"use strict";function a(a){if(!0!==Qb)if(Qb=!0,b(),_b.transforms2d||_b.transforms3d){$b.wrapper=document.querySelector(".reveal"),$b.slides=document.querySelector(".reveal .slides"),window.addEventListener("load",N,!1);var d=Bb.getQueryHash();"undefined"!=typeof d.dependencies&&delete d.dependencies,q(Pb,a),q(Pb,d),C(),c()}else{document.body.setAttribute("class","no-transforms");for(var e=r(document.getElementsByTagName("img")),f=r(document.getElementsByTagName("iframe")),g=e.concat(f),h=0,i=g.length;h<i;h++){var j=g[h];j.getAttribute("data-src")&&(j.setAttribute("src",j.getAttribute("data-src")),j.removeAttribute("data-src"))}}}function b(){Hb=/(iphone|ipod|ipad|android)/gi.test(Ob),Ib=/chrome/i.test(Ob)&&!/edge/i.test(Ob);var a=document.createElement("div");_b.transforms3d="WebkitPerspective"in a.style||"MozPerspective"in a.style||"msPerspective"in a.style||"OPerspective"in a.style||"perspective"in a.style,_b.transforms2d="WebkitTransform"in a.style||"MozTransform"in a.style||"msTransform"in a.style||"OTransform"in a.style||"transform"in a.style,_b.requestAnimationFrameMethod=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,_b.requestAnimationFrame="function"==typeof _b.requestAnimationFrameMethod,_b.canvas=!!document.createElement("canvas").getContext,_b.overviewTransitions=!/Version\/[\d\.]+.*Safari/.test(Ob),_b.zoom="zoom"in a.style&&!Hb&&(Ib||/Version\/[\d\.]+.*Safari/.test(Ob))}function c(){function a(){c.length&&head.js.apply(null,c),d()}for(var b=[],c=[],e=0,f=0,g=Pb.dependencies.length;f<g;f++){var h=Pb.dependencies[f];h.condition&&!h.condition()||(h.async?c.push(h.src):b.push(h.src),function(b){head.ready(b.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],function(){"function"==typeof b.callback&&b.callback.apply(this),0==--e&&a()})}(h))}b.length?(e=b.length,head.js.apply(null,b)):a()}function d(){Rb=!0,e(),m(),i(),ga(),n(),Ga(),sa(!0),setTimeout(function(){$b.slides.classList.remove("no-transition"),$b.wrapper.classList.add("ready"),E("ready",{indexh:Cb,indexv:Db,currentSlide:Fb})},1),B()&&(p(),"complete"===document.readyState?h():window.addEventListener("load",h))}function e(){$b.slides.classList.add("no-transition"),Hb?$b.wrapper.classList.add("no-hover"):$b.wrapper.classList.remove("no-hover"),/iphone/gi.test(Ob)?$b.wrapper.classList.add("ua-iphone"):$b.wrapper.classList.remove("ua-iphone"),$b.background=j($b.wrapper,"div","backgrounds",null),$b.progress=j($b.wrapper,"div","progress","<span></span>"),$b.progressbar=$b.progress.querySelector("span"),$b.controls=j($b.wrapper,"aside","controls",'<button class="navigate-left" aria-label="previous slide"><div class="controls-arrow"></div></button><button class="navigate-right" aria-label="next slide"><div class="controls-arrow"></div></button><button class="navigate-up" aria-label="above slide"><div class="controls-arrow"></div></button><button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>'),$b.slideNumber=j($b.wrapper,"div","slide-number",""),$b.speakerNotes=j($b.wrapper,"div","speaker-notes",null),$b.speakerNotes.setAttribute("data-prevent-swipe",""),$b.speakerNotes.setAttribute("tabindex","0"),j($b.wrapper,"div","pause-overlay",null),$b.wrapper.setAttribute("role","application"),$b.controlsLeft=r(document.querySelectorAll(".navigate-left")),$b.controlsRight=r(document.querySelectorAll(".navigate-right")),$b.controlsUp=r(document.querySelectorAll(".navigate-up")),$b.controlsDown=r(document.querySelectorAll(".navigate-down")),$b.controlsPrev=r(document.querySelectorAll(".navigate-prev")),$b.controlsNext=r(document.querySelectorAll(".navigate-next")),$b.controlsRightArrow=$b.controls.querySelector(".navigate-right"),$b.controlsDownArrow=$b.controls.querySelector(".navigate-down"),$b.statusDiv=f()}function f(){var a=document.getElementById("aria-status-div");return a||(a=document.createElement("div"
var a,b,c=$b.wrapper.querySelectorAll(Lb),d=$b.wrapper.querySelectorAll(Mb),e=$b.background.style.backgroundSize.split(" ");1===e.length?a=b=parseInt(e[0],10):(a=parseInt(e[0],10),b=parseInt(e[1],10));var f,g,h=$b.background.offsetWidth,i=c.length;f="number"==typeof Pb.parallaxBackgroundHorizontal?Pb.parallaxBackgroundHorizontal:i>1?(a-h)/(i-1):0,g=f*Cb*-1;var j,k,l=$b.background.offsetHeight,m=d.length;j="number"==typeof Pb.parallaxBackgroundVertical?Pb.parallaxBackgroundVertical:(b-l)/(m-1),k=m>0?j*Db:0,$b.background.style.backgroundPosition=g+"px "+-k+"px"}}function ua(a,b){b=b||{},a.style.display=Pb.display,r(a.querySelectorAll("img[data-src], video[data-src], audio[data-src]")).forEach(function(a){a.setAttribute("src",a.getAttribute("data-src")),a.setAttribute("data-lazy-loaded",""),a.removeAttribute("data-src")}),r(a.querySelectorAll("video, audio")).forEach(function(a){var b=0;r(a.querySelectorAll("source[data-src]")).forEach(function(a){a.setAttribute("src",a.getAttribute("data-src")),a.removeAttribute("data-src"),a.setAttribute("data-lazy-loaded",""),b+=1}),b>0&&a.load()});var c=Ia(a),d=Ma(c.h,c.v);if(d&&(d.style.display="block",!1===d.hasAttribute("data-loaded"))){d.setAttribute("data-loaded","true");var e=a.getAttribute("data-background-image"),f=a.getAttribute("data-background-video"),g=a.hasAttribute("data-background-video-loop"),h=a.hasAttribute("data-background-video-muted"),i=a.getAttribute("data-background-iframe");if(e)d.style.backgroundImage="url("+e+")";else if(f&&!Fa()){var j=document.createElement("video");g&&j.setAttribute("loop",""),h&&(j.muted=!0),Hb&&(j.muted=!0,j.autoplay=!0,j.setAttribute("playsinline","")),f.split(",").forEach(function(a){j.innerHTML+='<source src="'+a+'">'}),d.appendChild(j)}else if(i&&!0!==b.excludeIframes){var k=document.createElement("iframe");k.setAttribute("allowfullscreen",""),k.setAttribute("mozallowfullscreen",""),k.setAttribute("webkitallowfullscreen",""),/autoplay=(1|true|yes)/gi.test(i)?k.setAttribute("data-src",i):k.setAttribute("src",i),k.style.width="100%",k.style.height="100%",k.style.maxHeight="100%",k.style.maxWidth="100%",d.appendChild(k)}}}function va(a){a.style.display="none";var b=Ia(a),c=Ma(b.h,b.v);c&&(c.style.display="none"),r(a.querySelectorAll("video[data-lazy-loaded][src], audio[data-lazy-loaded][src]")).forEach(function(a){a.setAttribute("data-src",a.getAttribute("src")),a.removeAttribute("src")}),r(a.querySelectorAll("video[data-lazy-loaded] source[src], audio source[src]")).forEach(function(a){a.setAttribute("data-src",a.getAttribute("src")),a.removeAttribute("src")})}function wa(){var a=$b.wrapper.querySelectorAll(Lb),b=$b.wrapper.querySelectorAll(Mb),c={left:Cb>0||Pb.loop,right:Cb<a.length-1||Pb.loop,up:Db>0,down:Db<b.length-1};if(Pb.rtl){var d=c.left;c.left=c.right,c.right=d}return c}function xa(){if(Fb&&Pb.fragments){var a=Fb.querySelectorAll(".fragment"),b=Fb.querySelectorAll(".fragment:not(.visible)");return{prev:a.length-b.length>0,next:!!b.length}}return{prev:!1,next:!1}}function ya(){var a=function(a,b,c){r($b.slides.querySelectorAll("iframe["+a+'*="'+b+'"]')).forEach(function(b){var d=b.getAttribute(a);d&&-1===d.indexOf(c)&&b.setAttribute(a,d+(/\?/.test(d)?"&":"?")+c)})};a("src","youtube.com/embed/","enablejsapi=1"),a("data-src","youtube.com/embed/","enablejsapi=1"),a("src","player.vimeo.com/","api=1"),a("data-src","player.vimeo.com/","api=1"),Hb&&r($b.slides.querySelectorAll("video, audio")).forEach(function(a){a.controls=!0})}function za(a){a&&!Fa()&&(r(a.querySelectorAll('img[src$=".gif"]')).forEach(function(a){a.setAttribute("src",a.getAttribute("src"))}),r(a.querySelectorAll("video, audio")).forEach(function(a){if(!x(a,".fragment")||x(a,".fragment.visible")){var b=Pb.autoPlayMedia;"boolean"!=typeof b&&(b=a.hasAttribute("data-autoplay")||!!x(a,".slide-background")),b&&"function"==typeof a.play&&(a.readyState>1?Aa({target:a}):(a.removeEventListener("loadeddata",Aa),a.addEventListener("loadeddata",Aa)))}}),r(a.querySelectorAll("iframe[src]")).forEach(function(a){x(a,".fragment")&&!x(a,".fragment.visible")||Ba({target:a})}),r(a.query