presentazione-papero/js/reveal.min.js

9 lines
33 KiB
JavaScript
Raw Normal View History

2013-03-17 13:10:04 +01:00
/*!
2014-04-09 02:08:43 +02:00
* reveal.js 2.6.2 (2014-04-08, 17:06)
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
*/
2014-04-09 02:08:43 +02:00
!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(b(),!fc.transforms2d&&!fc.transforms3d)return void document.body.setAttribute("class","no-transforms");window.addEventListener("load",A,!1);var d=Qb.getQueryHash();"undefined"!=typeof d.dependencies&&delete d.dependencies,k(ac,a),k(ac,d),r(),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(),Q(),h(),cb(),X(!0),setTimeout(function(){ec.slides.classList.remove("no-transition"),bc=!0,t("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=f(ec.wrapper,"div","backgrounds",null),ec.progress=f(ec.wrapper,"div","progress","<span></span>"),ec.progressbar=ec.progress.querySelector("span"),f(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=f(ec.wrapper,"div","slide-number",""),f(ec.wrapper,"div","state-background",null),f(ec.wrapper,"div","pause-overlay",null),ec.controls=document.querySelector(".reveal .controls"),ec.controlsLeft=l(document.querySelectorAll(".navigate-left")),ec.controlsRight=l(document.querySelectorAll(".navigate-right")),ec.controlsUp=l(document.querySelectorAll(".navigate-up")),ec.controlsDown=l(document.querySelectorAll(".navigate-down")),ec.controlsPrev=l(document.querySelectorAll(".navigate-prev")),ec.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&&(
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:I(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)}}});