From d612a4fa5520b4ef295b9b0f5fe82f1c82c20741 Mon Sep 17 00:00:00 2001 From: Paul Harrington Date: Sat, 13 Apr 2013 18:27:23 -0400 Subject: [PATCH] update build --- cache.manifest | 2 +- js/combined-min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cache.manifest b/cache.manifest index a2d3a03..84b828f 100644 --- a/cache.manifest +++ b/cache.manifest @@ -1,5 +1,5 @@ CACHE MANIFEST -#rev147 +#rev149 CACHE: mobile/c1.png mobile/c2.png diff --git a/js/combined-min.js b/js/combined-min.js index 41321dd..4fa15a5 100644 --- a/js/combined-min.js +++ b/js/combined-min.js @@ -450,4 +450,4 @@ Copyright 2011 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ -YUI.add("event-touch",function(d){var c="scale",a="rotation",b="identifier";d.DOMEventFacade.prototype._touch=function(n,m,o){var g,f,h,k,j;if(n.touches){this.touches=[];j={};for(g=0,f=n.touches.length;g");this._nodes=[];if(!(f||e)){f=8}this._rows=f;this._columns=e;a.superclass.constructor.apply(this,arguments)}a.NS="breakout";a.Name="Breakout";c.extend(a,c.Plugin.Base,{_splitNode:function(){var d,i,k,j,g=Math.round(this._blockWidth),m=Math.round(this._blockHeight),q=this._rows,h=this._columns,l=this._host.getXY(),n,f=this._container,e=this._nodes=[],p,o=c.Node.create('
');f.setXY(l);for(d=0;d"){return}container.innerHTML=buffer;element=container.childNodes[0];if(!element){return}if(element.nodeName==="SCRIPT"){if(element.src!==""){loadScript(element.src,adContainer)}else{content=element.childNodes[0].nodeValue;content=content.match(/[^>>0;var c=Number(arguments[1])||0;c=(c<0)?Math.ceil(c):Math.floor(c);if(c<0){c+=a}for(;c1;h--){e=((214013*e)%g+2531011)%g;j=(e>>16)&32767;item=k[h-1];f=k[j%h];k[h-1]=f;k[j%h]=item}},createStack:function(){var e;for(e=this.cards.length-1;e>=0;e--){this.stacks[0].push(this.cards[e])}},last:function(){return this.cards.last()},pop:function(){return this.cards.pop()}};d.Solitaire.Card={zIndex:1,index:-1,width:null,height:null,rankHeight:null,hiddenRankHeight:null,isFaceDown:false,positioned:false,scale:1,stack:null,proxyStack:null,ghost:true,dragging:false,node:null,callback:null,left:0,top:0,base:{},origin:{left:function(){var e=b.container().getX();return -e-d.Solitaire.Card.width},top:function(){var e=b.container().getY();return -e-d.Solitaire.Card.height}},animSpeeds:{slow:0.5,mid:0.2,fast:0.1},create:function(g,f){var e={c:0,s:0,h:1,d:1};return instance(this,{rank:g,suit:f,color:e[f]})},truncatePosition:function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top)},faceDown:function(e){this.isFaceDown=true;this.setRankHeight();b.Animation.flip(this);e||b.pushMove({card:this,faceDown:true});return this},faceUp:function(e){this.isFaceDown=false;this.setRankHeight();b.Animation.flip(this);e||b.pushMove({card:this,faceDown:false});return this},setRankHeight:function(){var e=this.stack,f,g;if(e&&e.rankHeight){f=e.rankHeight;g=e.hiddenRankHeight}else{f=b.Card.rankHeight;g=b.Card.hiddenRankHeight}this.rankHeight=this.isFaceDown?g:f},imageSrc:function(){var e=this.base.theme+"/";e+=this.isFaceDown?"facedown":this.suit+this.rank;e+=".png";return e},setImageSrc:function(){var e=this.node;e&&e.setAttribute("src",this.imageSrc())},wrapperStyle:function(){return{left:this.left,top:this.top,width:Math.floor(this.width),height:Math.floor(this.height)}},updateStyle:function(){var e=this.node;e&&e.setStyles(this.wrapperStyle());this.setRankHeight()},turnOver:function(g){if(!this.isFaceDown){return}var f=this.stack;if(f.field==="deck"){Game.turnOver()}else{if(this.isFree()){this.faceUp()}}g.stopPropagation()},autoPlay:function(h){var f=this.stack,l=f.last(),k,g,j,e;if(this.isFaceDown||f.field==="foundation"){return}k=Game.foundation.stacks;for(j=0,e=k.length;j").setData("target",this).setAttribute("src",this.imageSrc()).plug(d.Plugin.Drop);e.setStyles({left:-this.width,top:-this.height});this.setRankHeight();b.container().append(e)},destroyNode:function(){var e=this.node;e&&e.clearData().destroy(true)},createProxyStack:function(){if(this.isFaceDown||this.stack.field==="foundation"){this.proxyStack=null;return null}var f=instance(this.stack,{proxy:true,stack:this.stack}),j=f.cards,g,h,e;f.cards=[];f.push(this,true);for(h=j.indexOf(this)+1,e=j.length;h"),e=this.proxyStack;if(!e){if(!this.ghost){return null}f.setStyles({opacity:0.6,top:-this.top,left:-this.left}).append(this.node.cloneNode(true))}else{f.setStyles({opacity:1,top:-this.top,left:-this.left});d.Array.each(this.proxyCards(),function(g){g.proxyStack=e;f.append(g.node)})}return f},updatePosition:function(e){if(!this.node){return}var g={left:Math.floor(this.left)+"px",top:Math.floor(this.top)+"px",zIndex:this.zIndex},f=this.origin;if(!this.positioned){this.node.setStyles({left:normalize(f.left),top:normalize(f.top)})}d.Solitaire.Animation.init(this,g,e)},pushPosition:function(){var e=this.index>=0?this.index:this.stack.cards.indexOf(this);b.pushMove({card:this,index:e,from:this.stack})},moveTo:function(e){var f=this.stack;this.pushPosition();f.deleteItem(this);e.push(this);d.fire(f.field+":afterPop",f);return this},flipPostMove:function(e){var f=b.Animation;if(e===undefined){e=f.interval*20}this.after(function(){f.flip(this,e)})},after:function(e){this.callback=e},runCallback:function(){if(this.callback){this.callback.call(this);this.callback=null}}};d.Solitaire.Stack={cards:null,node:null,images:{tableau:"freeslot.png",deck:"freeslot.png",reserve:"freeslot.png",foundation:"freeslot.png"},serialize:function(){var h,e,k=this.cards,g,f=Game.deck.suits,l,j=[];for(h=0,e=k.length;h>2)&15,f.suits[k&3]);k&64?h.faceDown(true):h.faceUp(true)}return h});this.update()},imageSrc:function(){var e=this.images[this.field];return e?b.Card.base.theme+"/"+e:"trans.gif"},layout:function(i){var h=i.hoffset*d.Solitaire.Card.width,f=i.voffset*d.Solitaire.Card.height,g=Game.offset,e=this;d.Array.each(["top","left"],function(j){e[j]=normalize(i[j])});this.left+=h+normalize(g.left);this.top+=f+normalize(g.top)},deleteItem:function(e){this.cards.deleteItem(e)},push:function(f,e){var g=this.last(),i=this.field,h=f.stack?f.stack.field:"deck";if(g){f.zIndex=g.zIndex+1}else{if(i==="deck"||i==="foundation"){f.zIndex=200}else{if(h==="deck"){f.zIndex=Game.Card.zIndex}}}if(!e){f.stack=this;this.setCardPosition(f);f.truncatePosition();f.ensureDOM()}this.cards.push(f);e||f.updatePosition({from:h,to:i})},pushStack:function(g){var f=b.activeCard.stack,e=this;f.eachCard(function(h,j){h.index=j});Game.stationary(function(){g.eachCard(function(h){h.moveTo(e);h.index=-1});f.eachCard(function(h){h.index=-1})});f.updateCardsPosition();f.update();d.fire(e.field+":afterPush",e)},adjustRankHeight:function(){var f=this.cards,j,s=this.last(),r=Game.maxStackHeight(),q=0,h=0,k,t=0,p=b.Card,e=0,g=0,o,m,l,n;if(f.length<=1){return}for(l=0,n=f.length-1;l").set("draggable",false).setData("target",this).plug(d.Plugin.Drop);this.setImageSrc();this.updateStyle();b.container().append(e)},cleanup:function(){var e=this.node;e&&e.clearData().destroy(true);this.eachCard(function(f){f.destroyNode()})},updateDragGroups:function(){var j=b.activeCard,h=this.cards,g=this.last(),e,f=h.length-1;this.eachCard(function(i){i.node.drop.removeFromGroup("open")});if(j.validTarget(this)){if(g){g.node.drop.addToGroup("open")}this.node.drop.addToGroup("open")}else{this.node.drop.removeFromGroup("open")}},validCard:function(){return true},validProxy:function(e){return e&&e.validTarget(this)&&this.validCard(e)},update:function(){}};d.Solitaire.Animation={animate:true,dealing:false,duration:0.5,flipDuration:0.1,interval:20,queue:new d.AsyncQueue(),initQueue:function(){var e=this.queue;e.defaults.timeout=this.interval},init:function(g,m,j){if(!this.animate){g.node.setStyles(m);g.positioned=true;setTimeout(function(){g.runCallback()},0);return}var f=g.node,e=this.queue,i=g.animSpeeds,n={top:f.getStyle("top"),left:f.getStyle("left")}.mapToFloat().mapAppend("px"),l=m.zIndex,h,k=this;if(n.top===m.top&&n.left===m.left){return}if(this.dealing){h=i.slow}else{if(!j||j.from===j.to||j.to==="waste"||j.to==="foundation"){h=i.fast}else{if(j.from==="deck"){h=i.slow}else{h=i.mid}}}f.setStyle("zIndex",500+l);delete m.zIndex;e.add(this.animFunction.bind(this).partial({left:m.left,top:m.top,easing:"ease-out",duration:h,},g,function(){g.positioned=true;f.setStyle("zIndex",g.zIndex)}));e.run()},animFunction:function(){},doTransition:function(f,e,i){var g=e.node,h=this;g.transition(f,function(){i();h.clearTransition(g);e.runCallback()})},doAnim:function(f,e,l){var g=e.node,j=f.duration,i={linear:"linear","ease-out":"easeOut","ease-in":"easeIn"},k=d.Easing[i[f.easing]],h;delete f.duration;delete f.easing;h=new d.Anim({node:g,to:f,duration:j,easing:k});h.on("end",function(){l();e.runCallback()});h.run()},flip:function(f,e){if(!(this.animate&&f.node)){f.setImageSrc();return}var g=this;setTimeout(function(){var i=f.node,k=g.flipDuration,l="linear",j=Math.floor(f.left),h=Math.floor(f.width);g.animFunction({left:Math.floor(j+h/2)+"px",width:0,easing:l,duration:k},f,function(){f.setImageSrc();g.animFunction({left:j+"px",width:h+"px",easing:l,duration:k},f,function(){f.updateStyle()})})},e||0)},clearTransition:function(f){var e=f._node.style;d.Array.each(["Webkit","Moz","O","MS"],function(h){var g=h+"Transition";if(g in e){e[g]=null}})}};b.Animation.animFunction=b.Animation.doAnim;var c={stack:null,clear:function(){this.stack=[]},push:function(e){this.stack.push(e)},pop:function(){return this.stack.pop()||[]},undo:function(){var e;e=d.Array.unique(d.Array.map(this.pop(),this.act).flatten());d.Array.each(e,function(f){if(f){f.updateCardsPosition();f.update(true)}})},act:function(e){if(typeof e==="function"){e();return[]}var i=e.from,f=e.card,h=f.stack,g=h.cards;if(i){if(i===f.stack){g[g.indexOf(f)]=null}else{g.deleteItem(f)}i.cards[e.index]=f;f.stack=i;b.container().append(f.node)}if("faceDown" in e){e.faceDown?f.faceUp(true):f.faceDown(true)}return[h,i]}}},"0.0.1",{requires:["save-manager","dd","dd-plugin","dd-delegate","anim","transition","async-queue","cookie","array-extras"]});YUI.add("analytics",function(f){var c=f.Solitaire,b=f.namespace("Solitaire.Analytics"),a=5,d=0,e,g=0;f.on("beforeSetup",function(){var h=g;g=new Date().getTime();if(h){b.track("Games","Played",e,g-h)}d=0;e=c.game.name()});f.on("win",function(){var h=new Date().getTime();b.track("Games","Won",c.game.name(),h-g,true);b.track("Games","Played",c.game.name(),h-g,true);g=0});f.on("endTurn",function(){d++;if(d===a){b.track("Games","New",c.game.name())}});f.on("popup",function(h){b.track("Menus","Show",h)});f.mix(b,{track:function(j,i,h,l,k){if(typeof _gaq==="undefined"){return}_gaq.push(["_trackEvent",j,i,h,l,k])}})},"1.0.0",{requires:["solitaire"]});YUI.add("util",function(b){var a=b.Solitaire;Util=b.namespace("Solitaire.Util");b.mix(Util,{flipStacks:function(f,e,d){var c=a.game;if(e===undefined){e=200}if(d===undefined){d=150}f.after(function(){c.eachStack(function(g){setTimeout(function(){g.eachCard(function(h){if(!h.isFaceDown){a.Animation.flip(h)}})},e);e+=d},"tableau")})},moveWasteToDeck:function(){var c=this.deck.stacks[0],d=this.waste.stacks[0];while(d.cards.length){d.last().faceDown().moveTo(c)}},hasFreeTableaus:function(){return b.Array.some(a.game.tableau.stacks,function(c){return !c.cards.length})},freeTableaus:function(){return b.Array.filter(a.game.tableau.stacks,function(c){return c.cards.length===0})},seedRank:function(){var c=Game.foundation.stacks[0].first();return c?c.rank:0},cacheNode:function(c){var d;return function(){if(!d){d=b.one(c)}return d}},mapRank:function(e){var d={1:"Ace",11:"Jack",12:"Queen",13:"King"},c=d[e];return c?c:e}})},"0.0.1",{requires:["solitaire","array-extras"]});YUI.add("win-display",function(c){var s,h,k=true,n=c.Solitaire,e=n.Statistics,j=c.namespace("Solitaire.WinDisplay"),l,v=false,q=n.Util.cacheNode,p=[],b=q("body"),i=q("#win-display"),o=q("#win-display-game"),a=q("#win-display-streak"),m=q("#win-display-wins"),r=q("#win-display-loses");c.on("newGame",function(){h=false});c.on("loadGame",function(){h=false});c.on("win",function(){if(h||!k){return}h=true;p[~~(Math.random()*p.length)]()});c.on("beforeSetup",function(){j.cancel();j.enable();f.clear()});c.on("fieldResize",function(){f.resize()});var g=(function(){var w=16;return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(x){setTimeout(x,w)}})();var f={width:0,height:0,angle:2*Math.PI,velocity:1000,minYVelocity:200,gravity:15,dampening:0.5,canvas:null,context:null,actors:[],bounce:function(D,B,I){var C=D.node,J=C.getXY(),z={},E,G,A,F,w,H,y=new Date().getTime(),x;G=this.angle*(1-B);A=this.angle-G;E=Math.random()*A+G;w=this.velocity*(1-I);H=this.velocity-w;F=Math.random()*H+w;z.x=Math.cos(E)*F;z.y=Math.sin(E)*F;C.remove();x=this.actors.length===0;if(J){this.actors.push({node:C._node,velocity:z,boundingbox:{x:J[0],y:J[1],width:~~D.width,height:~~D.height},lastUpdate:y,lastSmear:y})}if(x){this.bounceCallback(y)}},bounceCallback:function(B){var w=new Date().getTime(),A,z=this.actors,y,x;A=w-B;x=0;while(y=z[x]){if(this.bounceStep(y.node,y.velocity,y.boundingbox,A)){z.splice(x,1)}else{x++}}if(z.length>0){g(function(){this.bounceCallback(w)}.bind(this))}},bounceStep:function(z,x,y,w){w/=1000;y.x+=x.x*w;y.y+=x.y*w;x.y+=this.gravity;if(y.x>this.width||y.x+y.width<0||y.y+y.height<0){return true}if(y.y+y.height>=this.height){y.y-=x.y*w;x.y*=-this.dampening;x.y=Math.min(x.y,-this.minYVelocity)}this.context.drawImage(z,~~y.x,~~y.y,y.width,y.height)},createSmearNode:function(){var w;if(!this.canvas){var w=document.createElement("canvas");w.style.zIndex=-1;w.style.position="absolute";w.style.top="0px";w.style.left="0px";w.width=this.width;w.height=this.height;this.canvas=w;this.context=w.getContext("2d");b().appendChild(this.canvas)}this.canvas.className=""},resize:function(){this.width=b().get("winWidth");this.height=b().get("winHeight");if(this.canvas){this.canvas.width=this.width;this.canvas.height=this.height}},init:function(){this.resize();this.createSmearNode()},clear:function(){if(!this.context){return}this.context.clearRect(0,0,this.width,this.height);this.canvas.className="hidden";this.actors=[]}};function u(){if(v){return}var x=n.Application,w=n.game.name();c.on("click",function(){j.cancel();setTimeout(function(){x.newGame()},0)},c.one("#win-display .new_deal"));c.on("click",function(){x.GameChooser.show(true)},c.one("#win-display .choose_game"));v=true}function t(){var x=300,y=1000,w=1000;f.init();Game.eachStack(function(z){z.eachCard(function(B,A){B.node.setStyle("zIndex",-2);setTimeout(function(){f.bounce(B,0.8,0.2)},~~(w*(z.cards.length-1-A)+Math.random()*w+x))})},"foundation");j.winDisplay(y)}function d(){var x=500,y=900,w=900;Game.eachStack(function(z){z.eachCard(function(A){if(!A){return}var B=A.node;if(A!==z.last()){setTimeout(function(C){C.addClass("hidden")}.partial(B),x);return}B.plug(c.Breakout,{columns:5});(function(C){setTimeout(function(){C.breakout.explode({random:0.65,duration:y})},x)})(B);x+=w})},"foundation");j.winDisplay(x+200)}c.mix(j,{winDisplay:function(w){l=setTimeout(function(){var y=n.game.name(),x=e.getRecord(y);u();o().set("text",n.Application.nameMap[y]);a().set("text",x.streaks().last().length);m().set("text",x.wins().length);r().set("text",x.loses().length);i().removeClass("hidden")},w)},cancel:function(){i().addClass("hidden");clearTimeout(l)},enable:function(){k=true},disable:function(){k=false}});p.push(d);if(window.HTMLCanvasElement){p.push(t)}},"0.0.1",{requires:["solitaire","statistics","util","array-extras","breakout"]});YUI.add("solitaire-ios",function(e){return;if(!e.UA.ios){return}var o=e.Solitaire,q=o.scale,r=0,h=1,t={hspacing:0,vspacing:0,left:0,top:0,},c={scale:1,offset:60,maxStackHeight:155},u={Agnes:{offset:[null,5],maxStackHeight:260},FlowerGarden:{offset:[-60,5],maxStackHeight:235},Freecell:{scale:[1,0.93],offset:[35,5]},Golf:{scale:[1.1,1],offset:[45,8]},GClock:{scale:0.93,offset:5,maxStackHeight:130},Klondike:{offset:[null,5],maxStackHeight:[null,340]},MonteCarlo:{scale:[0.88,1],offset:[80,15]},Pyramid:{offset:20},Scorpion:{offset:5,maxStackHeight:[235,380]},Spider:{scale:[1.13,0.79],offset:[5,2],maxStackHeight:[160,340]},TriTowers:{scale:0.9,offset:10},Yukon:{scale:[0.95,1],offset:[50,5],maxStackHeight:[235,390]}},k={Agnes:function(){var y={hspacing:1.13};l(this,"Reserve",e.merge(y,{top:60}));l(this,"Tableau",e.merge(y,{top:145}));l(this,"Foundation",e.merge(y,{left:135}))},FlowerGarden:[function(){this.Card.rankHeight=15;l(this,"Reserve",{top:0,left:70});l(this,"Foundation",{top:0,left:470,hspacing:0,vspacing:1.1});l(this,"Tableau",{top:0,left:140});e.mix(this.Reserve.Stack,{setCardPosition:function(y){var z=this.cards.last(),B=z?z.top+11:this.top,A=this.left;y.left=A;y.top=B},update:o.noop},true)},function(){var y=o.FlowerGarden.Reserve.Stack.setCardPosition;return function(){l(this,"Tableau",{left:10,top:120});l(this,"Reserve",{left:17,top:60});l(this,"Foundation",{left:55,top:0,hspacing:1.5,vspacing:0});e.mix(this.Reserve.Stack,{setCardPosition:y,update:o.noop},true)}}()],Freecell:[w("Freecell",["Foundation","Reserve","Tableau"]),function(){var y={hspacing:1.05};l(this,"Tableau",y);l(this,"Reserve",y);l(this,"Foundation",e.merge(y,{left:157}))}],Golf:[w("Golf",["Tableau","Foundation"]),function(){l(this,"Tableau",{hspacing:1.1});l(this,"Foundation",{left:132})}],GClock:function(){l(this,"Foundation",{left:143,});l(this,"Tableau",{left:0,top:250,hspacing:1.05})},Klondike:[function(){w("Klondike","Foundation").call(this);w("Klondike","Tableau").call(this)},function(){e.mix(this.Foundation.stackConfig.layout,{left:135,hspacing:1.13},true);e.mix(this.Tableau.stackConfig.layout,{hspacing:1.13},true)}],MonteCarlo:function(){l(this,"Tableau",{cardGap:1.1,vspacing:1.05})},Pyramid:[function(){var y=w("Pyramid","Deck");var z=w("Pyramid","Waste");return function(){y.call(this);z.call(this);e.mix(this.Tableau.stackConfig.layout,{left:190,cardGap:1.1,hspacing:-0.55},true)}}(),function(){e.mix(this.Deck.stackConfig.layout,{left:-10,top:300,},true);e.mix(this.Waste.stackConfig.layout,{top:300,},true);e.mix(this.Tableau.stackConfig.layout,{left:120,cardGap:1.1,hspacing:-0.55},true)}],Scorpion:[function(){l(this,"Deck",{top:0,left:0});l(this,"Foundation",{top:0,left:420,hspacing:0,vspacing:1.1});l(this,"Tableau",{left:60,top:0,hspacing:1.13})},function(){l(this,"Deck",{left:10,top:0});l(this,"Foundation",{left:75,top:0,hspacing:1.5,vspacing:0});l(this,"Tableau",{left:0,top:60,hspacing:1.13})}],Spider:[function(){l(this,"Foundation",{left:94,hspacing:1.05});l(this,"Tableau",{top:65,hspacing:1.05})},function(){l(this,"Foundation",{left:62,hspacing:1});l(this,"Tableau",{hspacing:1})}],TriTowers:function(){e.mix(this.Tableau.stackConfig.layout,{hspacing:-0.5,rowGaps:[3,2,1,0],cardGap:1},true)},RussianSolitaire:[w("RussianSolitaire",["Tableau","Foundation"]),function(){l(this,"Tableau",{top:55,hspacing:1.13});l(this,"Foundation",{left:46,top:0,hspacing:1.5,vspacing:0})}],Yukon:[w("Yukon",["Tableau","Foundation"]),function(){l(this,"Tableau",{top:55,hspacing:1.13});l(this,"Foundation",{left:46,top:0,hspacing:1.5,vspacing:0})}]};u.FortyThieves=u.Spider1S=u.Spider2S=u.Spider;k.FortyThieves=k.Spider1S=k.Spider2S=k.Spider;u.WillOTheWisp=u.Spiderette=u.Klondike1T=u.Klondike;k.WillOTheWisp=k.Spiderette=k.Klondike1T=k.Klondike;u.RussianSolitaire=u.Yukon;e.mix(e.DD.DDM,{useHash:false,_pg_activate:o.noop,_pg_size:function(){}},true);e.DD.DDM.set("throttleTime",40);e.mix(e.DD.Drop.prototype,{_activateShim:function(){var y=e.DD.DDM;if(!y.activeDrag){return false}if(this.get("node")===y.activeDrag.get("node")){return false}if(this.get("lock")){return false}if(this.inGroup(y.activeDrag.get("groups"))){y._addValid(this);this.overTarget=false;if(!this.get("useShim")){this.shim=this.get("node")}this.sizeShim()}else{y._removeValid(this)}},_deactivateShim:function(){this.overTarget=false}},true);o.Statistics.winDisplay=function(){alert("You win!")};o.scale=o.noop;o.Card.ghost=false;o.Animation.animate=false;function l(y,A,z){e.mix(y[A].stackConfig.layout,z,true)}function w(z,y){var A,B=function(C){return[C,e.merge(t,o[z][C].stackConfig.layout)]};A=e.Array.map(e.Array(y),B);return function(){var C=this;e.each(A,function(D){e.mix(C[D[0]].stackConfig.layout,D[1],true)})}}function b(){var y=o.name(),z;if(k.hasOwnProperty(y)){z=n(k[y]);z.call(o.game)}}function n(z){var y=window.innerWidth===480?r:h,A;if(!z.length){return z}A=z[y];return A?A:z[r]}function m(A){var y=o.name(),z=u[y],C=c[A],B=z?z[A]:C;return n(B?B:C)||C}function x(){q.call(o.game,m("scale"))}function i(){return m("offset")}function g(){return m("maxStackHeight")}function a(z){var y=z.target;if(y.hasClass("stack")||y.hasClass("card")){return}z.preventDefault()}function j(){function y(z){return{deleteSelector:function(B){var C=document.styleSheets[z],D,A;if(!C){return}D=Array.prototype.splice.call(C.rules,0);A=D.indexOf(D.filter(function(E){return E.selectorText===B})[0]);if(A!==-1){C.deleteRule(A)}}}}y(0).deleteSelector("#menu li:hover")}function f(y){if(y.target.test("#descriptions *")){return}y.preventDefault()}function s(){var A,D,B,F,z,E,C,y=function(){F.removeClass("show")};j();F=e.one("#menu");z=e.one("body");A=e.one("#undo");C=e.one("#social");E=e.Node.create("
"),p=a.Node.create(""),s=a.Node.create("
"),t=a.Node.create("
"),v=a.Node.create("
"),q=a.Node.create("