Skip to content
Browse files

Add 2011 theme min files.

  • Loading branch information...
1 parent 581a9d9 commit 4ea728434265c1f46cec0f68dfbf418a8d0eab3a @evocateur evocateur committed Mar 22, 2012
View
1 build/upstage-blank-min.js
@@ -0,0 +1 @@
+YUI.add("upstage-blank",function(c){var a=c.Upstage;function b(d){b.superclass.constructor.apply(this,arguments);}b.NS="blank";b.NAME="upstage-blank";b.ATTRS={background:{value:"#000"},keycode:{value:66},curtain:{value:null}};c.extend(b,c.Plugin.Base,{initializer:function(e){this._createCurtain();var d=this.get("curtain");var f=this;this.onHostEvent("keydown",function(h){var g=h.details[0].keyCode;if(g==f.get("keycode")){f.drop(!f.get("dropped"));h.halt();}else{f.drop(false);}});},destructor:function(){this.get("curtain").remove(true);},drop:function(d){this.set("dropped",d);this.get("curtain").setStyle("display",d?"block":"none");},_createCurtain:function(){var d=c.Node.create("<div></div>");d.setStyles({background:this.get("background"),position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:"100",display:"none"});d.on("click",c.bind("drop",this,false));c.one("body").append(d);this.set("curtain",d);}});c.Plugin.UpstageBlank=b;},"@VERSION@",{requires:["upstage-slideshow","plugin"]});
View
1 build/upstage-gesture-min.js
@@ -0,0 +1 @@
+YUI.add("upstage-gesture",function(c){var a=c.Upstage;function b(d){b.superclass.constructor.apply(this,arguments);}b.NS="gesture";b.NAME="upstage-gesture";b.ATTRS={gestureEventHandle:{value:null},swipeDistance:{value:10},tapHoldThreshold:{value:500},forceGestureThreshold:{value:300}};c.extend(b,c.Plugin.Base,{initializer:function(d){this.set("gestureEventHandle",c.one("body").on("gesturemovestart",c.bind("gesture",this)));this._publishEvents();},destructor:function(){c.one("body").detach(this.get("gestureEventHandle"));this.set("gestureEventHandle",null);},_publishEvents:function(){var f=this,e=f.get("host");function d(g,h,i){e.publish(g,{emitFacade:true});f.onHostEvent(g,c.bind("fire",e,h,i));}d("ui:tap","warp",1);d("ui:heldtap","navigate",1);d("ui:swipeleft","warp",1);d("ui:swiperight","warp",-1);},getSelection:function(){var d="",g,f=c.config.win,e=c.config.doc;if(f.getSelection){d=f.getSelection();}else{if(e.selection){d=e.selection.createRange();}}g=d;if(d.text){g=d.text;}return g.toString();},gestureEnd:function(i,j){var l=this.get("host"),h=i.getData("gestureX"),d=j.pageX,f=this.get("swipeDistance"),g=i.getData("gestureDate").getTime(),k=(new Date).getTime(),e=k-g;if(this.getSelection()&&(e>this.get("forceGestureThreshold"))){return;}if((h-d)>f){l.fire("ui:swipeleft",i);}else{if((d-h)>f){l.fire("ui:swiperight",i);}else{if(e>this.get("tapHoldThreshold")){l.fire("ui:heldtap",e);}else{l.fire("ui:tap",e);}}}},gesture:function(d){switch(d.target.get("tagName").toUpperCase()){case"A":case"INPUT":case"BUTTON":case"VIDEO":case"OBJECT":return;}var e=d.currentTarget;if(d._event&&d._event.type==="touchstart"){d.preventDefault();}e.setData("gestureX",d.pageX);e.setData("gestureDate",new Date);e.once("gesturemoveend",c.bind("gestureEnd",this,e));}});c.Plugin.UpstageGesture=b;},"@VERSION@",{requires:["upstage-slideshow","event-move"]});
View
1 build/upstage-keyboard-min.js
@@ -0,0 +1 @@
+YUI.add("upstage-keyboard",function(b){function a(c){a.superclass.constructor.apply(this,arguments);}a.NS="keyboard";a.NAME="upstage-keyboard";b.extend(a,b.Plugin.Base,{initializer:function(c){var d=this.get("host");d.publish("keydown",{emitFacade:true});this.onHostEvent("keydown",b.bind("keydown",this));b.one(b.config.doc).on("key",b.bind("fire",d,"keydown"),"down:");},destructor:function(c){b.one(b.config.doc).detach("key",b.bind("fire",this.get("host"),"keydown"));},keydown:function(d){var c=this.get("host");var e=true;switch(d.keyCode){case 32:case 34:case 39:case 40:c.fire("warp",1);break;case 33:case 37:case 38:c.fire("warp",-1);break;case 36:c.fire("navigate",1);break;case 35:c.fire("navigate",9999);break;default:e=false;break;}if(e){d.halt();}}});b.Plugin.UpstageKeyboard=a;},"@VERSION@",{requires:["upstage-slideshow","node","event"]});
View
1 build/upstage-permalink-min.js
@@ -0,0 +1 @@
+YUI.add("upstage-permalink",function(b){function a(c){a.superclass.constructor.apply(this,arguments);}a.NS="permalink";a.NAME="upstage-permalink";a.ATTRS={strings:{value:{"slide":"Slide"}},titleContent:{value:b.one("title").get("text")}};b.extend(a,b.Plugin.Base,{initializer:function(d){var f=this;var g=new b.HistoryHash;var e=d.host;f.afterHostEvent("navigate",function(l){var n=f.get("titleContent");var i=l.details[0];var m=e.indexToId(i);var h;g.addValue("slide",m);if(i==1){h=n;}else{var k=e.get("slides").item(i-1);var j=k.one("h1,h2,h3,h4,h5,h6,p");if(!j){j=k;}if(j){h=j.get("text");}if(!h){h=f.get("strings").slide+" "+i;}h=n+": "+h;}b.one("title").setContent(h);});function c(h){if(h&&h.newVal){h=h.newVal;}else{h=h||1;}h=f._idToIndex(h);if(h&&h!==e.get("currentSlide")){e.set("currentSlide",h);}}g.on("slideChange",c);g.on("slideRemove",c);c(g.get("slide"));},_idToIndex:function(d){var c;if(!isNaN(d)){return d;}this.get("host").get("slides").some(function(f,e){if(f.get("id")===d){return c=e;}});if(c){return c+1;}else{return null;}}});b.Plugin.UpstagePermalink=a;},"@VERSION@",{requires:["upstage-slideshow","node","history"]});
View
1 build/upstage-slideshow-min.js
@@ -0,0 +1 @@
+YUI.add("upstage-slideshow",function(e){e.Node.addMethod("parentsUntil",function c(h,g){return this.ancestors(function(i){return e.DOM.contains(g,i._node);});});var b="upstage",a="contentBox",f="currentSlide",d=f+"Change";e.namespace("Upstage");e.Upstage=e.Base.create(b,e.Widget,[],{initializer:function(){this.get("contentBox").addClass(this.get("classes").container);this._bindAttributes();this._publishEvents();this._detectFeatures();},_detectFeatures:function(){var g=this.get("boundingBox"),i=e.config.doc.documentElement.style,k="Webkit Moz O ms Khtml".split(" "),l=k.join("Transform,").split(","),h=k.join("TransitionProperty,").split(",");function j(m){return m in i;}if(e.Array.some(l,j)){g.addClass("csstransforms");}if(e.Array.some(h,j)){g.addClass("csstransitions");}},_publishEvents:function(){this.publish("warp",{emitFacade:true,defaultFn:function(g,h){if(h&&h.halt){h.halt();}this.set(f,this.get(f)+g.details[0]);}});this.publish("navigate",{emitFacade:true,defaultFn:function(h){var g=h.details[0];if(g!==this.get(f)){this.set(f,g);}}});},_bindAttributes:function(){this.after("containerClassesChange",function(h){var g=this.get("contentBox");e.Array.each(h.prevVal,g.removeClass,g);e.Array.each(h.newVal,g.addClass,g);});this.after(d,function(g){this.fire("navigate",g.newVal);});this.after(d,e.bind("_updateState",this));this.after(d,e.bind("_updateContainerClasses",this));},_updateContainerClasses:function(i){var h=i.newVal,k=this.get("classes").onPrefix,j=[k+h],g=this.indexToId(h);if(g!==h){j.push(k+g);}this.set("containerClasses",j);},snapToBounds:function(g){g=Math.min(g,this.get("slides").size());g=Math.max(1,g);return g;},syncUI:function(){var g=this.get(f);if(g===-1){this.set(f,1);}},indexToId:function(h){h=this.snapToBounds(h);var g=this.get("slides").item(h-1);var i=g.get("id");if(i.indexOf("yui_3")===0){i=null;}return(i)?i:h;},_updateState:function(k){var i=this.get("classes");var h=this.get("contentBox");var j=this.get("slides");var m=k.newVal-1;var l=h.one("."+i.current);var n=j.item(m);e.Array.each([i.before,i.previous,i.next,i.after,i.current],j.removeClass,j);n.addClass(i.current);if(l){l.parentsUntil(h).removeClass(i.childCurrent);}n.parentsUntil(h).addClass(i.childCurrent);var g=j.size();if(m>0){j.item(m-1).addClass(i.previous);}if(m+1<g){j.item(m+1).addClass(i.next);}if(m>1){j.slice(0,m-1).addClass(i.before);}if(m+2<g){j.slice(m+2).addClass(i.after);}this.fire("widget:contentUpdate");}},{ATTRS:{slides:{value:null},currentSlide:{value:-1,setter:function(h){h=parseInt(h);var g=e.Attribute.INVALID_VALUE,i=h;h=this.snapToBounds(h);if(isNaN(h)){}else{if(h!==i){}else{if(h===this.get(f)){}else{g=h;}}}return g;}},containerClasses:{value:[]},classes:{value:{container:"deck-container",after:"deck-after",before:"deck-before",current:"deck-current",childCurrent:"deck-child-current",next:"deck-next",onPrefix:"on-slide-",previous:"deck-previous"}}},HTML_PARSER:{slides:[".slide"]},CSS_PREFIX:b});},"@VERSION@",{requires:["oop","node","widget","base-build"]});

0 comments on commit 4ea7284

Please sign in to comment.
Something went wrong with that request. Please try again.