presentazione-papero/js/reveal.min.js

8 lines
23 KiB
JavaScript
Raw Normal View History

2013-03-17 13:10:04 +01:00
/*!
* reveal.js 2.5.0 (2013-06-07, 17:32)
2013-03-17 13:10:04 +01: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 Ct||Nt?(window.addEventListener("load",y,!1),l(kt,e),r(),o(),void 0):(document.body.setAttribute("class","no-transforms"),void 0)}function t(){if(Pt.theme=document.querySelector("#theme"),Pt.wrapper=document.querySelector(".reveal"),Pt.slides=document.querySelector(".reveal .slides"),document.querySelector(".reveal .background")||(Pt.background=document.createElement("div"),Pt.background.classList.add("background"),Pt.wrapper.appendChild(Pt.background)),!Pt.wrapper.querySelector(".progress")){var e=document.createElement("div");e.classList.add("progress"),e.innerHTML="<span></span>",Pt.wrapper.appendChild(e)}if(!Pt.wrapper.querySelector(".controls")){var t=document.createElement("aside");t.classList.add("controls"),t.innerHTML='<div class="navigate-left"></div><div class="navigate-right"></div><div class="navigate-up"></div><div class="navigate-down"></div>',Pt.wrapper.appendChild(t)}if(!Pt.wrapper.querySelector(".state-background")){var n=document.createElement("div");n.classList.add("state-background"),Pt.wrapper.appendChild(n)}if(!Pt.wrapper.querySelector(".pause-overlay")){var r=document.createElement("div");r.classList.add("pause-overlay"),Pt.wrapper.appendChild(r)}Pt.progress=document.querySelector(".reveal .progress"),Pt.progressbar=document.querySelector(".reveal .progress span"),kt.controls&&(Pt.controls=document.querySelector(".reveal .controls"),Pt.controlsLeft=d(document.querySelectorAll(".navigate-left")),Pt.controlsRight=d(document.querySelectorAll(".navigate-right")),Pt.controlsUp=d(document.querySelectorAll(".navigate-up")),Pt.controlsDown=d(document.querySelectorAll(".navigate-down")),Pt.controlsPrev=d(document.querySelectorAll(".navigate-prev")),Pt.controlsNext=d(document.querySelectorAll(".navigate-next")))}function n(){function e(e,t){var n={background:e.getAttribute("data-background"),backgroundSize:e.getAttribute("data-background-size"),backgroundColor:e.getAttribute("data-background-color"),backgroundRepeat:e.getAttribute("data-background-repeat"),backgroundPosition:e.getAttribute("data-background-position")},r=document.createElement("div");return r.className="slide-background",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.backgroundColor&&(r.style.backgroundColor=n.backgroundColor),n.backgroundRepeat&&(r.style.backgroundRepeat=n.backgroundRepeat),n.backgroundPosition&&(r.style.backgroundPosition=n.backgroundPosition),t.appendChild(r),r}f()&&document.body.classList.add("print-pdf"),Pt.background.innerHTML="",Pt.background.classList.add("no-transition"),d(document.querySelectorAll(Lt)).forEach(function(t){var n;n=f()?e(t,t):e(t,Pt.background),d(t.querySelectorAll("section")).forEach(function(t){f()?e(t,t):e(t,n)})})}function r(){/iphone|ipod|android/gi.test(navigator.userAgent)&&!/crios/gi.test(navigator.userAgent)&&(window.addEventListener("load",v,!1),window.addEventListener("orientationchange",v,!1))}function o(){function e(){n.length&&head.js.apply(null,n),a()}for(var t=[],n=[],r=0,o=kt.dependencies.length;o>r;r++){var s=kt.dependencies[r];(!s.condition||s.condition())&&(s.async?n.push(s.src):t.push(s.src),"function"==typeof s.callback&&head.ready(s.src.match(/([\w\d_\-]*)\.?js$|[^\\\/]*$/i)[0],s.callback))}t.length?(head.ready(e),head.js.apply(null,t)):e()}function a(){t(),s(),W(),setTimeout(function(){p("ready",{indexh:qt,indexv:xt,currentSlide:bt})},1)}function s(e){if(Pt.wrapper.classList.remove(kt.transition),"object"==typeof e&&l(kt,e),Nt===!1&&(kt.transition="linear"),Pt.wrapper.classList.add(kt.transition),Pt.wrapper.setAttribute("data-transition-speed",kt.transitionSpeed),Pt.wrapper.setAttribute("data-background-transition",kt.backgroundTransition),Pt.controls&&(Pt.controls.style.display=kt.controls&&Pt.controls?"block":"none"),Pt.progress&&(Pt.progress.style.display=kt.progress&&Pt.progress?"block":"none"),kt.rtl?Pt.wrapper.classList.add("rtl"):Pt.wrapper.classList.remove