diff options
Diffstat (limited to 'plugins/jetpack/_inc/build/shortcodes')
16 files changed, 38 insertions, 75 deletions
diff --git a/plugins/jetpack/_inc/build/shortcodes/js/brightcove.min.asset.php b/plugins/jetpack/_inc/build/shortcodes/js/brightcove.min.asset.php new file mode 100644 index 00000000..e8a2f0c9 --- /dev/null +++ b/plugins/jetpack/_inc/build/shortcodes/js/brightcove.min.asset.php @@ -0,0 +1 @@ +<?php return array('dependencies' => array(), 'version' => 'a6251d8ad1bde75a52a19280170b6dd6');
\ No newline at end of file diff --git a/plugins/jetpack/_inc/build/shortcodes/js/brightcove.min.js b/plugins/jetpack/_inc/build/shortcodes/js/brightcove.min.js index ea4469f0..cd3f00d5 100644 --- a/plugins/jetpack/_inc/build/shortcodes/js/brightcove.min.js +++ b/plugins/jetpack/_inc/build/shortcodes/js/brightcove.min.js @@ -1,3 +1 @@ -/* Do not modify this file directly. It is compiled from other files. */ -/* global brightcove, brightcoveData */ -!function(e){var t=document.createElement("script"),c="co.jp"===brightcoveData.tld?"co.jp":"com",o=!1;t.src="https://sadmin.brightcove."+c+"/js/BrightcoveExperiences.js",t.type="text/javascript",t.language="JavaScript",document.head.appendChild(t),function t(){clearTimeout(o);"object"==typeof brightcove?(e(document).ready(brightcove.createExperiences),e("body").on("post-load",brightcove.createExperiences),brightcove.createExperiences()):o=setTimeout(t,100)}()}(jQuery);
\ No newline at end of file +!function(){var e,t,c,o;e=jQuery,t=document.createElement("script"),c="co.jp"===brightcoveData.tld?"co.jp":"com",o=!1,t.src="https://sadmin.brightcove."+c+"/js/BrightcoveExperiences.js",t.type="text/javascript",t.language="JavaScript",document.head.appendChild(t),function t(){clearTimeout(o),"object"==typeof brightcove?(e(document).ready(brightcove.createExperiences),e("body").on("post-load",brightcove.createExperiences),brightcove.createExperiences()):o=setTimeout(t,100)}()}();
\ No newline at end of file diff --git a/plugins/jetpack/_inc/build/shortcodes/js/jmpress.min.asset.php b/plugins/jetpack/_inc/build/shortcodes/js/jmpress.min.asset.php new file mode 100644 index 00000000..49fc2af2 --- /dev/null +++ b/plugins/jetpack/_inc/build/shortcodes/js/jmpress.min.asset.php @@ -0,0 +1 @@ +<?php return array('dependencies' => array(), 'version' => '4788f972d53b1d20a8b4a8e482e5e91a');
\ No newline at end of file diff --git a/plugins/jetpack/_inc/build/shortcodes/js/jmpress.min.js b/plugins/jetpack/_inc/build/shortcodes/js/jmpress.min.js index 8d751419..8242ff17 100644 --- a/plugins/jetpack/_inc/build/shortcodes/js/jmpress.min.js +++ b/plugins/jetpack/_inc/build/shortcodes/js/jmpress.min.js @@ -1,22 +1,2 @@ -/* Do not modify this file directly. It is compiled from other files. */ -/** - * jmpress.js v0.4.5 - * http://jmpressjs.github.com/jmpress.js - * - * A jQuery plugin to build a website on the infinite canvas. - * - * Copyright 2013 Kyle Robinson Young @shama & Tobias Koppers @sokra - * Licensed MIT - * http://www.opensource.org/licenses/mit-license.php - * - * Based on the foundation laid by Bartek Szopka @bartaz - */ -!function(e,t,s,a){"use strict";var r,n,i,o=(r=t.createElement("dummy").style,n="Webkit Moz O ms Khtml".split(" "),i={},function(e){if(void 0===i[e]){var t=e.charAt(0).toUpperCase()+e.substr(1),s=(e+" "+n.join(t+" ")+t).split(" ");for(var o in i[e]=null,s)if(r[s[o]]!==a){i[e]=s[o];break}}return i[e]});function c(e){if(e){var t=1+e.substr(1).search(/[A-Z]/);return"-"+e.substr(0,t).toLowerCase()+"-"+e.substr(t).toLowerCase()}}function l(e){return e?e+",":""}function u(e){return e.length>0?e:null}var p={stepSelector:".step",containerClass:"",canvasClass:"",areaClass:"",notSupportedClass:"not-supported",fullscreen:!0,animation:{transformOrigin:"top left",transitionProperty:l(c(o("transform")))+l(c(o("perspective")))+"opacity",transitionDuration:"1s",transitionDelay:"500ms",transitionTimingFunction:"ease-in-out",transformStyle:"preserve-3d"},transitionDuration:1500},f={beforeChange:1,beforeInitStep:1,initStep:1,beforeInit:1,afterInit:1,beforeDeinit:1,afterDeinit:1,applyStep:1,unapplyStep:1,setInactive:1,beforeActive:1,setActive:1,selectInitialStep:1,selectPrev:1,selectNext:1,selectHome:1,selectEnd:1,idle:1,applyTarget:1};for(var d in f)p[d]=[];function m(r){r=e.extend(!0,{},r||{});var n={},i=null;for(i in f)n[i]=e.isFunction(r[i])?[r[i]]:r[i],r[i]=[];var o=e.extend(!0,{},p,r);for(i in f)n[i]&&Array.prototype.push.apply(o[i],n[i]);var c=e(this),l=null,d=null,m={container:"",area:""},g=null,b=null,y=!1,j=null,D=!1;function S(t,s){var a=v(t),r={oldStyle:e(t).attr("style")||""},n={data:a,stepData:r};x.call(this,"beforeInitStep",e(t),n),r.delegate=a.delegate,x.call(this,"initStep",e(t),n),e(t).data("stepData",r),e(t).attr("id")||e(t).attr("id","step-"+(s+1)),x.call(this,"applyStep",e(t),n)}function w(t){var s=e(t).data("stepData");e(t).attr("style",s.oldStyle),x.call(this,"unapplyStep",e(t),{stepData:s})}function x(t,s,a){a.settings=o,a.current=b,a.container=l,a.parents=s?e(s).parentsUntil(c).not(c).filter(o.stepSelector):null,a.current=b,a.jmpress=this;var r={};return e.each(o[t],function(e,t){r.value=t.call(c,s,a)||r.value}),r.value}function C(t,s){var r;if(e.isPlainObject(t)&&(r=t.substep,t=t.step),"string"==typeof t&&(t=c.find(t).first()),!t||!e(t).data("stepData"))return!1;T.call(this);var n=e(t).data("stepData"),i=!1;if(x.call(this,"beforeChange",t,{stepData:n,reason:s,cancel:function(){i=!0}}),i)return a;var l={},p=t;e(t).data("stepData").delegate&&((p=u(e(t).parentsUntil(c).filter(o.stepSelector).filter(n.delegate))||u(e(t).near(n.delegate))||u(e(t).near(n.delegate,!0))||u(e(n.delegate,c)))?n=p.data("stepData"):p=t),D&&x.call(this,"setInactive",D,{stepData:e(D).data("stepData"),delegatedFrom:y,reason:s,target:l,nextStep:p,nextSubstep:r,nextStepData:n});var f={stepData:n,delegatedFrom:t,reason:s,target:l,substep:r,prevStep:D,prevSubstep:j,prevStepData:D&&e(D).data("stepData")};return x.call(this,"beforeActive",p,f),x.call(this,"setActive",p,f),b.jmpressClass&&e(c).removeClass(b.jmpressClass),e(c).addClass(b.jmpressClass="step-"+e(p).attr("id")),b.jmpressDelegatedClass&&e(c).removeClass(b.jmpressDelegatedClass),e(c).addClass(b.jmpressDelegatedClass="delegating-step-"+e(t).attr("id")),x.call(this,"applyTarget",p,e.extend({canvas:g,area:d,beforeActive:D},f)),y=t,j=f.substep,D=p,b.idleTimeout&&clearTimeout(b.idleTimeout),b.idleTimeout=setTimeout(function(){x.call(this,"idle",p,f)},Math.max(1,o.transitionDuration-100)),p}function T(){!function t(){if("BODY"===e(l)[0].tagName)try{s.scrollTo(0,0)}catch(e){}function a(){0===e(l).scrollTop()&&0===e(l).scrollLeft()||t()}e(l).scrollTop(0),e(l).scrollLeft(0),setTimeout(a,1),setTimeout(a,10),setTimeout(a,100),setTimeout(a,200),setTimeout(a,400)}()}if(c.data("jmpressmethods",{select:C,reselect:function(e){return C({step:y,substep:j},e)},scrollFix:T,goTo:function(e){return C.call(this,e,"jump")},next:function(){return C.call(this,x.call(this,"selectNext",y,{stepData:e(y).data("stepData"),substep:j}),"next")},prev:function(){return C.call(this,x.call(this,"selectPrev",y,{stepData:e(y).data("stepData"),substep:j}),"prev")},home:function(){return C.call(this,x.call(this,"selectHome",y,{stepData:e(y).data("stepData")}),"home")},end:function(){return C.call(this,x.call(this,"selectEnd",y,{stepData:e(y).data("stepData")}),"end")},canvas:function(t){return h(g,t||{}),e(g)},container:function(){return l},settings:function(){return o},active:function(){return D&&e(D)},current:function(){return b},fire:function(t,s,a){if(f[t])return x.call(this,t,s,a);e.error("callback "+t+" is not registered.")},init:function(t){S.call(this,e(t),b.nextIdNumber++)},deinit:function(t){t?w.call(this,e(t)):function(){y&&x.call(this,"setInactive",y,{stepData:e(y).data("stepData"),reason:"deinit"}),b.jmpressClass&&e(c).removeClass(b.jmpressClass),x.call(this,"beforeDeinit",e(this),{}),e(o.stepSelector,c).each(function(e){w.call(c,this)}),l.attr("style",m.container),o.fullscreen&&e("html").attr("style",""),d.attr("style",m.area),e(g).children().each(function(){c.append(e(this))}),o.fullscreen?g.remove():(g.remove(),d.remove()),x.call(this,"afterDeinit",e(this),{}),e(c).data("jmpressmethods",!1)}.call(this)},reapply:function(t){x.call(this,"unapplyStep",e(t),{stepData:t.data("stepData")}),x.call(this,"applyStep",e(t),{stepData:t.data("stepData")})}}),!1!=(-1===(P=navigator.userAgent.toLowerCase()).search(/(iphone)|(ipod)|(android)/)||-1!==P.search(/(chrome)/))){var P;o.notSupportedClass&&c.removeClass(o.notSupportedClass);var M=e(o.stepSelector,c);l=c,d=e("<div />"),g=e("<div />"),e(c).children().filter(M).each(function(){g.append(e(this))}),o.fullscreen&&(l=e("body"),e("html").css({overflow:"hidden"}),d=c),m.area=d.attr("style")||"",m.container=l.attr("style")||"",o.fullscreen?(l.css({height:"100%"}),c.append(g)):(l.css({position:"relative"}),d.append(g),c.append(d)),e(l).addClass(o.containerClass),e(d).addClass(o.areaClass),e(g).addClass(o.canvasClass),t.documentElement.style.height="100%",l.css({overflow:"hidden"});var A={position:"absolute",transitionDuration:"0s"};A=e.extend({},o.animation,A),h(d,A),h(d,{top:"50%",left:"50%",perspective:"1000px"}),h(g,A),b={},x.call(this,"beforeInit",null,{}),M.each(function(e){S.call(c,this,e)}),b.nextIdNumber=M.length,x.call(this,"afterInit",null,{}),C.call(this,x.call(this,"selectInitialStep","init",{})),o.initClass&&e(M).removeClass(o.initClass)}else o.notSupportedClass&&c.addClass(o.notSupportedClass)}function h(t,s){var a,r,n={};for(a in s)s.hasOwnProperty(a)&&null!==(r=o(a))&&(n[r]=s[a]);return e(t).css(n),t}function v(t){if(e(t)[0].dataset)return e.extend({},e(t)[0].dataset);var s={},a=e(t)[0].attributes;return e.each(a,function(e,t){"data-"===t.nodeName.substr(0,5)&&(s[function(e){e=e.split("-");for(var t=1;t<e.length;t++)e[t]=e[t].substr(0,1).toUpperCase()+e[t].substr(1);return e.join("")}(t.nodeName.substr(5))]=t.nodeValue)}),s}var g={init:m,initialized:function(){return!!e(this).data("jmpressmethods")},deinit:function(){},css:h,pfx:o,defaults:function(){return p},register:function(t,s){e.isFunction(s)?g[t]?e.error("function "+t+" is already registered."):g[t]=s:f[t]?e.error("callback "+t+" is already registered."):(f[t]=1,p[t]=[])},dataset:v};e.fn.jmpress=function(t){var s,a=arguments;return e(this).each(function(r,n){s=function(){var s=e(this).data("jmpressmethods");if(s&&s[t])return s[t].apply(this,Array.prototype.slice.call(arguments,1));if(g[t])return g[t].apply(this,Array.prototype.slice.call(arguments,1));if(f[t]&&s){var a=s.settings(),r=Array.prototype.slice.call(arguments,1)[0];e.isFunction(r)&&(a[t]=a[t]||[],a[t].push(r))}else{if("object"==typeof t||!t)return m.apply(this,arguments);e.error("Method "+t+" does not exist on jQuery.jmpress")}return this}.apply(n,a)}),s},e.extend({jmpress:function(t){if(g[t])return g[t].apply(this,Array.prototype.slice.call(arguments,1));if(f[t]){var s=Array.prototype.slice.call(arguments,1)[0];e.isFunction(s)?p[t].push(s):e.error("Second parameter should be a function: $.jmpress( callbackName, callbackFunction )")}else e.error("Method "+t+" does not exist on jQuery.jmpress")}})}(jQuery,document,window),function(e,t,s,a){"use strict";function r(t,s,a,r){var n;return t.each(function(t,i){return(!r||!(n=s(i,a,r)))&&(e(i).is(a)?(n=i,!1):!(!r&&(n=s(i,a,r)))&&void 0)}),n}function n(t,s,a){var i=e(t).children();return a&&(i=e(i.get().reverse())),r(i,n,s,a)}function i(t,s,a){return r(e(t)[a?"prevAll":"nextAll"](),n,s,a)}e.fn.near=function(t,s){var a=[];return e(this).each(function(r,o){var c=!s&&n(o,t,s)||i(o,t,s)||function(t,s,a){var r,n=e(t).parents();return n=e(n.get()),e.each(n.get(),function(t,n){return a&&e(n).is(s)?(r=n,!1):!(r=i(n,s,a))&&void 0}),r}(o,t,s);c&&a.push(c)}),e(a)}}(jQuery,document,window),function(e,t,s,a){"use strict";function r(e){return Math.round(1e4*e)/1e4+""}var n={3:{transform:function(t,s){var a="translate(-50%,-50%)";e.each(s,function(e,t){var s,n=["X","Y","Z"];if("translate"===t[0])a+=" translate3d("+r(t[1]||0)+"px,"+r(t[2]||0)+"px,"+r(t[3]||0)+"px)";else if("rotate"===t[0]){var i=t[4]?[1,2,3]:[3,2,1];for(s=0;s<3;s++)a+=" rotate"+n[i[s]-1]+"("+r(t[i[s]]||0)+"deg)"}else if("scale"===t[0])for(s=0;s<3;s++)a+=" scale"+n[s]+"("+r(t[s+1]||1)+")"}),e.jmpress("css",t,e.extend({},{transform:a}))}},2:{transform:function(t,s){var a="translate(-50%,-50%)";e.each(s,function(e,t){var s=["X","Y"];if("translate"===t[0])a+=" translate("+r(t[1]||0)+"px,"+r(t[2]||0)+"px)";else if("rotate"===t[0])a+=" rotate("+r(t[3]||0)+"deg)";else if("scale"===t[0])for(var n=0;n<2;n++)a+=" scale"+s[n]+"("+r(t[n+1]||1)+")"}),e.jmpress("css",t,e.extend({},{transform:a}))}},1:{transform:function(t,s){var a={top:0,left:0};e.each(s,function(e,t){"translate"===t[0]&&(a.left=Math.round(t[1]||0)+"px",a.top=Math.round(t[2]||0)+"px")}),t.animate(a,1e3)}}},i=e.jmpress("pfx","perspective")?n[3]:e.jmpress("pfx","transform")?n[2]:n[1];e.jmpress("defaults").reasonableAnimation={},e.jmpress("initStep",function(t,s){var a=s.data,r=s.stepData,n=parseFloat;e.extend(r,{x:n(a.x)||0,y:n(a.y)||0,z:n(a.z)||0,r:n(a.r)||0,phi:n(a.phi)||0,rotate:n(a.rotate)||0,rotateX:n(a.rotateX)||0,rotateY:n(a.rotateY)||0,rotateZ:n(a.rotateZ)||0,revertRotate:!1,scale:n(a.scale)||1,scaleX:n(a.scaleX)||!1,scaleY:n(a.scaleY)||!1,scaleZ:n(a.scaleZ)||1})}),e.jmpress("afterInit",function(t,s){var a=s.settings.stepSelector,r=s.current;r.perspectiveScale=1,r.maxNestedDepth=0;for(var n=e(s.jmpress).find(a).children(a);n.length;)r.maxNestedDepth++,n=n.children(a)}),e.jmpress("applyStep",function(t,s){e.jmpress("css",e(t),{position:"absolute",transformStyle:"preserve-3d"}),s.parents.length>0&&e.jmpress("css",e(t),{top:"50%",left:"50%"});var a=s.stepData,r=[["translate",a.x||a.r*Math.sin(a.phi*Math.PI/180),a.y||-a.r*Math.cos(a.phi*Math.PI/180),a.z],["rotate",a.rotateX,a.rotateY,a.rotateZ||a.rotate,!0],["scale",a.scaleX||a.scale,a.scaleY||a.scale,a.scaleZ||a.scale]];i.transform(t,r)}),e.jmpress("setActive",function(t,s){var r=s.target,n=s.stepData,i=r.transform=[];r.perspectiveScale=1;for(var o=s.current.maxNestedDepth;o>(s.parents.length||0);o--)i.push(["scale"],["rotate"],["translate"]);i.push(["scale",1/(n.scaleX||n.scale),1/(n.scaleY||n.scale),1/n.scaleZ]),i.push(["rotate",-n.rotateX,-n.rotateY,-(n.rotateZ||n.rotate)]),i.push(["translate",-(n.x||n.r*Math.sin(n.phi*Math.PI/180)),-(n.y||-n.r*Math.cos(n.phi*Math.PI/180)),-n.z]),r.perspectiveScale*=n.scaleX||n.scale,e.each(s.parents,function(t,s){var a=e(s).data("stepData");i.push(["scale",1/(a.scaleX||a.scale),1/(a.scaleY||a.scale),1/a.scaleZ]),i.push(["rotate",-a.rotateX,-a.rotateY,-(a.rotateZ||a.rotate)]),i.push(["translate",-(a.x||a.r*Math.sin(a.phi*Math.PI/180)),-(a.y||-a.r*Math.cos(a.phi*Math.PI/180)),-a.z]),r.perspectiveScale*=a.scaleX||a.scale}),e.each(i,function(e,t){function r(r){s.current["rotate"+r+"-"+e]===a&&(s.current["rotate"+r+"-"+e]=t[r]||0);var n=s.current["rotate"+r+"-"+e],i=n%360,o=(t[r]||0)%360;i<0&&(i+=360),o<0&&(o+=360);var c=o-i;c<-180?c+=360:c>180&&(c-=360),s.current["rotate"+r+"-"+e]=t[r]=n+c}"rotate"===t[0]&&(r(1),r(2),r(3))})}),e.jmpress("applyTarget",function(t,s){var a,r=s.target,n=(s.stepData,s.settings),o=1.3*r.perspectiveScale<s.current.perspectiveScale,c=r.perspectiveScale>1.3*s.current.perspectiveScale,l=-1;e.each(r.transform,function(e,t){if(!(t.length<=1||"rotate"===t[0]&&t[1]%360==0&&t[2]%360==0&&t[3]%360==0))return"scale"===t[0]&&void(l=e)}),l!==s.current.oldLastScale&&(o=c=!1,s.current.oldLastScale=l);var u=[];if(-1!==l)for(;l>=0;)"scale"===r.transform[l][0]&&(u.push(r.transform[l]),r.transform[l]=["scale"]),l--;var p=n.animation;n.reasonableAnimation[s.reason]&&(p=e.extend({},p,n.reasonableAnimation[s.reason])),a={perspective:Math.round(1e3*r.perspectiveScale)+"px"},a=e.extend({},p,a),o||(a.transitionDelay="0s"),s.beforeActive||(a.transitionDuration="0s",a.transitionDelay="0s"),e.jmpress("css",s.area,a),i.transform(s.area,u),a=e.extend({},p),c||(a.transitionDelay="0s"),s.beforeActive||(a.transitionDuration="0s",a.transitionDelay="0s"),s.current.perspectiveScale=r.perspectiveScale,e.jmpress("css",s.canvas,a),i.transform(s.canvas,r.transform)})}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress,n=r("defaults");n.nestedActiveClass="nested-active",n.activeClass="active",r("setInactive",function(t,s){var a=s.settings,r=a.activeClass,n=a.nestedActiveClass;r&&e(t).removeClass(r),n&&e.each(s.parents,function(t,s){e(s).removeClass(n)})}),r("setActive",function(t,s){var a=s.settings,r=a.activeClass,n=a.nestedActiveClass;r&&e(t).addClass(r),n&&e.each(s.parents,function(t,s){e(s).addClass(n)})})}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress;function n(t,s){return e(this).find(s.settings.stepSelector).first()}function i(t,s,a,r){if(!s)return!1;var n=a.settings.stepSelector;s=e(s);do{var i=s.near(n,r);if(0!==i.length&&0!==i.closest(t).length||(i=e(t).find(n)[r?"last":"first"]()),!i.length)return!1;s=i}while(s.data("stepData").exclude);return s}r("initStep",function(e,t){t.stepData.exclude=t.data.exclude&&-1===["false","no"].indexOf(t.data.exclude)}),r("selectInitialStep",n),r("selectHome",n),r("selectEnd",function(t,s){return e(this).find(s.settings.stepSelector).last()}),r("selectPrev",function(e,t){return i(this,e,t,!0)}),r("selectNext",function(e,t){return i(this,e,t)})}(jQuery,document,window),function(e,t,s,a){"use strict";e.jmpress("selectInitialStep",function(e,t){return t.settings.start})}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress;function n(t,s,a){for(var r=0;r<s.length-1;r++){var n=s[r],i=s[r+1];e(t).jmpress("initialized")?e(n,t).data("stepData")[a]=i:e(n,t).attr("data-"+a,i)}}function i(t,s,a,r){var n=s.stepData;if(n[a]){var i=e(t).near(n[a],r);if(i&&i.length)return i;if((i=e(n[a],this)[r?"last":"first"]())&&i.length)return i}}r("register","route",function(e,t,s){"string"==typeof e&&(e=[e,e]),n(this,e,s?"prev":"next"),t||n(this,e.reverse(),s?"next":"prev")}),r("initStep",function(e,t){for(var s in{next:1,prev:1})t.stepData[s]=t.data[s]}),r("selectNext",function(e,t){return i.call(this,e,t,"next")}),r("selectPrev",function(e,t){return i.call(this,e,t,"prev",!0)})}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress,n="ajax:loadStep";r("register",n),r("register","ajax:afterStepLoaded"),r("defaults").ajaxLoadedClass="loaded",r("initStep",function(t,s){s.stepData.src=e(t).attr("href")||s.data.src||!1,s.stepData.srcLoaded=!1}),r(n,function(t,s){var a=s.stepData,r=a&&a.src,n=s.settings;r&&(e(t).addClass(n.ajaxLoadedClass),a.srcLoaded=!0,e(t).load(r,function(a,r,n){e(s.jmpress).jmpress("fire","ajax:afterStepLoaded",t,e.extend({},s,{response:a,status:r,xhr:n}))}))}),r("idle",function(t,s){if(t){var a=s.settings,r=e(this);s.stepData;e(t).add(e(t).near(a.stepSelector)).add(e(t).near(a.stepSelector,!0)).add(r.jmpress("fire","selectPrev",t,{stepData:e(t).data("stepData")})).add(r.jmpress("fire","selectNext",t,{stepData:e(t).data("stepData")})).each(function(){var t=e(this).data("stepData");t.src&&!t.srcLoaded&&r.jmpress("fire",n,this,{stepData:e(this).data("stepData")})})}}),r("setActive",function(t,s){var a=e(t).data("stepData");a.src&&!a.srcLoaded&&e(this).jmpress("fire",n,t,{stepData:e(t).data("stepData")})})}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress;function n(t){try{var r=e("#"+s.location.hash.replace(/^#\/?/,""));return r.length>0&&r.is(t.stepSelector)?r:a}catch(e){}}function i(e){var t="#/"+e;s.history&&s.history.pushState?s.location.hash!==t&&s.history.pushState({},"",t):s.location.hash!==t&&(s.location.hash=t)}r("defaults").hash={use:!0,update:!0,bindChange:!0},r("selectInitialStep",function(t,a){var r=a.settings,o=r.hash,c=a.current,l=e(this);if(a.current.hashNamespace=".jmpress-"+Math.round(1e5*Math.random(),0),o.use)return o.bindChange&&(e(s).bind("hashchange"+c.hashNamespace,function(e){var t=n(r);l.jmpress("initialized")&&l.jmpress("scrollFix"),t&&t.length&&(t.attr("id")!==l.jmpress("active").attr("id")&&l.jmpress("select",t),i(t.attr("id"))),e.preventDefault()}),e("a[href^='#']").on("click"+c.hashNamespace,function(t){var s=e(this).attr("href");try{e(s).is(r.stepSelector)&&(l.jmpress("select",s),t.preventDefault(),t.stopPropagation())}catch(e){}})),n(r)}),r("afterDeinit",function(t,a){e("a[href^='#']").off(a.current.hashNamespace),e(s).unbind(a.current.hashNamespace)}),r("setActive",function(t,s){var a=s.settings,r=s.current;a.hash.use&&a.hash.update&&(clearTimeout(r.hashtimeout),r.hashtimeout=setTimeout(function(){i(e(s.delegatedFrom).attr("id"))},a.transitionDuration+200))})}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress;function n(e){e.preventDefault(),e.stopPropagation()}r("defaults").keyboard={use:!0,keys:{33:"prev",37:"prev",38:"prev",9:"next:prev",32:"next",34:"next",39:"next",40:"next",36:"home",35:"end"},ignore:{INPUT:[32,37,38,39,40],TEXTAREA:[32,37,38,39,40],SELECT:[38,40]},tabSelector:"a[href]:visible, :input:visible"},r("afterInit",function(s,a){var r=a.settings,i=r.keyboard,o=i.ignore,c=a.current,l=e(this);r.fullscreen||l.attr("tabindex",0),c.keyboardNamespace=".jmpress-"+Math.round(1e5*Math.random(),0),e(r.fullscreen?t:l).bind("keypress"+c.keyboardNamespace,function(e){for(var t in o)if(e.target.nodeName===t&&-1!==o[t].indexOf(e.which))return;(e.which>=37&&e.which<=40||32===e.which)&&n(e)}),e(r.fullscreen?t:l).bind("keydown"+c.keyboardNamespace,function(t){var s=e(t.target);if((r.fullscreen||s.closest(l).length)&&i.use){for(var a in o)if(s[0].nodeName===a&&-1!==o[a].indexOf(t.which))return;var c,u=!1;if(9===t.which){if(s.closest(l.jmpress("active")).length?(c=s.near(i.tabSelector,t.shiftKey),e(c).closest(r.stepSelector).is(l.jmpress("active"))||(c=void 0)):t.shiftKey?u=!0:c=l.jmpress("active").find("a[href], :input").filter(":visible").first(),c&&c.length>0)return c.focus(),l.jmpress("scrollFix"),void n(t);t.shiftKey&&(u=!0)}var p=i.keys[t.which];"string"==typeof p?(-1!==p.indexOf(":")&&(p=p.split(":"),p=t.shiftKey?p[1]:p[0]),l.jmpress(p),n(t)):e.isFunction(p)?p.call(l,t):p&&(l.jmpress.apply(l,p),n(t)),u&&((c=l.jmpress("active").find("a[href], :input").filter(":visible").last()).focus(),l.jmpress("scrollFix"))}})}),r("afterDeinit",function(s,a){e(t).unbind(a.current.keyboardNamespace)})}(jQuery,document,window),function(e,t,s,a){"use strict";var r,n=(r=navigator.userAgent.toLowerCase(),(/(chrome)[ \/]([\w.]+)/.exec(r)||/(webkit)[ \/]([\w.]+)/.exec(r)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(r)||/(msie) ([\w.]+)/.exec(r)||r.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(r)||[])[1]||""),i=e.jmpress("defaults");i.viewPort={width:!1,height:!1,maxScale:0,minScale:0,zoomable:0,zoomBindMove:!0,zoomBindWheel:!0};var o=i.keyboard.keys;function c(e,t){return Math.max(Math.min(e,t),-t)}function l(t,s,a){var r=e(this).jmpress("current"),n=e(this).jmpress("settings"),i=e(this).jmpress("active").data("stepData"),o=e(this).jmpress("container");if(!(0===r.userZoom&&a<0)){var l=i.viewPortZoomable||n.viewPort.zoomable;if(!(r.userZoom===l&&a>0)){r.userZoom+=a;var u=e(o).innerWidth()/2,p=e(o).innerHeight()/2;t=t?t-u:t,s=s?s-p:s,r.userTranslateX=c(r.userTranslateX-a*t/r.zoomOriginWindowScale/l,u*r.userZoom*r.userZoom/l),r.userTranslateY=c(r.userTranslateY-a*s/r.zoomOriginWindowScale/l,p*r.userZoom*r.userZoom/l),e(this).jmpress("reselect","zoom")}}}o["mozilla"===n?107:187]="zoomIn",o["mozilla"===n?109:189]="zoomOut",i.reasonableAnimation.resize={transitionDuration:"0s",transitionDelay:"0ms"},i.reasonableAnimation.zoom={transitionDuration:"0s",transitionDelay:"0ms"},e.jmpress("initStep",function(e,t){for(var s in{viewPortHeight:1,viewPortWidth:1,viewPortMinScale:1,viewPortMaxScale:1,viewPortZoomable:1})t.stepData[s]=t.data[s]&&parseFloat(t.data[s])}),e.jmpress("afterInit",function(a,r){var n=this;r.current.viewPortNamespace=".jmpress-"+Math.round(1e5*Math.random(),0),e(s).bind("resize"+r.current.viewPortNamespace,function(t){e(n).jmpress("reselect","resize")}),r.current.userZoom=0,r.current.userTranslateX=0,r.current.userTranslateY=0,r.settings.viewPort.zoomBindWheel&&e(r.settings.fullscreen?t:this).bind("mousewheel"+r.current.viewPortNamespace+" DOMMouseScroll"+r.current.viewPortNamespace,function(t,s){var a=(s=s||t.originalEvent.wheelDelta||-t.originalEvent.detail)/Math.abs(s);return a<0?e(r.jmpress).jmpress("zoomOut",t.originalEvent.x,t.originalEvent.y):a>0&&e(r.jmpress).jmpress("zoomIn",t.originalEvent.x,t.originalEvent.y),!1}),r.settings.viewPort.zoomBindMove&&e(r.settings.fullscreen?t:this).bind("mousedown"+r.current.viewPortNamespace,function(e){r.current.userZoom&&(r.current.userTranslating={x:e.clientX,y:e.clientY},e.preventDefault(),e.stopImmediatePropagation())}).bind("mousemove"+r.current.viewPortNamespace,function(t){var s=r.current.userTranslating;s&&(e(n).jmpress("zoomTranslate",t.clientX-s.x,t.clientY-s.y),s.x=t.clientX,s.y=t.clientY,t.preventDefault(),t.stopImmediatePropagation())}).bind("mouseup"+r.current.viewPortNamespace,function(e){r.current.userTranslating&&(r.current.userTranslating=void 0,e.preventDefault(),e.stopImmediatePropagation())})}),e.jmpress("register","zoomIn",function(e,t){l.call(this,e||0,t||0,1)}),e.jmpress("register","zoomOut",function(e,t){l.call(this,e||0,t||0,-1)}),e.jmpress("register","zoomTranslate",function(t,s){var a=e(this).jmpress("current"),r=e(this).jmpress("settings"),n=e(this).jmpress("active").data("stepData"),i=e(this).jmpress("container"),o=n.viewPortZoomable||r.viewPort.zoomable,l=e(i).innerWidth(),u=e(i).innerHeight();a.userTranslateX=c(a.userTranslateX+t/a.zoomOriginWindowScale,l*a.userZoom*a.userZoom/o),a.userTranslateY=c(a.userTranslateY+s/a.zoomOriginWindowScale,u*a.userZoom*a.userZoom/o),e(this).jmpress("reselect","zoom")}),e.jmpress("afterDeinit",function(a,r){e(r.settings.fullscreen?t:this).unbind(r.current.viewPortNamespace),e(s).unbind(r.current.viewPortNamespace)}),e.jmpress("setActive",function(t,s){var a=s.settings.viewPort,r=s.stepData.viewPortHeight||a.height,n=s.stepData.viewPortWidth||a.width,i=s.stepData.viewPortMaxScale||a.maxScale,o=s.stepData.viewPortMinScale||a.minScale,c=r&&e(s.container).innerHeight()/r,l=n&&e(s.container).innerWidth()/n,u=(l||c)&&Math.min(l||c,c||l);if(u){u=u||1,i&&(u=Math.min(u,i)),o&&(u=Math.max(u,o));var p=s.stepData.viewPortZoomable||s.settings.viewPort.zoomable;if(p){var f=1/u-1/i;u=1/(1/u-(f/=p)*s.current.userZoom)}s.target.transform.reverse(),s.current.userTranslateX&&s.current.userTranslateY?s.target.transform.push(["translate",s.current.userTranslateX,s.current.userTranslateY,0]):s.target.transform.push(["translate"]),s.target.transform.push(["scale",u,u,1]),s.target.transform.reverse(),s.target.perspectiveScale/=u}s.current.zoomOriginWindowScale=u}),e.jmpress("setInactive",function(t,s){s.nextStep&&t&&e(s.nextStep).attr("id")===e(t).attr("id")||(s.current.userZoom=0,s.current.userTranslateX=0,s.current.userTranslateY=0)})}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress;r("defaults").mouse={clickSelects:!0},r("afterInit",function(t,s){var a=s.settings,r=a.stepSelector,n=s.current,i=e(this);n.clickableStepsNamespace=".jmpress-"+Math.round(1e5*Math.random(),0),i.bind("click"+n.clickableStepsNamespace,function(t){if(a.mouse.clickSelects&&!n.userZoom){var s=e(t.target).closest(r);s.is(i.jmpress("active"))||s.length&&(i.jmpress("select",s[0],"click"),t.preventDefault(),t.stopPropagation())}})}),r("afterDeinit",function(t,s){e(this).unbind(s.current.clickableStepsNamespace)})}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress;r("afterInit",function(s,a){var r=a.settings,n=a.current,i=a.jmpress;n.mobileNamespace=".jmpress-"+Math.round(1e5*Math.random(),0);var o,c=[0,0];e(r.fullscreen?t:i).bind("touchstart"+n.mobileNamespace,function(e){o=e.originalEvent.touches[0],c=[o.pageX,o.pageY]}).bind("touchmove"+n.mobileNamespace,function(e){return o=e.originalEvent.touches[0],e.preventDefault(),!1}).bind("touchend"+n.mobileNamespace,function(t){var s=[o.pageX,o.pageY],a=[s[0]-c[0],s[1]-c[1]];if(Math.max(Math.abs(a[0]),Math.abs(a[1]))>50)return a=Math.abs(a[0])>Math.abs(a[1])?a[0]:a[1],e(i).jmpress(a>0?"prev":"next"),t.preventDefault(),!1})}),r("afterDeinit",function(s,a){var r=a.settings,n=a.current,i=a.jmpress;e(r.fullscreen?t:i).unbind(n.mobileNamespace)})}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress,n="_template_",i={};function o(t,s,r){for(var n in s){var i=n;r&&(i=r+i.substr(0,1).toUpperCase()+i.substr(1)),e.isPlainObject(s[n])?o(t,s[n],i):t[i]===a&&(t[i]=s[n])}}function c(t,s){e.isArray(s)?s.length<t.length?e.error("more nested steps than children in template"):t.each(function(t,a){var r=(a=e(a)).data(n)||{};o(r,s[t]),a.data(n,r)}):e.isFunction(s)&&t.each(function(a,r){var i=(r=e(r)).data(n)||{};o(i,s(a,r,t)),r.data(n,i)})}function l(e,t,s,a){s.children&&c(t.children(a.settings.stepSelector),s.children);!function(e,t){o(e,t)}(e,s)}r("beforeInitStep",function(t,s){t=e(t);var a=s.data,r=a.template,o=t.data("_applied_template_"),c=t.data(n);r&&e.each(r.split(" "),function(e,r){var n=i[r];l(a,t,n,s)}),o&&l(a,t,o,s),c&&(l(a,t,c,s),t.data(n,null),c.template&&e.each(c.template.split(" "),function(e,r){var n=i[r];l(a,t,n,s)}))}),r("beforeInit",function(t,s){var a=r("dataset",this).template,n=s.settings.stepSelector;if(a){var o=i[a];c(e(this).find(n).filter(function(){return!e(this).parent().is(n)}),o.children)}}),r("register","template",function(t,s){i[t]?i[t]=e.extend(!0,{},i[t],s):i[t]=e.extend(!0,{},s)}),r("register","apply",function(t,s){if(s)if(e.isArray(s))c(e(t),s);else{var a;a="string"==typeof s?i[s]:e.extend(!0,{},s),e(t).each(function(t,s){var r=(s=e(s)).data("_applied_template_")||{};o(r,a),s.data("_applied_template_",r)})}else{var r=e(this).jmpress("settings").stepSelector;c(e(this).find(r).filter(function(){return!e(this).parent().is(r)}),t)}})}(jQuery,document,window),function(e,t,s,a){"use strict";e.jmpress("setActive",function(t,s){s.prevStep!==t&&e(t).triggerHandler("enterStep")}),e.jmpress("setInactive",function(t,s){s.nextStep!==t&&e(t).triggerHandler("leaveStep")})}(jQuery,document,window),function(e,t,s,a){"use strict";function r(t,s,a,r){r=r||t.length-1;for(var n=a=a||0;n<r+1;n++)if(e(t[n].element).is(s))return n}function n(t,s,a){e.each(s._on,function(e,s){t.push({substep:s.substep,delay:s.delay+a}),n(t,s.substep,s.delay+a)})}e.jmpress("defaults").customAnimationDataAttribute="jmpress",e.jmpress("afterInit",function(e,t){t.current.animationTimeouts=[],t.current.animationCleanupWaiting=[]}),e.jmpress("applyStep",function(t,s){var a={},i=[];if(e(t).find("[data-"+s.settings.customAnimationDataAttribute+"]").each(function(a,r){e(r).closest(s.settings.stepSelector).is(t)&&i.push({element:r})}),0!==i.length){e.each(i,function(t,a){a.info=function(t){for(var s=t.split(" "),a=s[0],r={willClass:"will-"+a,doClass:"do-"+a,hasClass:"has-"+a},n="",i=1;i<s.length;i++){var o=s[i];switch(n){case"":"after"===o?n="after":e.warn("unknown keyword in '"+t+"'. '"+o+"' unknown.");break;case"after":if(o.match(/^[1-9][0-9]*m?s?/)){var c=parseFloat(o);-1!==o.indexOf("ms")?c*=1:-1!==o.indexOf("s")?c*=1e3:-1!==o.indexOf("m")&&(c*=6e4),r.delay=c}else r.after=Array.prototype.slice.call(s,i).join(" "),i=s.length}}return r}(e(a.element).data(s.settings.customAnimationDataAttribute)),e(a.element).addClass(a.info.willClass),a._on=[],a._after=null});var o={_after:void 0,_on:[],info:{}};if(e.each(i,function(e,t){var s=t.info.after;if(s)if("step"===s)s=o;else if("prev"===s)s=i[e-1];else{var a=r(i,s,0,e-1);void 0===a&&(a=r(i,s)),s=void 0===a||a===e?i[e-1]:i[a]}else s=i[e-1];if(s){if(!t.info.delay){if(!s._after)return void(s._after=t);s=s._after}s._on.push({substep:t,delay:t.info.delay||0})}}),void 0===o._after&&0===o._on.length){var c=r(i,s.stepData.startSubstep)||0;o._after=i[c]}var l=[];do{var u=[{substep:o,delay:0}];n(u,o,0),l.push(u),o=null,e.each(u,p)}while(o);a.list=l,e(t).data("substepsData",a)}function p(e,t){if(t.substep._after)return o=t.substep._after,!1}}),e.jmpress("unapplyStep",function(t,s){var a=e(t).data("substepsData");a&&e.each(a.list,function(t,s){e.each(s,function(t,s){s.substep.info.willClass&&e(s.substep.element).removeClass(s.substep.info.willClass),s.substep.info.hasClass&&e(s.substep.element).removeClass(s.substep.info.hasClass),s.substep.info.doClass&&e(s.substep.element).removeClass(s.substep.info.doClass)})})}),e.jmpress("setActive",function(t,s){var a=e(t).data("substepsData");if(a){void 0===s.substep&&(s.substep="prev"===s.reason?a.list.length-1:0);var r=s.substep;e.each(s.current.animationTimeouts,function(e,t){clearTimeout(t)}),s.current.animationTimeouts=[],e.each(a.list,function(t,a){var n=t<r,i=t<=r;e.each(a,function(t,a){a.substep.info.hasClass&&e(a.substep.element)[(n?"add":"remove")+"Class"](a.substep.info.hasClass),i&&!n&&a.delay&&"prev"!==s.reason?a.substep.info.doClass&&(e(a.substep.element).removeClass(a.substep.info.doClass),s.current.animationTimeouts.push(setTimeout(function(){e(a.substep.element).addClass(a.substep.info.doClass)},a.delay))):a.substep.info.doClass&&e(a.substep.element)[(i?"add":"remove")+"Class"](a.substep.info.doClass)})})}}),e.jmpress("setInactive",function(t,s){if(s.nextStep!==t){e.each(s.current.animationCleanupWaiting,function(t,s){var a;a=s,e.each(a.list,function(t,s){e.each(s,function(t,s){s.substep.info.hasClass&&e(s.substep.element).removeClass(s.substep.info.hasClass),s.substep.info.doClass&&e(s.substep.element).removeClass(s.substep.info.doClass)})})}),s.current.animationCleanupWaiting=[];var a=e(t).data("substepsData");a&&s.current.animationCleanupWaiting.push(a)}}),e.jmpress("selectNext",function(t,s){if(void 0!==s.substep){var a=e(t).data("substepsData");if(a)return s.substep<a.list.length-1?{step:t,substep:s.substep+1}:void 0}}),e.jmpress("selectPrev",function(t,s){if(void 0!==s.substep&&e(t).data("substepsData"))return s.substep>0?{step:t,substep:s.substep-1}:void 0})}(jQuery,document,window), -/*! - * plugin for jmpress.js v0.4.5 - * - * Copyright 2013 Kyle Robinson Young @shama & Tobias Koppers @sokra - * Licensed MIT - * http://www.opensource.org/licenses/mit-license.php - */ -function(e,t,s,a){"use strict";e.jmpress("register","toggle",function(s,a,r){var n=this;e(t).bind("keydown",function(t){t.keyCode===s&&(e(n).jmpress("initialized")?e(n).jmpress("deinit"):e(n).jmpress(a))}),r&&e(n).jmpress(a)})}(jQuery,document,window),function(e,t,s,a){"use strict";function r(t,s,a){if(t.secondary&&-1!==t.secondary.split(" ").indexOf(s)){for(var r in t)if(r.length>9&&0===r.indexOf("secondary")){var n=t[r],i=r.substr(9);i=i.substr(0,1).toLowerCase()+i.substr(1),t[r]=t[i],t[i]=n}e(this).jmpress("reapply",e(a))}}e.jmpress("initStep",function(e,t){for(var s in t.data)0===s.indexOf("secondary")&&(t.stepData[s]=t.data[s])}),e.jmpress("beforeActive",function(t,s){r.call(s.jmpress,e(t).data("stepData"),"self",t);var a=e(t).parent();e(a).children(s.settings.stepSelector).each(function(t,a){var n=e(a).data("stepData");r.call(s.jmpress,n,"siblings",a)});for(var n=1;n<s.parents.length;n++)e(s.parents[n]).children(s.settings.stepSelector).each()}),e.jmpress("setInactive",function(t,s){r.call(s.jmpress,e(t).data("stepData"),"self",t);var a=e(t).parent();function n(t,a){var n=e(a).data("stepData");r.call(s.jmpress,n,"grandchildren",a)}e(a).children(s.settings.stepSelector).each(function(t,a){var n=e(a).data("stepData");r.call(s.jmpress,n,"siblings",a)});for(var i=1;i<s.parents.length;i++)e(s.parents[i]).children(s.settings.stepSelector).each(n)})}(jQuery,document,window),function(e,t,s,a){"use strict";e.jmpress("defaults").duration={defaultValue:-1,defaultAction:"next",barSelector:void 0,barProperty:"width",barPropertyStart:"0",barPropertyEnd:"100%"},e.jmpress("initStep",function(e,t){t.stepData.duration=t.data.duration&&parseInt(t.data.duration,10),t.stepData.durationAction=t.data.durationAction}),e.jmpress("setInactive",function(t,s){var a=s.settings.duration,r=s.current;s.stepData.duration||a.defaultValue;if(r.durationTimeout){if(a.barSelector){var n={transitionProperty:a.barProperty,transitionDuration:"0",transitionDelay:"0",transitionTimingFunction:"linear"};n[a.barProperty]=a.barPropertyStart;var i=e(a.barSelector);e.jmpress("css",i,n),i.each(function(t,s){var a=e(s).next(),r=e(s).parent();e(s).detach(),a.length?a.insertBefore(s):r.append(s)})}clearTimeout(r.durationTimeout),delete r.durationTimeout}}),e.jmpress("setActive",function(t,s){var a=s.settings,r=a.duration,n=s.current,i=s.stepData.duration||r.defaultValue;if(i&&i>0){if(r.barSelector){var o={transitionProperty:r.barProperty,transitionDuration:i-2*a.transitionDuration/3-100+"ms",transitionDelay:2*a.transitionDuration/3+"ms",transitionTimingFunction:"linear"};o[r.barProperty]=r.barPropertyEnd,e.jmpress("css",e(r.barSelector),o)}var c=this;n.durationTimeout&&(clearTimeout(n.durationTimeout),n.durationTimeout=void 0),n.durationTimeout=setTimeout(function(){var t=s.stepData.durationAction||r.defaultAction;e(c).jmpress(t)},i)}})}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress,n="jmpress-presentation-";r("defaults").presentationMode={use:!0,url:"presentation-screen.html",notesUrl:!1,transferredValues:["userZoom","userTranslateX","userTranslateY"]},r("defaults").keyboard.keys[80]="presentationPopup",r("afterInit",function(t,a){var r=a.current;if(r.selectMessageListeners=[],a.settings.presentationMode.use){s.addEventListener("message",function(t){try{if("string"!=typeof t.data||0!==t.data.indexOf(n))return;var i=JSON.parse(t.data.slice(n.length));switch(i.type){case"select":e.each(a.settings.presentationMode.transferredValues,function(e,t){a.current[t]=i[t]}),/[a-z0-9\-]+/i.test(i.targetId)&&typeof i.substep in{number:1,undefined:1}?e(a.jmpress).jmpress("select",{step:"#"+i.targetId,substep:i.substep},i.reason):e.error("For security reasons the targetId must match /[a-z0-9\\-]+/i and substep must be a number.");break;case"listen":r.selectMessageListeners.push(t.source);break;case"ok":clearTimeout(r.presentationPopupTimeout);break;case"read":try{t.source.postMessage(n+JSON.stringify({type:"url",url:s.location.href,notesUrl:a.settings.presentationMode.notesUrl}),"*")}catch(t){e.error("Cannot post message to source: "+t)}break;default:throw"Unknown message type: "+i.type}}catch(t){e.error("Received message is malformed: "+t)}});try{s.parent&&s.parent!==s&&s.parent.postMessage(n+JSON.stringify({type:"afterInit"}),"*")}catch(t){e.error("Cannot post message to parent: "+t)}}}),r("afterDeinit",function(t,a){if(a.settings.presentationMode.use)try{s.parent&&s.parent!==s&&s.parent.postMessage(n+JSON.stringify({type:"afterDeinit"}),"*")}catch(t){e.error("Cannot post message to parent: "+t)}}),r("setActive",function(t,s){var a=e(s.delegatedFrom).attr("id"),r=s.substep,i=s.reason;e.each(s.current.selectMessageListeners,function(t,o){try{var c={type:"select",targetId:a,substep:r,reason:i};e.each(s.settings.presentationMode.transferredValues,function(e,t){c[t]=s.current[t]}),o.postMessage(n+JSON.stringify(c),"*")}catch(t){e.error("Cannot post message to listener: "+t)}})}),r("register","presentationPopup",function(){var t,a=e(this);a.jmpress("settings").presentationMode.use&&(t=s.open(e(this).jmpress("settings").presentationMode.url),a.jmpress("current").presentationPopupTimeout=setTimeout(function e(){a.jmpress("current").presentationPopupTimeout=setTimeout(e,100);try{t.postMessage(n+JSON.stringify({type:"url",url:s.location.href,notesUrl:a.jmpress("settings").presentationMode.notesUrl}),"*")}catch(e){}},100))})}(jQuery,document,window);
\ No newline at end of file +/*! For license information please see jmpress.min.js.LICENSE.txt */ +!function(e,t,s,a){"use strict";var r,n,i,o=(r=t.createElement("dummy").style,n="Webkit Moz O ms Khtml".split(" "),i={},function(e){if(void 0===i[e]){var t=e.charAt(0).toUpperCase()+e.substr(1),s=(e+" "+n.join(t+" ")+t).split(" ");for(var o in i[e]=null,s)if(r[s[o]]!==a){i[e]=s[o];break}}return i[e]});function c(e){if(e){var t=1+e.substr(1).search(/[A-Z]/);return"-"+e.substr(0,t).toLowerCase()+"-"+e.substr(t).toLowerCase()}}function l(e){return e?e+",":""}function u(e){return e.length>0?e:null}var p={stepSelector:".step",containerClass:"",canvasClass:"",areaClass:"",notSupportedClass:"not-supported",fullscreen:!0,animation:{transformOrigin:"top left",transitionProperty:l(c(o("transform")))+l(c(o("perspective")))+"opacity",transitionDuration:"1s",transitionDelay:"500ms",transitionTimingFunction:"ease-in-out",transformStyle:"preserve-3d"},transitionDuration:1500},f={beforeChange:1,beforeInitStep:1,initStep:1,beforeInit:1,afterInit:1,beforeDeinit:1,afterDeinit:1,applyStep:1,unapplyStep:1,setInactive:1,beforeActive:1,setActive:1,selectInitialStep:1,selectPrev:1,selectNext:1,selectHome:1,selectEnd:1,idle:1,applyTarget:1};for(var d in f)p[d]=[];function m(r){r=e.extend(!0,{},r||{});var n={},i=null;for(i in f)n[i]=e.isFunction(r[i])?[r[i]]:r[i],r[i]=[];var o=e.extend(!0,{},p,r);for(i in f)n[i]&&Array.prototype.push.apply(o[i],n[i]);var c=e(this),l=null,d=null,m={container:"",area:""},g=null,b=null,y=!1,j=null,D=!1;function S(t,s){var a=v(t),r={oldStyle:e(t).attr("style")||""},n={data:a,stepData:r};C.call(this,"beforeInitStep",e(t),n),r.delegate=a.delegate,C.call(this,"initStep",e(t),n),e(t).data("stepData",r),e(t).attr("id")||e(t).attr("id","step-"+(s+1)),C.call(this,"applyStep",e(t),n)}function w(t){var s=e(t).data("stepData");e(t).attr("style",s.oldStyle),C.call(this,"unapplyStep",e(t),{stepData:s})}function x(){y&&C.call(this,"setInactive",y,{stepData:e(y).data("stepData"),reason:"deinit"}),b.jmpressClass&&e(c).removeClass(b.jmpressClass),C.call(this,"beforeDeinit",e(this),{}),e(o.stepSelector,c).each((function(e){w.call(c,this)})),l.attr("style",m.container),o.fullscreen&&e("html").attr("style",""),d.attr("style",m.area),e(g).children().each((function(){c.append(e(this))})),o.fullscreen?g.remove():(g.remove(),d.remove()),C.call(this,"afterDeinit",e(this),{}),e(c).data("jmpressmethods",!1)}function C(t,s,a){a.settings=o,a.current=b,a.container=l,a.parents=s?e(s).parentsUntil(c).not(c).filter(o.stepSelector):null,a.current=b,a.jmpress=this;var r={};return e.each(o[t],(function(e,t){r.value=t.call(c,s,a)||r.value})),r.value}function T(t,s){var r;if(e.isPlainObject(t)&&(r=t.substep,t=t.step),"string"==typeof t&&(t=c.find(t).first()),!t||!e(t).data("stepData"))return!1;P.call(this);var n=e(t).data("stepData"),i=!1;if(C.call(this,"beforeChange",t,{stepData:n,reason:s,cancel:function(){i=!0}}),i)return a;var l={},p=t;e(t).data("stepData").delegate&&((p=u(e(t).parentsUntil(c).filter(o.stepSelector).filter(n.delegate))||u(e(t).near(n.delegate))||u(e(t).near(n.delegate,!0))||u(e(n.delegate,c)))?n=p.data("stepData"):p=t),D&&C.call(this,"setInactive",D,{stepData:e(D).data("stepData"),delegatedFrom:y,reason:s,target:l,nextStep:p,nextSubstep:r,nextStepData:n});var f={stepData:n,delegatedFrom:t,reason:s,target:l,substep:r,prevStep:D,prevSubstep:j,prevStepData:D&&e(D).data("stepData")};return C.call(this,"beforeActive",p,f),C.call(this,"setActive",p,f),b.jmpressClass&&e(c).removeClass(b.jmpressClass),e(c).addClass(b.jmpressClass="step-"+e(p).attr("id")),b.jmpressDelegatedClass&&e(c).removeClass(b.jmpressDelegatedClass),e(c).addClass(b.jmpressDelegatedClass="delegating-step-"+e(t).attr("id")),C.call(this,"applyTarget",p,e.extend({canvas:g,area:d,beforeActive:D},f)),y=t,j=f.substep,D=p,b.idleTimeout&&clearTimeout(b.idleTimeout),b.idleTimeout=setTimeout((function(){C.call(this,"idle",p,f)}),Math.max(1,o.transitionDuration-100)),p}function P(){!function t(){if("BODY"===e(l)[0].tagName)try{s.scrollTo(0,0)}catch(e){}function a(){0===e(l).scrollTop()&&0===e(l).scrollLeft()||t()}e(l).scrollTop(0),e(l).scrollLeft(0),setTimeout(a,1),setTimeout(a,10),setTimeout(a,100),setTimeout(a,200),setTimeout(a,400)}()}if(c.data("jmpressmethods",{select:T,reselect:function(e){return T({step:y,substep:j},e)},scrollFix:P,goTo:function(e){return T.call(this,e,"jump")},next:function(){return T.call(this,C.call(this,"selectNext",y,{stepData:e(y).data("stepData"),substep:j}),"next")},prev:function(){return T.call(this,C.call(this,"selectPrev",y,{stepData:e(y).data("stepData"),substep:j}),"prev")},home:function(){return T.call(this,C.call(this,"selectHome",y,{stepData:e(y).data("stepData")}),"home")},end:function(){return T.call(this,C.call(this,"selectEnd",y,{stepData:e(y).data("stepData")}),"end")},canvas:function(t){return h(g,t||{}),e(g)},container:function(){return l},settings:function(){return o},active:function(){return D&&e(D)},current:function(){return b},fire:function(t,s,a){if(f[t])return C.call(this,t,s,a);e.error("callback "+t+" is not registered.")},init:function(t){S.call(this,e(t),b.nextIdNumber++)},deinit:function(t){t?w.call(this,e(t)):x.call(this)},reapply:function(t){C.call(this,"unapplyStep",e(t),{stepData:t.data("stepData")}),C.call(this,"applyStep",e(t),{stepData:t.data("stepData")})}}),0!=(-1===(M=navigator.userAgent.toLowerCase()).search(/(iphone)|(ipod)|(android)/)||-1!==M.search(/(chrome)/))){var M;o.notSupportedClass&&c.removeClass(o.notSupportedClass);var A=e(o.stepSelector,c);l=c,d=e("<div />"),g=e("<div />"),e(c).children().filter(A).each((function(){g.append(e(this))})),o.fullscreen&&(l=e("body"),e("html").css({overflow:"hidden"}),d=c),m.area=d.attr("style")||"",m.container=l.attr("style")||"",o.fullscreen?(l.css({height:"100%"}),c.append(g)):(l.css({position:"relative"}),d.append(g),c.append(d)),e(l).addClass(o.containerClass),e(d).addClass(o.areaClass),e(g).addClass(o.canvasClass),t.documentElement.style.height="100%",l.css({overflow:"hidden"});var I={position:"absolute",transitionDuration:"0s"};I=e.extend({},o.animation,I),h(d,I),h(d,{top:"50%",left:"50%",perspective:"1000px"}),h(g,I),b={},C.call(this,"beforeInit",null,{}),A.each((function(e){S.call(c,this,e)})),b.nextIdNumber=A.length,C.call(this,"afterInit",null,{}),T.call(this,C.call(this,"selectInitialStep","init",{})),o.initClass&&e(A).removeClass(o.initClass)}else o.notSupportedClass&&c.addClass(o.notSupportedClass)}function h(t,s){var a,r,n={};for(a in s)s.hasOwnProperty(a)&&null!==(r=o(a))&&(n[r]=s[a]);return e(t).css(n),t}function v(t){if(e(t)[0].dataset)return e.extend({},e(t)[0].dataset);var s={},a=e(t)[0].attributes;return e.each(a,(function(e,t){"data-"===t.nodeName.substr(0,5)&&(s[function(e){e=e.split("-");for(var t=1;t<e.length;t++)e[t]=e[t].substr(0,1).toUpperCase()+e[t].substr(1);return e.join("")}(t.nodeName.substr(5))]=t.nodeValue)})),s}var g={init:m,initialized:function(){return!!e(this).data("jmpressmethods")},deinit:function(){},css:h,pfx:o,defaults:function(){return p},register:function(t,s){e.isFunction(s)?g[t]?e.error("function "+t+" is already registered."):g[t]=s:f[t]?e.error("callback "+t+" is already registered."):(f[t]=1,p[t]=[])},dataset:v};e.fn.jmpress=function(t){function s(){var s=e(this).data("jmpressmethods");if(s&&s[t])return s[t].apply(this,Array.prototype.slice.call(arguments,1));if(g[t])return g[t].apply(this,Array.prototype.slice.call(arguments,1));if(f[t]&&s){var a=s.settings(),r=Array.prototype.slice.call(arguments,1)[0];e.isFunction(r)&&(a[t]=a[t]||[],a[t].push(r))}else{if("object"==typeof t||!t)return m.apply(this,arguments);e.error("Method "+t+" does not exist on jQuery.jmpress")}return this}var a,r=arguments;return e(this).each((function(e,t){a=s.apply(t,r)})),a},e.extend({jmpress:function(t){if(g[t])return g[t].apply(this,Array.prototype.slice.call(arguments,1));if(f[t]){var s=Array.prototype.slice.call(arguments,1)[0];e.isFunction(s)?p[t].push(s):e.error("Second parameter should be a function: $.jmpress( callbackName, callbackFunction )")}else e.error("Method "+t+" does not exist on jQuery.jmpress")}})}(jQuery,document,window),function(e,t,s,a){"use strict";function r(t,s,a,r){var n;return t.each((function(t,i){return(!r||!(n=s(i,a,r)))&&(e(i).is(a)?(n=i,!1):!(!r&&(n=s(i,a,r)))&&void 0)})),n}function n(t,s,a){var i=e(t).children();return a&&(i=e(i.get().reverse())),r(i,n,s,a)}function i(t,s,a){return r(e(t)[a?"prevAll":"nextAll"](),n,s,a)}e.fn.near=function(t,s){var a=[];return e(this).each((function(r,o){var c=!s&&n(o,t,s)||i(o,t,s)||function(t,s,a){var r,n=e(t).parents();return n=e(n.get()),e.each(n.get(),(function(t,n){return a&&e(n).is(s)?(r=n,!1):!(r=i(n,s,a))&&void 0})),r}(o,t,s);c&&a.push(c)})),e(a)}}(jQuery,document,window),function(e,t,s,a){"use strict";function r(e){return Math.round(1e4*e)/1e4+""}var n={3:{transform:function(t,s){var a="translate(-50%,-50%)";e.each(s,(function(e,t){var s,n=["X","Y","Z"];if("translate"===t[0])a+=" translate3d("+r(t[1]||0)+"px,"+r(t[2]||0)+"px,"+r(t[3]||0)+"px)";else if("rotate"===t[0]){var i=t[4]?[1,2,3]:[3,2,1];for(s=0;s<3;s++)a+=" rotate"+n[i[s]-1]+"("+r(t[i[s]]||0)+"deg)"}else if("scale"===t[0])for(s=0;s<3;s++)a+=" scale"+n[s]+"("+r(t[s+1]||1)+")"})),e.jmpress("css",t,e.extend({},{transform:a}))}},2:{transform:function(t,s){var a="translate(-50%,-50%)";e.each(s,(function(e,t){var s=["X","Y"];if("translate"===t[0])a+=" translate("+r(t[1]||0)+"px,"+r(t[2]||0)+"px)";else if("rotate"===t[0])a+=" rotate("+r(t[3]||0)+"deg)";else if("scale"===t[0])for(var n=0;n<2;n++)a+=" scale"+s[n]+"("+r(t[n+1]||1)+")"})),e.jmpress("css",t,e.extend({},{transform:a}))}},1:{transform:function(t,s){var a={top:0,left:0};e.each(s,(function(e,t){"translate"===t[0]&&(a.left=Math.round(t[1]||0)+"px",a.top=Math.round(t[2]||0)+"px")})),t.animate(a,1e3)}}},i=e.jmpress("pfx","perspective")?n[3]:e.jmpress("pfx","transform")?n[2]:n[1];e.jmpress("defaults").reasonableAnimation={},e.jmpress("initStep",(function(t,s){var a=s.data,r=s.stepData,n=parseFloat;e.extend(r,{x:n(a.x)||0,y:n(a.y)||0,z:n(a.z)||0,r:n(a.r)||0,phi:n(a.phi)||0,rotate:n(a.rotate)||0,rotateX:n(a.rotateX)||0,rotateY:n(a.rotateY)||0,rotateZ:n(a.rotateZ)||0,revertRotate:!1,scale:n(a.scale)||1,scaleX:n(a.scaleX)||!1,scaleY:n(a.scaleY)||!1,scaleZ:n(a.scaleZ)||1})})),e.jmpress("afterInit",(function(t,s){var a=s.settings.stepSelector,r=s.current;r.perspectiveScale=1,r.maxNestedDepth=0;for(var n=e(s.jmpress).find(a).children(a);n.length;)r.maxNestedDepth++,n=n.children(a)})),e.jmpress("applyStep",(function(t,s){e.jmpress("css",e(t),{position:"absolute",transformStyle:"preserve-3d"}),s.parents.length>0&&e.jmpress("css",e(t),{top:"50%",left:"50%"});var a=s.stepData,r=[["translate",a.x||a.r*Math.sin(a.phi*Math.PI/180),a.y||-a.r*Math.cos(a.phi*Math.PI/180),a.z],["rotate",a.rotateX,a.rotateY,a.rotateZ||a.rotate,!0],["scale",a.scaleX||a.scale,a.scaleY||a.scale,a.scaleZ||a.scale]];i.transform(t,r)})),e.jmpress("setActive",(function(t,s){var a=s.target,r=s.stepData,n=a.transform=[];a.perspectiveScale=1;for(var i=s.current.maxNestedDepth;i>(s.parents.length||0);i--)n.push(["scale"],["rotate"],["translate"]);n.push(["scale",1/(r.scaleX||r.scale),1/(r.scaleY||r.scale),1/r.scaleZ]),n.push(["rotate",-r.rotateX,-r.rotateY,-(r.rotateZ||r.rotate)]),n.push(["translate",-(r.x||r.r*Math.sin(r.phi*Math.PI/180)),-(r.y||-r.r*Math.cos(r.phi*Math.PI/180)),-r.z]),a.perspectiveScale*=r.scaleX||r.scale,e.each(s.parents,(function(t,s){var r=e(s).data("stepData");n.push(["scale",1/(r.scaleX||r.scale),1/(r.scaleY||r.scale),1/r.scaleZ]),n.push(["rotate",-r.rotateX,-r.rotateY,-(r.rotateZ||r.rotate)]),n.push(["translate",-(r.x||r.r*Math.sin(r.phi*Math.PI/180)),-(r.y||-r.r*Math.cos(r.phi*Math.PI/180)),-r.z]),a.perspectiveScale*=r.scaleX||r.scale})),e.each(n,(function(e,t){function a(a){void 0===s.current["rotate"+a+"-"+e]&&(s.current["rotate"+a+"-"+e]=t[a]||0);var r=s.current["rotate"+a+"-"+e],n=r%360,i=(t[a]||0)%360;n<0&&(n+=360),i<0&&(i+=360);var o=i-n;o<-180?o+=360:o>180&&(o-=360),s.current["rotate"+a+"-"+e]=t[a]=r+o}"rotate"===t[0]&&(a(1),a(2),a(3))}))})),e.jmpress("applyTarget",(function(t,s){var a,r=s.target,n=(s.stepData,s.settings),o=1.3*r.perspectiveScale<s.current.perspectiveScale,c=r.perspectiveScale>1.3*s.current.perspectiveScale,l=-1;e.each(r.transform,(function(e,t){if(!(t.length<=1||"rotate"===t[0]&&t[1]%360==0&&t[2]%360==0&&t[3]%360==0))return"scale"===t[0]&&void(l=e)})),l!==s.current.oldLastScale&&(o=c=!1,s.current.oldLastScale=l);var u=[];if(-1!==l)for(;l>=0;)"scale"===r.transform[l][0]&&(u.push(r.transform[l]),r.transform[l]=["scale"]),l--;var p=n.animation;n.reasonableAnimation[s.reason]&&(p=e.extend({},p,n.reasonableAnimation[s.reason])),a={perspective:Math.round(1e3*r.perspectiveScale)+"px"},a=e.extend({},p,a),o||(a.transitionDelay="0s"),s.beforeActive||(a.transitionDuration="0s",a.transitionDelay="0s"),e.jmpress("css",s.area,a),i.transform(s.area,u),a=e.extend({},p),c||(a.transitionDelay="0s"),s.beforeActive||(a.transitionDuration="0s",a.transitionDelay="0s"),s.current.perspectiveScale=r.perspectiveScale,e.jmpress("css",s.canvas,a),i.transform(s.canvas,r.transform)}))}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress,n=r("defaults");n.nestedActiveClass="nested-active",n.activeClass="active",r("setInactive",(function(t,s){var a=s.settings,r=a.activeClass,n=a.nestedActiveClass;r&&e(t).removeClass(r),n&&e.each(s.parents,(function(t,s){e(s).removeClass(n)}))})),r("setActive",(function(t,s){var a=s.settings,r=a.activeClass,n=a.nestedActiveClass;r&&e(t).addClass(r),n&&e.each(s.parents,(function(t,s){e(s).addClass(n)}))}))}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress;function n(t,s){return e(this).find(s.settings.stepSelector).first()}function i(t,s,a,r){if(!s)return!1;var n=a.settings.stepSelector;s=e(s);do{var i=s.near(n,r);if(0!==i.length&&0!==i.closest(t).length||(i=e(t).find(n)[r?"last":"first"]()),!i.length)return!1;s=i}while(s.data("stepData").exclude);return s}r("initStep",(function(e,t){t.stepData.exclude=t.data.exclude&&-1===["false","no"].indexOf(t.data.exclude)})),r("selectInitialStep",n),r("selectHome",n),r("selectEnd",(function(t,s){return e(this).find(s.settings.stepSelector).last()})),r("selectPrev",(function(e,t){return i(this,e,t,!0)})),r("selectNext",(function(e,t){return i(this,e,t)}))}(jQuery,document,window),function(e,t,s,a){"use strict";e.jmpress("selectInitialStep",(function(e,t){return t.settings.start}))}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress;function n(t,s,a){for(var r=0;r<s.length-1;r++){var n=s[r],i=s[r+1];e(t).jmpress("initialized")?e(n,t).data("stepData")[a]=i:e(n,t).attr("data-"+a,i)}}function i(t,s,a,r){var n=s.stepData;if(n[a]){var i=e(t).near(n[a],r);if(i&&i.length)return i;if((i=e(n[a],this)[r?"last":"first"]())&&i.length)return i}}r("register","route",(function(e,t,s){"string"==typeof e&&(e=[e,e]),n(this,e,s?"prev":"next"),t||n(this,e.reverse(),s?"next":"prev")})),r("initStep",(function(e,t){for(var s in{next:1,prev:1})t.stepData[s]=t.data[s]})),r("selectNext",(function(e,t){return i.call(this,e,t,"next")})),r("selectPrev",(function(e,t){return i.call(this,e,t,"prev",!0)}))}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress,n="ajax:afterStepLoaded",i="ajax:loadStep";r("register",i),r("register",n),r("defaults").ajaxLoadedClass="loaded",r("initStep",(function(t,s){s.stepData.src=e(t).attr("href")||s.data.src||!1,s.stepData.srcLoaded=!1})),r(i,(function(t,s){var a=s.stepData,r=a&&a.src,i=s.settings;r&&(e(t).addClass(i.ajaxLoadedClass),a.srcLoaded=!0,e(t).load(r,(function(a,r,i){e(s.jmpress).jmpress("fire",n,t,e.extend({},s,{response:a,status:r,xhr:i}))})))})),r("idle",(function(t,s){if(t){var a=s.settings,r=e(this);s.stepData,e(t).add(e(t).near(a.stepSelector)).add(e(t).near(a.stepSelector,!0)).add(r.jmpress("fire","selectPrev",t,{stepData:e(t).data("stepData")})).add(r.jmpress("fire","selectNext",t,{stepData:e(t).data("stepData")})).each((function(){var t=this,s=e(t).data("stepData");s.src&&!s.srcLoaded&&r.jmpress("fire",i,t,{stepData:e(t).data("stepData")})}))}})),r("setActive",(function(t,s){var a=e(t).data("stepData");a.src&&!a.srcLoaded&&e(this).jmpress("fire",i,t,{stepData:e(t).data("stepData")})}))}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress,n="a[href^='#']";function i(t){try{var a=e("#"+s.location.hash.replace(/^#\/?/,""));return a.length>0&&a.is(t.stepSelector)?a:void 0}catch(e){}}function o(e){var t="#/"+e;s.history&&s.history.pushState?s.location.hash!==t&&s.history.pushState({},"",t):s.location.hash!==t&&(s.location.hash=t)}r("defaults").hash={use:!0,update:!0,bindChange:!0},r("selectInitialStep",(function(t,a){var r=a.settings,c=r.hash,l=a.current,u=e(this);if(a.current.hashNamespace=".jmpress-"+Math.round(1e5*Math.random(),0),c.use)return c.bindChange&&(e(s).bind("hashchange"+l.hashNamespace,(function(e){var t=i(r);u.jmpress("initialized")&&u.jmpress("scrollFix"),t&&t.length&&(t.attr("id")!==u.jmpress("active").attr("id")&&u.jmpress("select",t),o(t.attr("id"))),e.preventDefault()})),e(n).on("click"+l.hashNamespace,(function(t){var s=e(this).attr("href");try{e(s).is(r.stepSelector)&&(u.jmpress("select",s),t.preventDefault(),t.stopPropagation())}catch(e){}}))),i(r)})),r("afterDeinit",(function(t,a){e(n).off(a.current.hashNamespace),e(s).unbind(a.current.hashNamespace)})),r("setActive",(function(t,s){var a=s.settings,r=s.current;a.hash.use&&a.hash.update&&(clearTimeout(r.hashtimeout),r.hashtimeout=setTimeout((function(){o(e(s.delegatedFrom).attr("id"))}),a.transitionDuration+200))}))}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress,n="next",i="prev";function o(e){e.preventDefault(),e.stopPropagation()}r("defaults").keyboard={use:!0,keys:{33:i,37:i,38:i,9:"next:prev",32:n,34:n,39:n,40:n,36:"home",35:"end"},ignore:{INPUT:[32,37,38,39,40],TEXTAREA:[32,37,38,39,40],SELECT:[38,40]},tabSelector:"a[href]:visible, :input:visible"},r("afterInit",(function(s,a){var r=a.settings,n=r.keyboard,i=n.ignore,c=a.current,l=e(this);r.fullscreen||l.attr("tabindex",0),c.keyboardNamespace=".jmpress-"+Math.round(1e5*Math.random(),0),e(r.fullscreen?t:l).bind("keypress"+c.keyboardNamespace,(function(e){for(var t in i)if(e.target.nodeName===t&&-1!==i[t].indexOf(e.which))return;(e.which>=37&&e.which<=40||32===e.which)&&o(e)})),e(r.fullscreen?t:l).bind("keydown"+c.keyboardNamespace,(function(t){var s=e(t.target);if((r.fullscreen||s.closest(l).length)&&n.use){for(var a in i)if(s[0].nodeName===a&&-1!==i[a].indexOf(t.which))return;var c,u=!1;if(9===t.which){if(s.closest(l.jmpress("active")).length?(c=s.near(n.tabSelector,t.shiftKey),e(c).closest(r.stepSelector).is(l.jmpress("active"))||(c=void 0)):t.shiftKey?u=!0:c=l.jmpress("active").find("a[href], :input").filter(":visible").first(),c&&c.length>0)return c.focus(),l.jmpress("scrollFix"),void o(t);t.shiftKey&&(u=!0)}var p=n.keys[t.which];"string"==typeof p?(-1!==p.indexOf(":")&&(p=p.split(":"),p=t.shiftKey?p[1]:p[0]),l.jmpress(p),o(t)):e.isFunction(p)?p.call(l,t):p&&(l.jmpress.apply(l,p),o(t)),u&&((c=l.jmpress("active").find("a[href], :input").filter(":visible").last()).focus(),l.jmpress("scrollFix"))}}))})),r("afterDeinit",(function(s,a){e(t).unbind(a.current.keyboardNamespace)}))}(jQuery,document,window),function(e,t,s,a){"use strict";var r,n=(r=navigator.userAgent.toLowerCase(),(/(chrome)[ \/]([\w.]+)/.exec(r)||/(webkit)[ \/]([\w.]+)/.exec(r)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(r)||/(msie) ([\w.]+)/.exec(r)||r.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(r)||[])[1]||""),i=e.jmpress("defaults");i.viewPort={width:!1,height:!1,maxScale:0,minScale:0,zoomable:0,zoomBindMove:!0,zoomBindWheel:!0};var o=i.keyboard.keys;function c(e,t){return Math.max(Math.min(e,t),-t)}function l(t,s,a){var r=e(this).jmpress("current"),n=e(this).jmpress("settings"),i=e(this).jmpress("active").data("stepData"),o=e(this).jmpress("container");if(!(0===r.userZoom&&a<0)){var l=i.viewPortZoomable||n.viewPort.zoomable;if(!(r.userZoom===l&&a>0)){r.userZoom+=a;var u=e(o).innerWidth()/2,p=e(o).innerHeight()/2;t=t?t-u:t,s=s?s-p:s,r.userTranslateX=c(r.userTranslateX-a*t/r.zoomOriginWindowScale/l,u*r.userZoom*r.userZoom/l),r.userTranslateY=c(r.userTranslateY-a*s/r.zoomOriginWindowScale/l,p*r.userZoom*r.userZoom/l),e(this).jmpress("reselect","zoom")}}}o["mozilla"===n?107:187]="zoomIn",o["mozilla"===n?109:189]="zoomOut",i.reasonableAnimation.resize={transitionDuration:"0s",transitionDelay:"0ms"},i.reasonableAnimation.zoom={transitionDuration:"0s",transitionDelay:"0ms"},e.jmpress("initStep",(function(e,t){for(var s in{viewPortHeight:1,viewPortWidth:1,viewPortMinScale:1,viewPortMaxScale:1,viewPortZoomable:1})t.stepData[s]=t.data[s]&&parseFloat(t.data[s])})),e.jmpress("afterInit",(function(a,r){var n=this;r.current.viewPortNamespace=".jmpress-"+Math.round(1e5*Math.random(),0),e(s).bind("resize"+r.current.viewPortNamespace,(function(t){e(n).jmpress("reselect","resize")})),r.current.userZoom=0,r.current.userTranslateX=0,r.current.userTranslateY=0,r.settings.viewPort.zoomBindWheel&&e(r.settings.fullscreen?t:this).bind("mousewheel"+r.current.viewPortNamespace+" DOMMouseScroll"+r.current.viewPortNamespace,(function(t,s){var a=(s=s||t.originalEvent.wheelDelta||-t.originalEvent.detail)/Math.abs(s);return a<0?e(r.jmpress).jmpress("zoomOut",t.originalEvent.x,t.originalEvent.y):a>0&&e(r.jmpress).jmpress("zoomIn",t.originalEvent.x,t.originalEvent.y),!1})),r.settings.viewPort.zoomBindMove&&e(r.settings.fullscreen?t:this).bind("mousedown"+r.current.viewPortNamespace,(function(e){r.current.userZoom&&(r.current.userTranslating={x:e.clientX,y:e.clientY},e.preventDefault(),e.stopImmediatePropagation())})).bind("mousemove"+r.current.viewPortNamespace,(function(t){var s=r.current.userTranslating;s&&(e(n).jmpress("zoomTranslate",t.clientX-s.x,t.clientY-s.y),s.x=t.clientX,s.y=t.clientY,t.preventDefault(),t.stopImmediatePropagation())})).bind("mouseup"+r.current.viewPortNamespace,(function(e){r.current.userTranslating&&(r.current.userTranslating=void 0,e.preventDefault(),e.stopImmediatePropagation())}))})),e.jmpress("register","zoomIn",(function(e,t){l.call(this,e||0,t||0,1)})),e.jmpress("register","zoomOut",(function(e,t){l.call(this,e||0,t||0,-1)})),e.jmpress("register","zoomTranslate",(function(t,s){var a=e(this).jmpress("current"),r=e(this).jmpress("settings"),n=e(this).jmpress("active").data("stepData"),i=e(this).jmpress("container"),o=n.viewPortZoomable||r.viewPort.zoomable,l=e(i).innerWidth(),u=e(i).innerHeight();a.userTranslateX=c(a.userTranslateX+t/a.zoomOriginWindowScale,l*a.userZoom*a.userZoom/o),a.userTranslateY=c(a.userTranslateY+s/a.zoomOriginWindowScale,u*a.userZoom*a.userZoom/o),e(this).jmpress("reselect","zoom")})),e.jmpress("afterDeinit",(function(a,r){e(r.settings.fullscreen?t:this).unbind(r.current.viewPortNamespace),e(s).unbind(r.current.viewPortNamespace)})),e.jmpress("setActive",(function(t,s){var a=s.settings.viewPort,r=s.stepData.viewPortHeight||a.height,n=s.stepData.viewPortWidth||a.width,i=s.stepData.viewPortMaxScale||a.maxScale,o=s.stepData.viewPortMinScale||a.minScale,c=r&&e(s.container).innerHeight()/r,l=n&&e(s.container).innerWidth()/n,u=(l||c)&&Math.min(l||c,c||l);if(u){u=u||1,i&&(u=Math.min(u,i)),o&&(u=Math.max(u,o));var p=s.stepData.viewPortZoomable||s.settings.viewPort.zoomable;if(p){var f=1/u-1/i;u=1/(1/u-(f/=p)*s.current.userZoom)}s.target.transform.reverse(),s.current.userTranslateX&&s.current.userTranslateY?s.target.transform.push(["translate",s.current.userTranslateX,s.current.userTranslateY,0]):s.target.transform.push(["translate"]),s.target.transform.push(["scale",u,u,1]),s.target.transform.reverse(),s.target.perspectiveScale/=u}s.current.zoomOriginWindowScale=u})),e.jmpress("setInactive",(function(t,s){s.nextStep&&t&&e(s.nextStep).attr("id")===e(t).attr("id")||(s.current.userZoom=0,s.current.userTranslateX=0,s.current.userTranslateY=0)}))}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress;r("defaults").mouse={clickSelects:!0},r("afterInit",(function(t,s){var a=s.settings,r=a.stepSelector,n=s.current,i=e(this);n.clickableStepsNamespace=".jmpress-"+Math.round(1e5*Math.random(),0),i.bind("click"+n.clickableStepsNamespace,(function(t){if(a.mouse.clickSelects&&!n.userZoom){var s=e(t.target).closest(r);s.is(i.jmpress("active"))||s.length&&(i.jmpress("select",s[0],"click"),t.preventDefault(),t.stopPropagation())}}))})),r("afterDeinit",(function(t,s){e(this).unbind(s.current.clickableStepsNamespace)}))}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress;r("afterInit",(function(s,a){var r=a.settings,n=a.current,i=a.jmpress;n.mobileNamespace=".jmpress-"+Math.round(1e5*Math.random(),0);var o,c=[0,0];e(r.fullscreen?t:i).bind("touchstart"+n.mobileNamespace,(function(e){o=e.originalEvent.touches[0],c=[o.pageX,o.pageY]})).bind("touchmove"+n.mobileNamespace,(function(e){return o=e.originalEvent.touches[0],e.preventDefault(),!1})).bind("touchend"+n.mobileNamespace,(function(t){var s=[o.pageX,o.pageY],a=[s[0]-c[0],s[1]-c[1]];if(Math.max(Math.abs(a[0]),Math.abs(a[1]))>50)return a=Math.abs(a[0])>Math.abs(a[1])?a[0]:a[1],e(i).jmpress(a>0?"prev":"next"),t.preventDefault(),!1}))})),r("afterDeinit",(function(s,a){var r=a.settings,n=a.current,i=a.jmpress;e(r.fullscreen?t:i).unbind(n.mobileNamespace)}))}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress,n="_template_",i="_applied_template_",o={};function c(t,s,a){for(var r in s){var n=r;a&&(n=a+n.substr(0,1).toUpperCase()+n.substr(1)),e.isPlainObject(s[r])?c(t,s[r],n):void 0===t[n]&&(t[n]=s[r])}}function l(t,s){e.isArray(s)?s.length<t.length?e.error("more nested steps than children in template"):t.each((function(t,a){var r=(a=e(a)).data(n)||{};c(r,s[t]),a.data(n,r)})):e.isFunction(s)&&t.each((function(a,r){var i=(r=e(r)).data(n)||{};c(i,s(a,r,t)),r.data(n,i)}))}function u(e,t,s,a){s.children&&l(t.children(a.settings.stepSelector),s.children),function(e,t){c(e,t)}(e,s)}r("beforeInitStep",(function(t,s){t=e(t);var a=s.data,r=a.template,c=t.data(i),l=t.data(n);r&&e.each(r.split(" "),(function(e,r){var n=o[r];u(a,t,n,s)})),c&&u(a,t,c,s),l&&(u(a,t,l,s),t.data(n,null),l.template&&e.each(l.template.split(" "),(function(e,r){var n=o[r];u(a,t,n,s)})))})),r("beforeInit",(function(t,s){var a=r("dataset",this).template,n=s.settings.stepSelector;if(a){var i=o[a];l(e(this).find(n).filter((function(){return!e(this).parent().is(n)})),i.children)}})),r("register","template",(function(t,s){o[t]?o[t]=e.extend(!0,{},o[t],s):o[t]=e.extend(!0,{},s)})),r("register","apply",(function(t,s){if(s)if(e.isArray(s))l(e(t),s);else{var a;a="string"==typeof s?o[s]:e.extend(!0,{},s),e(t).each((function(t,s){var r=(s=e(s)).data(i)||{};c(r,a),s.data(i,r)}))}else{var r=e(this).jmpress("settings").stepSelector;l(e(this).find(r).filter((function(){return!e(this).parent().is(r)})),t)}}))}(jQuery,document,window),function(e,t,s,a){"use strict";e.jmpress("setActive",(function(t,s){s.prevStep!==t&&e(t).triggerHandler("enterStep")})),e.jmpress("setInactive",(function(t,s){s.nextStep!==t&&e(t).triggerHandler("leaveStep")}))}(jQuery,document,window),function(e,t,s,a){"use strict";function r(t,s,a,r){r=r||t.length-1;for(var n=a=a||0;n<r+1;n++)if(e(t[n].element).is(s))return n}function n(t,s,a){e.each(s._on,(function(e,s){t.push({substep:s.substep,delay:s.delay+a}),n(t,s.substep,s.delay+a)}))}e.jmpress("defaults").customAnimationDataAttribute="jmpress",e.jmpress("afterInit",(function(e,t){t.current.animationTimeouts=[],t.current.animationCleanupWaiting=[]})),e.jmpress("applyStep",(function(t,s){var i={},o=[];if(e(t).find("[data-"+s.settings.customAnimationDataAttribute+"]").each((function(a,r){e(r).closest(s.settings.stepSelector).is(t)&&o.push({element:r})})),0!==o.length){e.each(o,(function(t,a){a.info=function(t){for(var s=t.split(" "),a=s[0],r={willClass:"will-"+a,doClass:"do-"+a,hasClass:"has-"+a},n="",i=1;i<s.length;i++){var o=s[i];switch(n){case"":"after"===o?n="after":e.warn("unknown keyword in '"+t+"'. '"+o+"' unknown.");break;case"after":if(o.match(/^[1-9][0-9]*m?s?/)){var c=parseFloat(o);-1!==o.indexOf("ms")?c*=1:-1!==o.indexOf("s")?c*=1e3:-1!==o.indexOf("m")&&(c*=6e4),r.delay=c}else r.after=Array.prototype.slice.call(s,i).join(" "),i=s.length}}return r}(e(a.element).data(s.settings.customAnimationDataAttribute)),e(a.element).addClass(a.info.willClass),a._on=[],a._after=null}));var c={_after:a,_on:[],info:{}};if(e.each(o,(function(e,t){var s=t.info.after;if(s)if("step"===s)s=c;else if("prev"===s)s=o[e-1];else{var n=r(o,s,0,e-1);n===a&&(n=r(o,s)),s=n===a||n===e?o[e-1]:o[n]}else s=o[e-1];if(s){if(!t.info.delay){if(!s._after)return void(s._after=t);s=s._after}s._on.push({substep:t,delay:t.info.delay||0})}})),c._after===a&&0===c._on.length){var l=r(o,s.stepData.startSubstep)||0;c._after=o[l]}var u=[];do{var p=[{substep:c,delay:0}];n(p,c,0),u.push(p),c=null,e.each(p,f)}while(c);i.list=u,e(t).data("substepsData",i)}function f(e,t){if(t.substep._after)return c=t.substep._after,!1}})),e.jmpress("unapplyStep",(function(t,s){var a=e(t).data("substepsData");a&&e.each(a.list,(function(t,s){e.each(s,(function(t,s){s.substep.info.willClass&&e(s.substep.element).removeClass(s.substep.info.willClass),s.substep.info.hasClass&&e(s.substep.element).removeClass(s.substep.info.hasClass),s.substep.info.doClass&&e(s.substep.element).removeClass(s.substep.info.doClass)}))}))})),e.jmpress("setActive",(function(t,s){var r=e(t).data("substepsData");if(r){s.substep===a&&(s.substep="prev"===s.reason?r.list.length-1:0);var n=s.substep;e.each(s.current.animationTimeouts,(function(e,t){clearTimeout(t)})),s.current.animationTimeouts=[],e.each(r.list,(function(t,a){var r=t<n,i=t<=n;e.each(a,(function(t,a){a.substep.info.hasClass&&e(a.substep.element)[(r?"add":"remove")+"Class"](a.substep.info.hasClass),i&&!r&&a.delay&&"prev"!==s.reason?a.substep.info.doClass&&(e(a.substep.element).removeClass(a.substep.info.doClass),s.current.animationTimeouts.push(setTimeout((function(){e(a.substep.element).addClass(a.substep.info.doClass)}),a.delay))):a.substep.info.doClass&&e(a.substep.element)[(i?"add":"remove")+"Class"](a.substep.info.doClass)}))}))}})),e.jmpress("setInactive",(function(t,s){if(s.nextStep!==t){e.each(s.current.animationCleanupWaiting,(function(t,s){!function(t){e.each(t.list,(function(t,s){e.each(s,(function(t,s){s.substep.info.hasClass&&e(s.substep.element).removeClass(s.substep.info.hasClass),s.substep.info.doClass&&e(s.substep.element).removeClass(s.substep.info.doClass)}))}))}(s)})),s.current.animationCleanupWaiting=[];var a=e(t).data("substepsData");a&&s.current.animationCleanupWaiting.push(a)}})),e.jmpress("selectNext",(function(t,s){if(s.substep!==a){var r=e(t).data("substepsData");if(r)return s.substep<r.list.length-1?{step:t,substep:s.substep+1}:void 0}})),e.jmpress("selectPrev",(function(t,s){if(s.substep!==a&&e(t).data("substepsData"))return s.substep>0?{step:t,substep:s.substep-1}:void 0}))}(jQuery,document,window),function(e,t,s,a){"use strict";e.jmpress("register","toggle",(function(s,a,r){var n=this;e(t).bind("keydown",(function(t){t.keyCode===s&&(e(n).jmpress("initialized")?e(n).jmpress("deinit"):e(n).jmpress(a))})),r&&e(n).jmpress(a)}))}(jQuery,document,window),function(e,t,s,a){"use strict";function r(t,s,a){if(t.secondary&&-1!==t.secondary.split(" ").indexOf(s)){for(var r in t)if(r.length>9&&0===r.indexOf("secondary")){var n=t[r],i=r.substr(9);i=i.substr(0,1).toLowerCase()+i.substr(1),t[r]=t[i],t[i]=n}e(this).jmpress("reapply",e(a))}}e.jmpress("initStep",(function(e,t){for(var s in t.data)0===s.indexOf("secondary")&&(t.stepData[s]=t.data[s])})),e.jmpress("beforeActive",(function(t,s){r.call(s.jmpress,e(t).data("stepData"),"self",t);var a=e(t).parent();e(a).children(s.settings.stepSelector).each((function(t,a){var n=e(a).data("stepData");r.call(s.jmpress,n,"siblings",a)}));for(var n=1;n<s.parents.length;n++)e(s.parents[n]).children(s.settings.stepSelector).each()})),e.jmpress("setInactive",(function(t,s){r.call(s.jmpress,e(t).data("stepData"),"self",t);var a=e(t).parent();function n(t,a){var n=e(a).data("stepData");r.call(s.jmpress,n,"grandchildren",a)}e(a).children(s.settings.stepSelector).each((function(t,a){var n=e(a).data("stepData");r.call(s.jmpress,n,"siblings",a)}));for(var i=1;i<s.parents.length;i++)e(s.parents[i]).children(s.settings.stepSelector).each(n)}))}(jQuery,document,window),function(e,t,s,a){"use strict";e.jmpress("defaults").duration={defaultValue:-1,defaultAction:"next",barSelector:a,barProperty:"width",barPropertyStart:"0",barPropertyEnd:"100%"},e.jmpress("initStep",(function(e,t){t.stepData.duration=t.data.duration&&parseInt(t.data.duration,10),t.stepData.durationAction=t.data.durationAction})),e.jmpress("setInactive",(function(t,s){var a=s.settings.duration,r=s.current;if(s.stepData.duration||a.defaultValue,r.durationTimeout){if(a.barSelector){var n={transitionProperty:a.barProperty,transitionDuration:"0",transitionDelay:"0",transitionTimingFunction:"linear"};n[a.barProperty]=a.barPropertyStart;var i=e(a.barSelector);e.jmpress("css",i,n),i.each((function(t,s){var a=e(s).next(),r=e(s).parent();e(s).detach(),a.length?a.insertBefore(s):r.append(s)}))}clearTimeout(r.durationTimeout),delete r.durationTimeout}})),e.jmpress("setActive",(function(t,s){var r=s.settings,n=r.duration,i=s.current,o=s.stepData.duration||n.defaultValue;if(o&&o>0){if(n.barSelector){var c={transitionProperty:n.barProperty,transitionDuration:o-2*r.transitionDuration/3-100+"ms",transitionDelay:2*r.transitionDuration/3+"ms",transitionTimingFunction:"linear"};c[n.barProperty]=n.barPropertyEnd,e.jmpress("css",e(n.barSelector),c)}var l=this;i.durationTimeout&&(clearTimeout(i.durationTimeout),i.durationTimeout=a),i.durationTimeout=setTimeout((function(){var t=s.stepData.durationAction||n.defaultAction;e(l).jmpress(t)}),o)}}))}(jQuery,document,window),function(e,t,s,a){"use strict";var r=e.jmpress,n="jmpress-presentation-";r("defaults").presentationMode={use:!0,url:"presentation-screen.html",notesUrl:!1,transferredValues:["userZoom","userTranslateX","userTranslateY"]},r("defaults").keyboard.keys[80]="presentationPopup",r("afterInit",(function(t,a){var r=a.current;if(r.selectMessageListeners=[],a.settings.presentationMode.use){s.addEventListener("message",(function(t){try{if("string"!=typeof t.data||0!==t.data.indexOf(n))return;var i=JSON.parse(t.data.slice(n.length));switch(i.type){case"select":e.each(a.settings.presentationMode.transferredValues,(function(e,t){a.current[t]=i[t]})),/[a-z0-9\-]+/i.test(i.targetId)&&typeof i.substep in{number:1,undefined:1}?e(a.jmpress).jmpress("select",{step:"#"+i.targetId,substep:i.substep},i.reason):e.error("For security reasons the targetId must match /[a-z0-9\\-]+/i and substep must be a number.");break;case"listen":r.selectMessageListeners.push(t.source);break;case"ok":clearTimeout(r.presentationPopupTimeout);break;case"read":try{t.source.postMessage(n+JSON.stringify({type:"url",url:s.location.href,notesUrl:a.settings.presentationMode.notesUrl}),"*")}catch(t){e.error("Cannot post message to source: "+t)}break;default:throw"Unknown message type: "+i.type}}catch(t){e.error("Received message is malformed: "+t)}}));try{s.parent&&s.parent!==s&&s.parent.postMessage(n+JSON.stringify({type:"afterInit"}),"*")}catch(t){e.error("Cannot post message to parent: "+t)}}})),r("afterDeinit",(function(t,a){if(a.settings.presentationMode.use)try{s.parent&&s.parent!==s&&s.parent.postMessage(n+JSON.stringify({type:"afterDeinit"}),"*")}catch(t){e.error("Cannot post message to parent: "+t)}})),r("setActive",(function(t,s){var a=e(s.delegatedFrom).attr("id"),r=s.substep,i=s.reason;e.each(s.current.selectMessageListeners,(function(t,o){try{var c={type:"select",targetId:a,substep:r,reason:i};e.each(s.settings.presentationMode.transferredValues,(function(e,t){c[t]=s.current[t]})),o.postMessage(n+JSON.stringify(c),"*")}catch(t){e.error("Cannot post message to listener: "+t)}}))})),r("register","presentationPopup",(function(){var t,a=e(this);a.jmpress("settings").presentationMode.use&&(t=s.open(e(this).jmpress("settings").presentationMode.url),a.jmpress("current").presentationPopupTimeout=setTimeout((function e(){a.jmpress("current").presentationPopupTimeout=setTimeout(e,100);try{t.postMessage(n+JSON.stringify({type:"url",url:s.location.href,notesUrl:a.jmpress("settings").presentationMode.notesUrl}),"*")}catch(e){}}),100))}))}(jQuery,document,window);
\ No newline at end of file diff --git a/plugins/jetpack/_inc/build/shortcodes/js/jmpress.min.js.LICENSE.txt b/plugins/jetpack/_inc/build/shortcodes/js/jmpress.min.js.LICENSE.txt new file mode 100644 index 00000000..5ed29ea0 --- /dev/null +++ b/plugins/jetpack/_inc/build/shortcodes/js/jmpress.min.js.LICENSE.txt @@ -0,0 +1,7 @@ +/*! + * plugin for jmpress.js v0.4.5 + * + * Copyright 2013 Kyle Robinson Young @shama & Tobias Koppers @sokra + * Licensed MIT + * http://www.opensource.org/licenses/mit-license.php + */ diff --git a/plugins/jetpack/_inc/build/shortcodes/js/main.min.asset.php b/plugins/jetpack/_inc/build/shortcodes/js/main.min.asset.php new file mode 100644 index 00000000..b4ae7529 --- /dev/null +++ b/plugins/jetpack/_inc/build/shortcodes/js/main.min.asset.php @@ -0,0 +1 @@ +<?php return array('dependencies' => array(), 'version' => '0c901f0f0fbffab3bdd5e5e6995e7d03');
\ No newline at end of file diff --git a/plugins/jetpack/_inc/build/shortcodes/js/main.min.js b/plugins/jetpack/_inc/build/shortcodes/js/main.min.js index a7875c9e..c7385e95 100644 --- a/plugins/jetpack/_inc/build/shortcodes/js/main.min.js +++ b/plugins/jetpack/_inc/build/shortcodes/js/main.min.js @@ -1,2 +1 @@ -/* Do not modify this file directly. It is compiled from other files. */ -!function(s){var t={fullscreen:!1,hash:{use:!1},mouse:{clickSelects:!1},keyboard:{use:!0},animation:{transitionDuration:"1s"},presentationMode:!1,stepSelector:".step",duration:{defaultValue:0}};function e(e){var i,o,n,l;(i=this).wrapper=s(e),i.slideshow=s(".presentation",e),i.navLeft=s(".nav-arrow-left",e),i.navRight=s(".nav-arrow-right",e),i.expandButton=s(".nav-fullscreen-button",e),i.overlay=s(".autoplay-overlay",e),i.fullscreen=!1,i.autoPlaying=!1,i.autoplayTime=parseFloat(i.slideshow.attr("data-autoplay"),10)||0,i.wrapper.css({width:i.slideshow.width(),height:i.slideshow.height()}),o=i.slideshow.attr("duration")||"1s",t.animation.transitionDuration=o,i.autoplayTime&&(i.autoplayTime+=1e3*parseFloat(o,10)),o="opacity "+o,n={width:i.slideshow.width(),height:i.slideshow.height(),"-webkit-transition":o,"-moz-transition":o,"-ms-transition":o,"-o-transition":o,transition:o},s(".step",i.slideshow).each(function(t,e){s(e).css(n)}),s(".step.fadebullets li",i.slideshow).each(function(t,e){s(e).attr("data-jmpress","fade")}),s(window).resize(function(){i.fullscreen&&i.resizePresentation()}),i.navLeft.on("click",function(){return i.slideshow.jmpress("prev"),i.overlay.css("opacity",0),!1}),i.navRight.on("click",function(){return i.slideshow.jmpress("next"),i.overlay.css("opacity",0),!1}),i.slideshow.on("click",function(){return i.setAutoplay(!0),!1}),i.slideshow.on("focusout",function(){i.setAutoplay(!1)}),(l=/MSIE\s(\d+)\.\d+/.exec(navigator.userAgent))&&parseInt(l[1],10)<10?(i.expandButton.remove(),i.expandButton=null):i.expandButton.on("click",function(){return i.setFullscreen(!i.fullscreen),!1}),s(window).on("keydown",function(s){27===s.which&&i.setFullscreen(!1)}),i.slideshow.jmpress(t),i.slideshow.jmpress("initialized")&&(i.slideshow.css("display",""),i.overlay.css("display",""),s(".not-supported-msg",i.wrapper).remove()),i.setFullscreen(!1)}s.extend(e.prototype,{resizePresentation:function(){var t,e,i,o,n,l;e=(i=this.slideshow.jmpress("settings")).animation.transitionDuration,i.animation.transitionDuration="0s",this.slideshow.jmpress("reselect"),t=1,o={top:0,left:0,zoom:1},this.fullscreen&&(n=s(window).width()/this.slideshow.width(),l=s(window).height()/this.slideshow.height(),t=Math.min(n,l),o.top=(s(window).height()-t*this.slideshow.height())/2,o.left=(s(window).width()-t*this.slideshow.width())/2),this.slideshow.css("-moz-transform")||this.slideshow.css("-ms-transform")?(o.top+=(t-1)*this.slideshow.height()/2,o.left+=(t-1)*this.slideshow.width()/2,t="scale("+t+")",s.extend(o,{"-moz-transform":t,"-ms-transform":t,transform:t})):(o.top/=t,o.left/=t,o.zoom=t),this.slideshow.css(o),i.animation.transitionDuration=e,this.slideshow.jmpress("reselect")},setFullscreen:function(t){this.fullscreen=t,this.setAutoplay(!1),t&&(this.scrollVert=s(window).scrollTop(),this.scrollHoriz=s(window).scrollLeft(),s(window).scrollTop(0),s(window).scrollLeft(0)),s("html").toggleClass("presentation-global-fullscreen",t),s("body").toggleClass("presentation-global-fullscreen",t),this.wrapper.toggleClass("presentation-wrapper-fullscreen",t),this.wrapper.parents().each(function(e,i){s(i).toggleClass("presentation-wrapper-fullscreen-parent",t)}),this.resizePresentation(),t||(s(window).scrollTop(this.scrollVert),s(window).scrollLeft(this.scrollHoriz))},setAutoplay:function(s){var t;this.autoPlaying!==s&&(t=s&&this.autoplayTime>0?this.autoplayTime:0,this.slideshow.jmpress("settings").duration.defaultValue=t,t?(this.slideshow.jmpress("next"),this.overlay.css("opacity",0)):this.slideshow.jmpress("reselect"),this.autoPlaying=s)}}),s(document).ready(function(){s(".presentation-wrapper").map(function(){new e(this)})})}(jQuery);
\ No newline at end of file +!function(s){var t={fullscreen:!1,hash:{use:!1},mouse:{clickSelects:!1},keyboard:{use:!0},animation:{transitionDuration:"1s"},presentationMode:!1,stepSelector:".step",duration:{defaultValue:0}};function e(e){var i,o,n,l;(i=this).wrapper=s(e),i.slideshow=s(".presentation",e),i.navLeft=s(".nav-arrow-left",e),i.navRight=s(".nav-arrow-right",e),i.expandButton=s(".nav-fullscreen-button",e),i.overlay=s(".autoplay-overlay",e),i.fullscreen=!1,i.autoPlaying=!1,i.autoplayTime=parseFloat(i.slideshow.attr("data-autoplay"),10)||0,i.wrapper.css({width:i.slideshow.width(),height:i.slideshow.height()}),o=i.slideshow.attr("duration")||"1s",t.animation.transitionDuration=o,i.autoplayTime&&(i.autoplayTime+=1e3*parseFloat(o,10)),o="opacity "+o,n={width:i.slideshow.width(),height:i.slideshow.height(),"-webkit-transition":o,"-moz-transition":o,"-ms-transition":o,"-o-transition":o,transition:o},s(".step",i.slideshow).each((function(t,e){s(e).css(n)})),s(".step.fadebullets li",i.slideshow).each((function(t,e){s(e).attr("data-jmpress","fade")})),s(window).resize((function(){i.fullscreen&&i.resizePresentation()})),i.navLeft.on("click",(function(){return i.slideshow.jmpress("prev"),i.overlay.css("opacity",0),!1})),i.navRight.on("click",(function(){return i.slideshow.jmpress("next"),i.overlay.css("opacity",0),!1})),i.slideshow.on("click",(function(){return i.setAutoplay(!0),!1})),i.slideshow.on("focusout",(function(){i.setAutoplay(!1)})),(l=/MSIE\s(\d+)\.\d+/.exec(navigator.userAgent))&&parseInt(l[1],10)<10?(i.expandButton.remove(),i.expandButton=null):i.expandButton.on("click",(function(){return i.setFullscreen(!i.fullscreen),!1})),s(window).on("keydown",(function(s){27===s.which&&i.setFullscreen(!1)})),i.slideshow.jmpress(t),i.slideshow.jmpress("initialized")&&(i.slideshow.css("display",""),i.overlay.css("display",""),s(".not-supported-msg",i.wrapper).remove()),i.setFullscreen(!1)}s.extend(e.prototype,{resizePresentation:function(){var t,e,i,o,n,l;e=(i=this.slideshow.jmpress("settings")).animation.transitionDuration,i.animation.transitionDuration="0s",this.slideshow.jmpress("reselect"),t=1,o={top:0,left:0,zoom:1},this.fullscreen&&(n=s(window).width()/this.slideshow.width(),l=s(window).height()/this.slideshow.height(),t=Math.min(n,l),o.top=(s(window).height()-t*this.slideshow.height())/2,o.left=(s(window).width()-t*this.slideshow.width())/2),this.slideshow.css("-moz-transform")||this.slideshow.css("-ms-transform")?(o.top+=(t-1)*this.slideshow.height()/2,o.left+=(t-1)*this.slideshow.width()/2,t="scale("+t+")",s.extend(o,{"-moz-transform":t,"-ms-transform":t,transform:t})):(o.top/=t,o.left/=t,o.zoom=t),this.slideshow.css(o),i.animation.transitionDuration=e,this.slideshow.jmpress("reselect")},setFullscreen:function(t){this.fullscreen=t,this.setAutoplay(!1),t&&(this.scrollVert=s(window).scrollTop(),this.scrollHoriz=s(window).scrollLeft(),s(window).scrollTop(0),s(window).scrollLeft(0)),s("html").toggleClass("presentation-global-fullscreen",t),s("body").toggleClass("presentation-global-fullscreen",t),this.wrapper.toggleClass("presentation-wrapper-fullscreen",t),this.wrapper.parents().each((function(e,i){s(i).toggleClass("presentation-wrapper-fullscreen-parent",t)})),this.resizePresentation(),t||(s(window).scrollTop(this.scrollVert),s(window).scrollLeft(this.scrollHoriz))},setAutoplay:function(s){var t,e=this;e.autoPlaying!==s&&(t=s&&e.autoplayTime>0?e.autoplayTime:0,e.slideshow.jmpress("settings").duration.defaultValue=t,t?(e.slideshow.jmpress("next"),e.overlay.css("opacity",0)):e.slideshow.jmpress("reselect"),e.autoPlaying=s)}}),s(document).ready((function(){s(".presentation-wrapper").map((function(){new e(this)}))}))}(jQuery);
\ No newline at end of file diff --git a/plugins/jetpack/_inc/build/shortcodes/js/quiz.min.asset.php b/plugins/jetpack/_inc/build/shortcodes/js/quiz.min.asset.php new file mode 100644 index 00000000..3ed39275 --- /dev/null +++ b/plugins/jetpack/_inc/build/shortcodes/js/quiz.min.asset.php @@ -0,0 +1 @@ +<?php return array('dependencies' => array(), 'version' => 'fc0284fce49acf40c2399a2b9f706e28');
\ No newline at end of file diff --git a/plugins/jetpack/_inc/build/shortcodes/js/quiz.min.js b/plugins/jetpack/_inc/build/shortcodes/js/quiz.min.js index c9103bf0..db518a02 100644 --- a/plugins/jetpack/_inc/build/shortcodes/js/quiz.min.js +++ b/plugins/jetpack/_inc/build/shortcodes/js/quiz.min.js @@ -1,2 +1 @@ -/* Do not modify this file directly. It is compiled from other files. */ -!function(a){a.fn.shuffleQuiz=function(){var t=this.get(),i=a.map(t,function(){var i,n=(i=t.length,Math.floor(Math.random()*i)),c=a(t[n]).clone(!0)[0];return t.splice(n,1),c});return this.each(function(t){a(this).replaceWith(a(i[t]))}),a(i)}}(jQuery),jQuery(function(a){a(".jetpack-quiz").each(function(){var t=a(this);t.find("div.jetpack-quiz-answer").shuffleQuiz(),t.find("div[data-correct]").removeAttr("data-correct").data("correct",1),t.find("div.jetpack-quiz-answer:last").addClass("last")}),a("div.jetpack-quiz").on("click","div.jetpack-quiz-answer",function(){var t,i=a(this),n=i.closest("div.jetpack-quiz");n.data("a8ctraining")&&((new Image).src="//pixel.wp.com/b.gif?v=wpcom-no-pv&x_trainingchaos-"+n.data("username")+"="+n.data("a8ctraining")+"&rand="+Math.random(),n.data("a8ctraining",!1),n.data("trackid",!1)),t=n.data("trackid"),i.data("correct")?(i.addClass("correct"),t&&((new Image).src="//pixel.wp.com/b.gif?v=wpcom-no-pv&x_quiz-"+t+"=correct&rand="+Math.random())):(i.addClass("wrong"),t&&((new Image).src="//pixel.wp.com/b.gif?v=wpcom-no-pv&x_quiz-"+t+"=wrong&rand="+Math.random())),n.data("trackid",!1)})});
\ No newline at end of file +!function(){var t;(t=jQuery).fn.shuffleQuiz=function(){var a=this.get(),e=t.map(a,(function(){var e,n=(e=a.length,Math.floor(Math.random()*e)),i=t(a[n]).clone(!0)[0];return a.splice(n,1),i}));return this.each((function(a){t(this).replaceWith(t(e[a]))})),t(e)},jQuery((function(t){t(".jetpack-quiz").each((function(){var a=t(this);a.find("div.jetpack-quiz-answer").shuffleQuiz(),a.find("div[data-correct]").removeAttr("data-correct").data("correct",1),a.find("div.jetpack-quiz-answer:last").addClass("last")})),t("div.jetpack-quiz").on("click","div.jetpack-quiz-answer",(function(){var a,e=t(this),n=e.closest("div.jetpack-quiz");n.data("a8ctraining")&&((new Image).src="//pixel.wp.com/b.gif?v=wpcom-no-pv&x_trainingchaos-"+n.data("username")+"="+n.data("a8ctraining")+"&rand="+Math.random(),n.data("a8ctraining",!1),n.data("trackid",!1)),a=n.data("trackid"),e.data("correct")?(e.addClass("correct"),a&&((new Image).src="//pixel.wp.com/b.gif?v=wpcom-no-pv&x_quiz-"+a+"=correct&rand="+Math.random())):(e.addClass("wrong"),a&&((new Image).src="//pixel.wp.com/b.gif?v=wpcom-no-pv&x_quiz-"+a+"=wrong&rand="+Math.random())),n.data("trackid",!1)}))})),document.querySelectorAll(".jetpack-quiz-wrapper").forEach((function(t){t.childNodes.forEach((function(a,e){a.style.display="none",a.setAttribute("quiz-number",e),a.querySelector(".jetpack-quiz-count").innerHTML=e+1+"/"+t.childElementCount})),t.childNodes[0].style.display="block"})),document.querySelectorAll(".jetpack-quiz-option-button").forEach((function(t){t.addEventListener("click",(function(){var a=t.parentElement.parentElement;a.style.display="none";var e="next"===t.getAttribute("data-quiz-option")?1:-1,n=a.parentElement.childNodes[parseInt(a.getAttribute("quiz-number"))+e];n.style.display="block";var i=n.querySelector(".jetpack-quiz-question");i&&i.focus()}))}))}();
\ No newline at end of file diff --git a/plugins/jetpack/_inc/build/shortcodes/js/recipes-printthis.min.asset.php b/plugins/jetpack/_inc/build/shortcodes/js/recipes-printthis.min.asset.php new file mode 100644 index 00000000..59bc59cf --- /dev/null +++ b/plugins/jetpack/_inc/build/shortcodes/js/recipes-printthis.min.asset.php @@ -0,0 +1 @@ +<?php return array('dependencies' => array(), 'version' => '7753ff296d2d1b7fda6fc14f1c251333');
\ No newline at end of file diff --git a/plugins/jetpack/_inc/build/shortcodes/js/recipes-printthis.min.js b/plugins/jetpack/_inc/build/shortcodes/js/recipes-printthis.min.js index 434fa495..2b970b1c 100644 --- a/plugins/jetpack/_inc/build/shortcodes/js/recipes-printthis.min.js +++ b/plugins/jetpack/_inc/build/shortcodes/js/recipes-printthis.min.js @@ -1,40 +1,2 @@ -/* Do not modify this file directly. It is compiled from other files. */ -/* - * printThis v1.9.0 - * @desc Printing plug-in for jQuery - * @author Jason Day - * - * Resources (based on) : - * jPrintArea: http://plugins.jquery.com/project/jPrintArea - * jqPrint: https://github.com/permanenttourist/jquery.jqprint - * Ben Nadal: http://www.bennadel.com/blog/1591-Ask-Ben-Print-Part-Of-A-Web-Page-With-jQuery.htm - * - * Licensed under the MIT licence: - * http://www.opensource.org/licenses/mit-license.php - * - * (c) Jason Day 2015 - * - * Usage: - * - * $("#mySelector").printThis({ - * debug: false, * show the iframe for debugging - * importCSS: true, * import page CSS - * importStyle: false, * import style tags - * printContainer: true, * grab outer container as well as the contents of the selector - * loadCSS: "path/to/my.css", * path to additional css file - us an array [] for multiple - * pageTitle: "", * add title to print page - * removeInline: false, * remove all inline styles from print elements - * printDelay: 333, * variable print delay - * header: null, * prefix to html - * footer: null, * postfix to html - * base: false, * preserve the BASE tag, or accept a string for the URL - * formValues: true * preserve input/form values - * canvas: false * copy canvas elements (experimental) - * doctypeString: '...' * enter a different doctype for older markup - * }); - * - * Notes: - * - the loadCSS will load additional css (with or without @media print) into the iframe, adjusting layout - * - */ -!function(e){var t;e.fn.printThis=function(n){t=e.extend({},e.fn.printThis.defaults,n);var i=this instanceof jQuery?this:e(this),a="printThis-"+(new Date).getTime();if(window.location.hostname!==document.domain&&navigator.userAgent.match(/msie/i)){var o='javascript:document.write("<head><script>document.domain=\\"'+document.domain+'\\";<\/script></head><body></body>")',r=document.createElement("iframe");r.name="printIframe",r.id=a,r.className="MSIE",document.body.appendChild(r),r.src=o}else{e("<iframe id='"+a+"' name='printIframe' />").appendTo("body")}var d=e("#"+a);t.debug||d.css({position:"absolute",width:"0px",height:"0px",left:"-600px",top:"-600px"}),setTimeout(function(){t.doctypeString&&function(e,t){var n,i;(i=(n=(n=e.get(0)).contentWindow||n.contentDocument||n).document||n.contentDocument||n).open(),i.write(t),i.close()}(d,t.doctypeString);var n,a=d.contents(),o=a.find("head"),r=a.find("body"),s=e("base");if(n=!0===t.base&&s.length>0?s.attr("href"):"string"==typeof t.base?t.base:document.location.protocol+"//"+document.location.host,o.append('<base href="'+n+'">'),t.importCSS&&e("link[rel=stylesheet]").each(function(){var t=e(this).attr("href");if(t){var n=e(this).attr("media")||"all";o.append("<link type='text/css' rel='stylesheet' href='"+t+"' media='"+n+"'>")}}),t.importStyle&&e("style").each(function(){e(this).clone().appendTo(o)}),t.pageTitle&&o.append("<title>"+t.pageTitle+"</title>"),t.loadCSS&&(e.isArray(t.loadCSS)?jQuery.each(t.loadCSS,function(e,t){o.append("<link type='text/css' rel='stylesheet' href='"+this+"'>")}):o.append("<link type='text/css' rel='stylesheet' href='"+t.loadCSS+"'>")),t.header&&r.append(t.header),t.canvas){var c=0;i.find("canvas").each(function(){e(this).attr("data-printthis",c++)})}if(t.printContainer?r.append(i.outer()):i.each(function(){r.append(e(this).html())}),t.canvas&&r.find("canvas").each(function(){var t=e(this).data("printthis"),n=e('[data-printthis="'+t+'"]');this.getContext("2d").drawImage(n[0],0,0),n.removeData("printthis")}),t.formValues){var p=i.find("input");p.length&&p.each(function(){var t=e(this),n=e(this).attr("name"),i=t.is(":checkbox")||t.is(":radio"),o=a.find('input[name="'+n+'"]'),r=t.val();i?t.is(":checked")&&(t.is(":checkbox")?o.attr("checked","checked"):t.is(":radio")&&a.find('input[name="'+n+'"][value="'+r+'"]').attr("checked","checked")):o.val(r)});var h=i.find("select");h.length&&h.each(function(){var t=e(this),n=e(this).attr("name"),i=t.val();a.find('select[name="'+n+'"]').val(i)});var l=i.find("textarea");l.length&&l.each(function(){var t=e(this),n=e(this).attr("name"),i=t.val();a.find('textarea[name="'+n+'"]').val(i)})}t.removeInline&&(e.isFunction(e.removeAttr)?a.find("body *").removeAttr("style"):a.find("body *").attr("style","")),t.footer&&r.append(t.footer),setTimeout(function(){d.hasClass("MSIE")?(window.frames.printIframe.focus(),o.append("<script> window.print(); <\/script>")):document.queryCommandSupported("print")?d[0].contentWindow.document.execCommand("print",!1,null):(d[0].contentWindow.focus(),d[0].contentWindow.print()),t.debug||setTimeout(function(){d.remove()},1e3)},t.printDelay)},333)},e.fn.printThis.defaults={debug:!1,importCSS:!0,importStyle:!1,printContainer:!0,loadCSS:"",pageTitle:"",removeInline:!1,printDelay:333,header:null,footer:null,formValues:!0,canvas:!1,base:!1,doctypeString:"<!DOCTYPE html>"},jQuery.fn.outer=function(){return e(e("<div></div>").html(this.clone())).html()}}(jQuery);
\ No newline at end of file +/*! For license information please see recipes-printthis.min.js.LICENSE.txt */ +!function(){var e,t;(e=jQuery).fn.printThis=function(n){t=e.extend({},e.fn.printThis.defaults,n);var i=this instanceof jQuery?this:e(this),a="printThis-"+(new Date).getTime();if(window.location.hostname!==document.domain&&navigator.userAgent.match(/msie/i)){var o='javascript:document.write("<head><script>document.domain=\\"'+document.domain+'\\";<\/script></head><body></body>")',r=document.createElement("iframe");r.name="printIframe",r.id=a,r.className="MSIE",document.body.appendChild(r),r.src=o}else e("<iframe id='"+a+"' name='printIframe' />").appendTo("body");var d=e("#"+a);t.debug||d.css({position:"absolute",width:"0px",height:"0px",left:"-600px",top:"-600px"}),setTimeout((function(){t.doctypeString&&function(e,t){var n,i;(i=(n=(n=e.get(0)).contentWindow||n.contentDocument||n).document||n.contentDocument||n).open(),i.write(t),i.close()}(d,t.doctypeString);var n,a=d.contents(),o=a.find("head"),r=a.find("body"),s=e("base");if(n=!0===t.base&&s.length>0?s.attr("href"):"string"==typeof t.base?t.base:document.location.protocol+"//"+document.location.host,o.append('<base href="'+n+'">'),t.importCSS&&e("link[rel=stylesheet]").each((function(){var t=e(this).attr("href");if(t){var n=e(this).attr("media")||"all";o.append("<link type='text/css' rel='stylesheet' href='"+t+"' media='"+n+"'>")}})),t.importStyle&&e("style").each((function(){e(this).clone().appendTo(o)})),t.pageTitle&&o.append("<title>"+t.pageTitle+"</title>"),t.loadCSS&&(e.isArray(t.loadCSS)?jQuery.each(t.loadCSS,(function(e,t){o.append("<link type='text/css' rel='stylesheet' href='"+this+"'>")})):o.append("<link type='text/css' rel='stylesheet' href='"+t.loadCSS+"'>")),t.header&&r.append(t.header),t.canvas){var c=0;i.find("canvas").each((function(){e(this).attr("data-printthis",c++)}))}if(t.printContainer?r.append(i.outer()):i.each((function(){r.append(e(this).html())})),t.canvas&&r.find("canvas").each((function(){var t=e(this).data("printthis"),n=e('[data-printthis="'+t+'"]');this.getContext("2d").drawImage(n[0],0,0),n.removeData("printthis")})),t.formValues){var p=i.find("input");p.length&&p.each((function(){var t=e(this),n=e(this).attr("name"),i=t.is(":checkbox")||t.is(":radio"),o=a.find('input[name="'+n+'"]'),r=t.val();i?t.is(":checked")&&(t.is(":checkbox")?o.attr("checked","checked"):t.is(":radio")&&a.find('input[name="'+n+'"][value="'+r+'"]').attr("checked","checked")):o.val(r)}));var h=i.find("select");h.length&&h.each((function(){var t=e(this),n=e(this).attr("name"),i=t.val();a.find('select[name="'+n+'"]').val(i)}));var l=i.find("textarea");l.length&&l.each((function(){var t=e(this),n=e(this).attr("name"),i=t.val();a.find('textarea[name="'+n+'"]').val(i)}))}t.removeInline&&(e.isFunction(e.removeAttr)?a.find("body *").removeAttr("style"):a.find("body *").attr("style","")),t.footer&&r.append(t.footer),setTimeout((function(){d.hasClass("MSIE")?(window.frames.printIframe.focus(),o.append("<script> window.print(); <\/script>")):document.queryCommandSupported("print")?d[0].contentWindow.document.execCommand("print",!1,null):(d[0].contentWindow.focus(),d[0].contentWindow.print()),t.debug||setTimeout((function(){d.remove()}),1e3)}),t.printDelay)}),333)},e.fn.printThis.defaults={debug:!1,importCSS:!0,importStyle:!1,printContainer:!0,loadCSS:"",pageTitle:"",removeInline:!1,printDelay:333,header:null,footer:null,formValues:!0,canvas:!1,base:!1,doctypeString:"<!DOCTYPE html>"},jQuery.fn.outer=function(){return e(e("<div></div>").html(this.clone())).html()}}();
\ No newline at end of file diff --git a/plugins/jetpack/_inc/build/shortcodes/js/recipes-printthis.min.js.LICENSE.txt b/plugins/jetpack/_inc/build/shortcodes/js/recipes-printthis.min.js.LICENSE.txt new file mode 100644 index 00000000..4556fb7e --- /dev/null +++ b/plugins/jetpack/_inc/build/shortcodes/js/recipes-printthis.min.js.LICENSE.txt @@ -0,0 +1,15 @@ +/*! + * printThis v1.9.0 + * @desc Printing plug-in for jQuery + * @author Jason Day + * + * Resources (based on) : + * jPrintArea: http://plugins.jquery.com/project/jPrintArea + * jqPrint: https://github.com/permanenttourist/jquery.jqprint + * Ben Nadal: http://www.bennadel.com/blog/1591-Ask-Ben-Print-Part-Of-A-Web-Page-With-jQuery.htm + * + * Licensed under the MIT licence: + * http://www.opensource.org/licenses/mit-license.php + * + * (c) Jason Day 2015 + */ diff --git a/plugins/jetpack/_inc/build/shortcodes/js/recipes.min.asset.php b/plugins/jetpack/_inc/build/shortcodes/js/recipes.min.asset.php new file mode 100644 index 00000000..9ce324d2 --- /dev/null +++ b/plugins/jetpack/_inc/build/shortcodes/js/recipes.min.asset.php @@ -0,0 +1 @@ +<?php return array('dependencies' => array(), 'version' => 'f2dece01db99a81c05e9aa2a1ac7e1b7');
\ No newline at end of file diff --git a/plugins/jetpack/_inc/build/shortcodes/js/recipes.min.js b/plugins/jetpack/_inc/build/shortcodes/js/recipes.min.js index 6501c94e..6dc52199 100644 --- a/plugins/jetpack/_inc/build/shortcodes/js/recipes.min.js +++ b/plugins/jetpack/_inc/build/shortcodes/js/recipes.min.js @@ -1,3 +1 @@ -/* Do not modify this file directly. It is compiled from other files. */ -/* global jetpack_recipes_vars */ -!function(e){e(window).load(function(){e(".jetpack-recipe-print a").click(function(i){i.preventDefault(),e(this).closest(".jetpack-recipe").printThis({pageTitle:jetpack_recipes_vars.pageTitle,loadCSS:jetpack_recipes_vars.loadCSS})})})}(jQuery);
\ No newline at end of file +!function(){var e;(e=jQuery)(window).load((function(){e(".jetpack-recipe-print a").click((function(i){i.preventDefault(),e(this).closest(".jetpack-recipe").printThis({pageTitle:jetpack_recipes_vars.pageTitle,loadCSS:jetpack_recipes_vars.loadCSS})}))}))}();
\ No newline at end of file diff --git a/plugins/jetpack/_inc/build/shortcodes/js/slideshow-shortcode.min.asset.php b/plugins/jetpack/_inc/build/shortcodes/js/slideshow-shortcode.min.asset.php new file mode 100644 index 00000000..4e1d58d7 --- /dev/null +++ b/plugins/jetpack/_inc/build/shortcodes/js/slideshow-shortcode.min.asset.php @@ -0,0 +1 @@ +<?php return array('dependencies' => array(), 'version' => '57f60263f852dffc35ed7671ff760b02');
\ No newline at end of file diff --git a/plugins/jetpack/_inc/build/shortcodes/js/slideshow-shortcode.min.js b/plugins/jetpack/_inc/build/shortcodes/js/slideshow-shortcode.min.js index 4b12c320..036b53f6 100644 --- a/plugins/jetpack/_inc/build/shortcodes/js/slideshow-shortcode.min.js +++ b/plugins/jetpack/_inc/build/shortcodes/js/slideshow-shortcode.min.js @@ -1,3 +1 @@ -/* Do not modify this file directly. It is compiled from other files. */ -/* global jetpackSlideshowSettings, escape */ -function JetpackSlideshow(e,t,i){this.element=e,this.images=[],this.controls={},this.transition=t||"fade",this.autostart=i}JetpackSlideshow.prototype.showLoadingImage=function(e){if(e){this.loadingImage_=document.createElement("div"),this.loadingImage_.className="slideshow-loading";var t=document.createElement("img");t.src=jetpackSlideshowSettings.spinner,this.loadingImage_.appendChild(t),this.loadingImage_.appendChild(this.makeZeroWidthSpan()),this.element.append(this.loadingImage_)}else this.loadingImage_&&(this.loadingImage_.parentNode.removeChild(this.loadingImage_),this.loadingImage_=null)},JetpackSlideshow.prototype.init=function(){this.showLoadingImage(!0);for(var e=this,t=0;t<this.images.length;t++){var i=this.images[t],s=document.createElement("img");s.src=i.src,s.title=void 0!==i.title?i.title:"",s.alt=void 0!==i.alt?i.alt:"",s.align="middle",s.setAttribute("itemprop","image"),s.nopin="nopin";var o=document.createElement("div");o.className="slideshow-slide-caption",o.setAttribute("itemprop","caption description"),o.innerHTML=i.caption;var n=document.createElement("div");n.className="slideshow-slide",n.setAttribute("itemprop","associatedMedia"),n.setAttribute("itemscope",""),n.setAttribute("itemtype","https://schema.org/ImageObject"),0===t&&(s.complete?setTimeout(function(){e.finishInit_()},1):jQuery(s).load(function(){e.finishInit_()})),n.appendChild(s),s.removeAttribute("width"),s.removeAttribute("height"),n.appendChild(this.makeZeroWidthSpan()),n.appendChild(o),this.element.append(n)}},JetpackSlideshow.prototype.makeZeroWidthSpan=function(){var e=document.createElement("span");return e.className="slideshow-line-height-hack",-1!==window.navigator.userAgent.indexOf("MSIE ")?e.appendChild(document.createTextNode(" ")):e.innerHTML=" ",e},JetpackSlideshow.prototype.finishInit_=function(){this.showLoadingImage(!1),this.renderControls_();var e=this;if(this.images.length>1){this.element.cycle({fx:this.transition,prev:this.controls.prev,next:this.controls.next,timeout:jetpackSlideshowSettings.speed,slideExpr:".slideshow-slide",onPrevNextEvent:function(){return e.onCyclePrevNextClick_.apply(e,arguments)}});var t=this.element;this.autostart||(t.cycle("pause"),jQuery(this.controls.stop).removeClass("running"),jQuery(this.controls.stop).addClass("paused")),jQuery(this.controls.stop).click(function(){var e=jQuery(this);return e.hasClass("paused")?(e.addClass("running"),e.removeClass("paused"),t.cycle("resume",!0)):(t.cycle("pause"),e.removeClass("running"),e.addClass("paused")),!1})}else this.element.children(":first").show(),this.element.css("position","relative");this.initialized_=!0},JetpackSlideshow.prototype.renderControls_=function(){if(!this.controlsDiv_){var e=document.createElement("div");e.className="slideshow-controls";for(var t=["prev","stop","next"],i=0;i<t.length;i++){var s=t[i],o=document.createElement("a");o.href="#",e.appendChild(o),this.controls[s]=o}this.element.append(e),this.controlsDiv_=e}},JetpackSlideshow.prototype.onCyclePrevNextClick_=function(e,t){if(jetpackSlideshowSettings.blog_id){var i=this.images[t].id;(new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?host="+escape(document.location.host)+"&rand="+Math.random()+"&blog="+jetpackSlideshowSettings.blog_id+"&subd="+jetpackSlideshowSettings.blog_subdomain+"&user_id="+jetpackSlideshowSettings.user_id+"&post="+i+"&ref="+escape(document.location)}},function(e){function t(){e(".jetpack-slideshow-noscript").remove(),e(".jetpack-slideshow").each(function(){var t=e(this);if(!t.data("processed")){var i=new JetpackSlideshow(t,t.data("trans"),t.data("autostart"));i.images=t.data("gallery"),i.init(),t.data("processed",!0)}})}e(document).ready(t),e("body").on("post-load",t)}(jQuery);
\ No newline at end of file +!function(){function e(e,t,i){this.element=e,this.images=[],this.controls={},this.transition=t||"fade",this.autostart=i}e.prototype.showLoadingImage=function(e){if(e){this.loadingImage_=document.createElement("div"),this.loadingImage_.className="slideshow-loading";var t=document.createElement("img");t.src=jetpackSlideshowSettings.spinner,this.loadingImage_.appendChild(t),this.loadingImage_.appendChild(this.makeZeroWidthSpan()),this.element.append(this.loadingImage_)}else this.loadingImage_&&(this.loadingImage_.parentNode.removeChild(this.loadingImage_),this.loadingImage_=null)},e.prototype.init=function(){this.showLoadingImage(!0);for(var e=this,t=0;t<this.images.length;t++){var i=this.images[t],s=document.createElement("img");s.src=i.src,s.title=void 0!==i.title?i.title:"",s.alt=void 0!==i.alt?i.alt:"",s.align="middle",s.setAttribute("itemprop","image"),s.nopin="nopin";var n=document.createElement("div");n.className="slideshow-slide-caption",n.setAttribute("itemprop","caption description"),n.innerHTML=i.caption;var o=document.createElement("div");o.className="slideshow-slide",o.setAttribute("itemprop","associatedMedia"),o.setAttribute("itemscope",""),o.setAttribute("itemtype","https://schema.org/ImageObject"),0===t&&(s.complete?setTimeout((function(){e.finishInit_()}),1):jQuery(s).load((function(){e.finishInit_()}))),o.appendChild(s),s.removeAttribute("width"),s.removeAttribute("height"),o.appendChild(this.makeZeroWidthSpan()),o.appendChild(n),this.element.append(o)}},e.prototype.makeZeroWidthSpan=function(){var e=document.createElement("span");return e.className="slideshow-line-height-hack",-1!==window.navigator.userAgent.indexOf("MSIE ")?e.appendChild(document.createTextNode(" ")):e.innerHTML=" ",e},e.prototype.finishInit_=function(){this.showLoadingImage(!1),this.renderControls_();var e=this;if(this.images.length>1){this.element.cycle({fx:this.transition,prev:this.controls.prev,next:this.controls.next,timeout:jetpackSlideshowSettings.speed,slideExpr:".slideshow-slide",onPrevNextEvent:function(){return e.onCyclePrevNextClick_.apply(e,arguments)}});var t=this.element;this.autostart||(t.cycle("pause"),jQuery(this.controls.stop).removeClass("running"),jQuery(this.controls.stop).addClass("paused")),jQuery(this.controls.stop).click((function(){var e=jQuery(this);return e.hasClass("paused")?(e.addClass("running"),e.removeClass("paused"),t.cycle("resume",!0)):(t.cycle("pause"),e.removeClass("running"),e.addClass("paused")),!1}))}else this.element.children(":first").show(),this.element.css("position","relative");this.initialized_=!0},e.prototype.renderControls_=function(){if(!this.controlsDiv_){var e=document.createElement("div");e.className="slideshow-controls";for(var t=["prev","stop","next"],i=0;i<t.length;i++){var s=t[i],n="label_"+s,o=document.createElement("a");o.href="#",o.className="button-"+s,o.setAttribute("aria-label",jetpackSlideshowSettings[n]),o.setAttribute("role","button"),e.appendChild(o),this.controls[s]=o}this.element.append(e),this.controlsDiv_=e}},e.prototype.onCyclePrevNextClick_=function(e,t){if(jetpackSlideshowSettings.blog_id){var i=this.images[t].id;(new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?host="+escape(document.location.host)+"&rand="+Math.random()+"&blog="+jetpackSlideshowSettings.blog_id+"&subd="+jetpackSlideshowSettings.blog_subdomain+"&user_id="+jetpackSlideshowSettings.user_id+"&post="+i+"&ref="+escape(document.location)}},function(t){function i(){t(".jetpack-slideshow-noscript").remove(),t(".jetpack-slideshow").each((function(){var i=t(this);if(!i.data("processed")){var s=new e(i,i.data("trans"),i.data("autostart"));s.images=i.data("gallery"),s.init(),i.data("processed",!0)}}))}t(document).ready(i),t("body").on("post-load",i)}(jQuery)}();
\ No newline at end of file |