fa20-bt/js/reveal.min.js

9 lines
34 KiB
JavaScript
Raw Normal View History

2013-03-17 12:10:04 +00:00
/*!
2014-03-26 14:48:28 +00:00
* reveal.js 2.7.0-dev (2014-03-26, 15:45)
2013-03-17 12:10:04 +00:00
* http://lab.hakim.se/reveal-js
* MIT licensed
*
2014-02-16 16:12:05 +00:00
* Copyright (C) 2014 Hakim El Hattab, http://hakim.se
2013-03-17 12:10:04 +00:00
*/
2014-03-26 14:48:28 +00:00
var Reveal=function(){"use strict";function a(a){if(b(),!lc.transforms2d&&!lc.transforms3d)return document.body.setAttribute("class","no-transforms"),void 0;window.addEventListener("load",C,!1);var d=Reveal.getQueryHash();"undefined"!=typeof d.dependencies&&delete d.dependencies,l(gc,a),l(gc,d),t(),c()}function b(){lc.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,lc.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,lc.requestAnimationFrameMethod=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,lc.requestAnimationFrame="function"==typeof lc.requestAnimationFrameMethod,lc.canvas=!!document.createElement("canvas").getContext,ac=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=gc.dependencies.length;h>g;g++){var i=gc.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(),U(),i(),hb(),_(!0),setTimeout(function(){kc.slides.classList.remove("no-transition"),hc=!0,v("ready",{indexh:Xb,indexv:Yb,currentSlide:$b})},1)}function e(){kc.theme=document.querySelector("#theme"),kc.wrapper=document.querySelector(".reveal"),kc.slides=document.querySelector(".reveal .slides"),kc.slides.classList.add("no-transition"),kc.background=f(kc.wrapper,"div","backgrounds",null),kc.progress=f(kc.wrapper,"div","progress","<span></span>"),kc.progressbar=kc.progress.querySelector("span"),f(kc.wrapper,"aside","controls",'<div class="navigate-left"></div><div class="navigate-right"></div><div class="navigate-up"></div><div class="navigate-down"></div>'),kc.slideNumber=f(kc.wrapper,"div","slide-number",""),f(kc.wrapper,"div","state-background",null),f(kc.wrapper,"div","pause-overlay",null),kc.controls=document.querySelector(".reveal .controls"),kc.controlsLeft=m(document.querySelectorAll(".navigate-left")),kc.controlsRight=m(document.querySelectorAll(".navigate-right")),kc.controlsUp=m(document.querySelectorAll(".navigate-up")),kc.controlsDown=m(document.querySelectorAll(".navigate-down")),kc.controlsPrev=m(document.querySelectorAll(".navigate-prev")),kc.controlsNext=m(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(){s()&&document.body.classList.add("print-pdf"),kc.background.innerHTML="",kc.background.classList.add("no-transition"),m(document.querySelectorAll(dc)).forEach(function(a){var b;b=s()?h(a,a):h(a,kc.background),m(a.querySelectorAll("section")).forEach(function(a){s()?h(a,a):h(a,b)})}),gc.parallaxBackgroundImage?(kc.background.style.backgroundImage='url("'+gc.parallaxBackgroundImage+'")',kc.background.style.backgroundSize=gc.parallaxBackgroundSize,setTimeout(function(){kc.wrapper.classList.add("has-parallax-background")},1)):(kc.background.style.backgroundImage="",kc.wrapper.classList.remove("has-parallax-background"))}function h(a,b){var c={background:a.getAttribute("data-background"),backgroundSize:a.getAttribute("data-background-size"),backgroundImage:a.getAttribute("data-background-image"),backgroundVideo:a.getAttribute("data-background-video"),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");if(d.className="slide-background",c.background&&(/^(http|file|\/\/)/gi.test
this.context.save(),this.context.clearRect(0,0,this.diameter,this.diameter),this.context.beginPath(),this.context.arc(c,d,b+2,0,2*Math.PI,!1),this.context.fillStyle="rgba( 0, 0, 0, 0.4 )",this.context.fill(),this.context.beginPath(),this.context.arc(c,d,b,0,2*Math.PI,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#666",this.context.stroke(),this.playing&&(this.context.beginPath(),this.context.arc(c,d,b,g,f,!1),this.context.lineWidth=this.thickness,this.context.strokeStyle="#fff",this.context.stroke()),this.context.translate(c-e/2,d-e/2),this.playing?(this.context.fillStyle="#fff",this.context.fillRect(0,0,e/2-2,e),this.context.fillRect(e/2+2,0,e/2-2,e)):(this.context.beginPath(),this.context.translate(2,0),this.context.moveTo(0,0),this.context.lineTo(e-2,e/2),this.context.lineTo(0,e),this.context.fillStyle="#fff",this.context.fill()),this.context.restore()},Wb.prototype.on=function(a,b){this.canvas.addEventListener(a,b,!1)},Wb.prototype.off=function(a,b){this.canvas.removeEventListener(a,b,!1)},Wb.prototype.destroy=function(){this.playing=!1,this.canvas.parentNode&&this.container.removeChild(this.canvas)},{initialize:a,configure:i,sync:T,slide:S,left:ub,right:vb,up:wb,down:xb,prev:yb,next:zb,navigateFragment:nb,prevFragment:pb,nextFragment:ob,navigateTo:S,navigateLeft:ub,navigateRight:vb,navigateUp:wb,navigateDown:xb,navigatePrev:yb,navigateNext:zb,layout:C,availableRoutes:bb,availableFragments:cb,toggleOverview:I,togglePause:O,toggleAutoSlide:Q,isOverview:J,isPaused:P,isAutoSliding:R,addEventListeners:j,removeEventListeners:k,getState:kb,setState:lb,getProgress:fb,getIndices:jb,getSlide:function(a,b){var c=document.querySelectorAll(dc)[a],d=c&&c.querySelectorAll("section");return"undefined"!=typeof b?d?d[b]:void 0:c},getPreviousSlide:function(){return Zb},getCurrentSlide:function(){return $b},getScale:function(){return jc},getConfig:function(){return gc},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]=n(unescape(c))}return a},isFirstSlide:function(){return null==document.querySelector(cc+".past")?!0:!1},isLastSlide:function(){return $b?$b.nextElementSibling?!1:K($b)&&$b.parentNode.nextElementSibling?!1:!0:!1},isReady:function(){return hc},addEventListener:function(a,b,c){"addEventListener"in window&&(kc.wrapper||document.querySelector(".reveal")).addEventListener(a,b,c)},removeEventListener:function(a,b,c){"addEventListener"in window&&(kc.wrapper||document.querySelector(".reveal")).removeEventListener(a,b,c)}}}();