2015-07-13 23:33:36 +02:00
|
|
|
(function(e){typeof define=="function"&&define.amd?define(["jquery","skel"],e):e(jQuery,skel)})(function(e,t){var n="config",r="_skel_layers_translateOrigin",i="cache",s="_skel_layers_translate",o="visibleWrapper",u="_skel_layers_resetForms",f="_skel_layers_resume",l="exclusiveLayer",c="_skel_layers_promote",h="$element",p="_skel_layers_demote",d="moveToVisibleWrapper",v="setTimeout",m="moveToHiddenWrapper",g="right",y="bottom",b="position",w="useActive",E="width",S="css",x=null,T="center",N="_skel_layers_suspend",C="prototype",k="left",L="wrapper",A="skel-layers-layer-z-index",O="_skel_layers_init",M="children",_="skel-layers-moved",D="overflow-x",P="hiddenWrapper",H=!1,B="scrollTop",j="element",F="transform",I="layers",q=".skel-layers-fixed:not(.skel-layers-moved)",R="top",U="height",z="length",W="visible",X="touchstart.lock click.lock scroll.lock",V='<div id="skel-layers-placeholder-',$="resetForms",J=!0,K="-webkit-",Q="recalcW",G="padding-bottom",Y="skel-layers-exclusiveVisible",Z="isInitialized",et="originalEvent",tt="animation",nt="-webkit-tap-highlight-color",rt="hidden",it="z-index",st="skel-layers-layer-position",ot="skel-layers-layer-index",ut="#skel-layers-placeholder-",at="skel_layers_hiddenWrapper",ft="unlockView",lt="animations",ct="_skel_layers_initializeCell",ht="append",pt="registerLocation",dt="speed",vt="resize.lock scroll.lock",mt="orientationchange.lock",gt="undefined",yt="none",bt="positions",wt="window",Et="stopPropagation",St="touchPosX",xt="touchPosY",Tt="-moz-",Nt="blur",Ct="_skel_layers_expandCell",kt="preventDefault",Lt="attr",At="find",Ot="_skel_layers_hasParent",Mt="deviceType",_t="iterate",Dt="-ms-",Pt="DOMReady",Ht="lockView",Bt="addClass",jt="html",Ft="auto",It="hide",qt="_skel_layers_xcss",Rt="-o-",Ut="transformBreakpoints",zt="rgba(0,0,0,0)",Wt="removeClass",Xt="trigger",Vt="appendTo",$t="object",Jt="cell-size",Kt="body",Qt="px",Gt="-",Yt="isVisible",Zt="recalcH",en="side",tn="touches",nn="show",rn="relative",sn="x",on="htmlbody",un="#",an="*",fn="getArray",ln="transformTest";t.registerPlugin(I,function(e){function Nn(e,r,i){var s,o;this.id=e,this.index=i,this[n]={breakpoints:x,states:x,position:x,side:x,animation:yt,orientation:yt,width:0,height:0,zIndex:this.index,html:"",hidden:H,exclusive:J,resetScroll:J,resetForms:J,swipeToHide:J,clickToHide:H},t._.extend(this[n],r),this[j]=t._.newDiv(this[n][jt]),this[j].id=e,this[j]._layer=this,this[h]=x,this[St]=x,this[xt]=x,this[W]=H,o=t._.newElement(this.id,this[j],at,1),o.onAttach=function(){var e=this[$t]._layer;e[Z]()||e.init(),e.resume()},o.onDetach=function(){var e=this[$t]._layer;e.suspend()},this[n].states&&this[n].states!=t._.sd?(t._.cacheElement(o),s=t._[fn](this[n].states),t._[_t](s,function(e){t._.addCachedElementToState(s[e],o)})):this[n].breakpoints?(t._.cacheElement(o),s=t._[fn](this[n].breakpoints),t._[_t](s,function(e){t._.addCachedElementToBreakpoint(s[e],o)})):t._.attachElement(o)}var t;return typeof e==gt?H:(e.fn[p]=function(){var t,n;if(this[z]>1){for(t=0;t<this[z];t++)e(this[t])[p]();return e(this)}return n=e(this),n[S](it,n.data(A)).data(A,""),n},e.fn[Ct]=function(){var t=e(this),n=t.parent(),r=12;n[M]().each(function(){var t=e(this),n=t[Lt]("class");n&&n.match(/(\s+|^)([0-9]+)u(\s+|$)/)&&(r-=parseInt(RegExp.$2))}),r>0&&(t[ct](),t[S](E,(t.data(Jt)+r)/12*100+"%"))},e.fn[Ot]=function(){return e(this).parents()[z]>0},e.fn[ct]=function(){var t=e(this);t[Lt]("class").match(/(\s+|^)([0-9]+)u(\s+|$)/)&&t.data(Jt,parseInt(RegExp.$2))},e.fn[c]=function(r){var i,s,o;if(this[z]>1){for(i=0;i<this[z];i++)e(this[i])[c](r);return e(this)}return s=e(this),isNaN(o=parseInt(s.data(ot)))&&(o=0),s.data(A,s[S](it))[S](it,t[n].baseZIndex+o+(r?r:1)),s},e.fn[u]=function(){var t=e(this);return e(this)[At]("form").each(function(){this.reset()}),t},e.fn[qt]=function(t,n){return e(this)[S](t,n)[S](Tt+t,Tt+n)[S](K+t,K+n)[S](Rt+t,Rt+n)[S](Dt+t,Dt+n)},e.fn._skel_layers_xcssProperty=function(t,n){return e(this)[S](t,n)[S](Tt+t,n)[S](K+t,n)[S](Rt+t,n)[S](Dt+t,n)},e.fn._skel_layers_xcssValue=function(t,n){return e(this)[S](t,n)[S](t,Tt+n)[S](t,K+n)[S](t,
|