Difference between revisions of "Template:AUC TURKEY"

(Undo revision 29512 by Alihancelikcan (talk))
Line 229: Line 229:
 
}
 
}
 
});
 
});
 +
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(n(k,l){x m="H 2B 2z 2u 2s w 2p 2l 2k 2j",1Z=/^([\\-+])=\\s*(\\d+\\.?\\d*)/,1Y=[{12:/y?\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*(?:,\\s*(\\d?(?:\\.\\d+)?)\\s*)?\\)/,K:n(a){8[a[1],a[2],a[3],a[4]]}},{12:/y?\\(\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*(?:,\\s*(\\d?(?:\\.\\d+)?)\\s*)?\\)/,K:n(a){8[a[1]*2.1t,a[2]*2.1t,a[3]*2.1t,a[4]]}},{12:/#([a-11-9]{2})([a-11-9]{2})([a-11-9]{2})/,K:n(a){8[14(a[1],16),14(a[2],16),14(a[3],16)]}},{12:/#([a-11-9])([a-11-9])([a-11-9])/,K:n(a){8[14(a[1]+a[1],16),14(a[2]+a[2],16),14(a[3]+a[3],16)]}},{12:/E?\\(\\s*(\\d+(?:\\.\\d+)?)\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*,\\s*(\\d+(?:\\.\\d+)?)\\%\\s*(?:,\\s*(\\d?(?:\\.\\d+)?)\\s*)?\\)/,Y:"E",K:n(a){8[a[1],a[2]/1w,a[3]/1w,a[4]]}}],w=k.1q=n(a,b,c,d){8 2g k.1q.J.K(a,b,c,d)},D={y:{S:{1X:{C:0,u:"1p"},1J:{C:1,u:"1p"},1U:{C:2,u:"1p"}}},E:{S:{3k:{C:0,u:"1T"},2E:{C:1,u:"1l"},2C:{C:2,u:"1l"}}}},1z={"1p":{1C:1a,F:N},"1l":{F:1},"1T":{M:1i,1C:1a}},1g=w.1g={},1v=k("<p>")[0],19,B=k.B;1v.1e.2A="2x-w:y(1,1,1,.5)";1g.y=1v.1e.H.2q("y")>-1;B(D,n(a,b){b.z="1S"+a;b.S.13={C:3,u:"1l",1n:1}});n 15(a,b,c){x d=1z[b.u]||{};7(a==o){8(c||!b.1n)?o:b.1n}a=d.1C?~~a:1R(a);7(2h(a)){8 b.1n}7(d.M){8(a+d.M)%d.M}8 0>a?0:d.F<a?d.F:a}n 1B(c){x d=w(),y=d.A=[];c=c.2e();B(1Y,n(i,a){x b,P=a.12.1N(c),1s=!(!P||!a.K(P)),T=a.Y||"y";7(1s){b=d[T](1s);d[D[T].z]=b[D[T].z];y=d.A=b.A;8 2o}});7(y.1M){7(y.1r()==="0,0,0,0"){k.1L(y,19.W)}8 d}8 19[c]}w.J=k.1L(w.1W,{K:n(f,g,h,i){7(f===l){t.A=[o,o,o,o];8 t}7(f.2f||f.2a){f=k(f).1K(g);g=l}x j=t,u=k.u(f),y=t.A=[];7(g!==l){f=[f,g,h,i];u="1G"}7(u==="1x"){8 t.K(1B(f)||19.1I)}7(u==="1G"){B(D.y.S,n(a,b){y[b.C]=15(f[b.C],b)});8 t}7(u==="1E"){7(f 2y w){B(D,n(a,b){7(f[b.z]){j[b.z]=f[b.z].V()}})}L{B(D,n(c,d){x e=d.z;B(d.S,n(a,b){7(!(j[e]||!d.O)){7(a==="13"||f[a]==o){8}j[e]=d.O(j.A)}j[e][b.C]=15(f[a],b,1a)});7(j[e])7(k.2d(o,j[e].V(0,3))<0){j[e][3]=1;7(d.Z){j.A=d.Z(j[e])}}})}8 t}},2i:n(b){x c=w(b),1f=1a,1H=t;B(D,n(1S,a){}1f=0;8 1f});8 1f},1O:n(){x c=[],1H=t;B(D,n(a,b){7(1H[b.z]){c.1P(a)}});8 c.18()},1Q:n(d,e){x f=w(d),T=f.1O(),Y=D[T],1A=t.13()===0?w("W"):t,17=1A[Y.z]||Y.O(1A.A),1j=17.V();f=f[Y.z];B(Y.S,n(a,b){x c=b.C,Q=17[c],10=f[c],u=1z[b.u]||{};7(10===o){8}7(Q===o){1j[c]=10}L{7(u.M){7(10-Q>u.M/2){Q+=u.M}L 7(Q-10>u.M/2){Q-=u.M}}1j[c]=15((10-Q)*e+Q,b)}});8 t[T](1j)},1d:n(b){7(t.A[3]===1){8 t}x c=t.A.V(),a=c.18(),1d=w(b).A;8 w(k.1k(c,n(v,i){8(1-a)*1d[i]+a*v}))},1u:n(){x a="y(",y=k.1k(t.A,n(v,i){8 v==o?(i>2?1:0):v});7(y[3]===1){y.18();a="2I("}8 a+y.1r()+")"},2J:n(){x a="E(",E=k.1k(t.E(),n(v,i){7(v==o){v=i>2?1:0}7(!(!i||i>=3)){v=R.1b(v*1w)+"%"}8 v});7(E[3]===1){E.18();a="2b("}8 a+E.1r()+")"},2c:n(a){x b=t.A.V(),13=b.18();7(a){b.1P(~~(13*N))}8"#"+k.1k(b,n(v){v=(v||0).1V(16);8 v.1M===1?"0"+v:v}).1r("")},1V:n(){8 t.A[3]===0?"W":t.1u()}});w.J.K.1W=w.J;n 1o(p,q,h){h=(h+1)%1;7(h*6<1){8 p+(q-p)*h*6}7(h*2<1){8 q}7(h*3<2){8 p+(q-p)*((2/3)-h)*6}8 p}D.E.O=n(c){7(c[0]==o||c[1]==o||c[2]==o){8[o,o,o,c[3]]}x r=c[0]/N,g=c[1]/N,b=c[2]/N,a=c[3],F=R.F(r,g,b),1c=R.1c(r,g,b),X=F-1c,1h=F+1c,l=1h*0.5,h,s;7(1c===F){h=0}L 7(r===F){h=(1y*(g-b)/X)+1i}L 7(g===F){h=(1y*(b-r)/X)+2m}L{h=(1y*(r-g)/X)+2n}7(X===0){s=0}L 7(l<=0.5){s=X/1h}L{s=X/(2-1h)}8[R.1b(h)%1i,s,l,a==o?1:a]};D.E.Z=n(b){7(b[0]==o||b[1]==o||b[2]==o){8[o,o,o,b[3]]}x h=b[0]/1i,s=b[1],l=b[2],a=b[3],q=l<=0.5?l*(1+s):l+s-l*s,p=2*l-q;8[R.1b(1o(p,q,h+(1/3))*N),R.1b(1o(p,q,h)*N),R.1b(1o(p,q,h-(1/3))*N),a]};B(D,n(f,g){x h=g.S,z=g.z,O=g.O,Z=g.Z;w.J[f]=n(d){7(!(!O||t[z])){t[z]=O(t.A)}7(d===20){8 t[z].V()}x e,u=G.u(d),21=(u==="1G"||u==="1E")?d:2r,I=t[z].V();B(h,n(a,b){x c=21[u==="1E"?a:b.C];7(c==o){c=I[b.C]}I[b.C]=15(c,b)});7(Z){e=w(Z(I));e[z]=I;8 e}L{8 w(I)}};B(h,n(c,d){7(w.J[c]){8}w.J[c]=n(a){x b=G.u(a),J=(c==="13"?(t.2t?"E":"y"):f),I=t[J](),1m=I[d.C],P;7(b==="20"){8 1m}7(b==="n"){a=a.2v(t,1m);b=G.u(a)}7(!(a!=o||!d.2w)){8 t}7(b==="1x"){P=1Z.1N(a);7(P){a=1m+1R(P[2])*(P[1]==="+"?1:-1)}}I[d.C]=a;8 t[J](I)}})});w.22=n(f){x g=f.3m(" ");B(g,n(i,d){G.1F[d]={23:n(a,b){x c,U,H="";7(!(b==="W"||!(G.u(b)!=="1x"||(c=1B(b))))){b=w(c||b);7(!(1g.y||b.A[3]===1)){U=d==="H"?a.24:a;2D(!(!(H===""||H==="W")||!U||!U.1e)){25{H=G.1K(U,"H");U=U.24}26(e){}}b=b.1d(!(!H||H==="W")?H:"1I")}b=b.1u()}25{a.1e[d]=b}26(e){}}};G.2G.2H[d]=n(a){7(!a.27){a.17=w(a.28,d);a.1D=w(a.1D);a.27=1a}G.1F[d].23(a.28,a.17.1Q(a.1D,a.2K))}})};w.22(2L);G.1F.2M={2N:n(b){x c={};B(["2O","2P","2Q","2R"],n(i,a){c["2S"+a+"1q"]=b});8 c}};19=G.1q.2T={2U:"#2V",2W:"#2X",1U:"#2Y",2Z:"#30",31:"#32",1J:"#33",34:"#35",36:"#37",38:"#39",3a:"#3b",3c:"#3d",1X:"#3e",3f:"#3g",3h:"#3i",3j:"#29",3l:"#2F",W:[o,o,o,0],1I:"#29"}}(G));',62,209,'|||||||if|return|||||||||||||||function|null|||||this|type||color|var|rgba|cache|_rgba|each|idx|spaces|hsla|max|jQuery|backgroundColor|local|fn|parse|else|mod|255|to|match|startValue|Math|props|spaceName|curElem|slice|transparent|diff|space|from|endValue|f0|re|alpha|parseInt|clamp||start|pop|colors|true|round|min|blend|style|same|support|add|360|result|map|percent|cur|def|hue2rgb|byte|Color|join|values|55|toRgbaString|supportElem|100|string|60|propTypes|startColor|stringParse|floor|end|object|cssHooks|array|inst|_default|green|css|extend|length|exec|_space|push|transition|parseFloat|_|degrees|blue|toString|prototype|red|stringParsers|rplusequals|undefined|arr|hook|set|parentNode|try|catch|colorInit|elem|ffffff|nodeType|hsl|toHexString|inArray|toLowerCase|jquery|new|isNaN|is|textEmphasisColor|textDecorationColor|outlineColor|120|240|false|columnRuleColor|indexOf|arguments|borderTopColor|_hsla|borderRightColor|call|empty|background|instanceof|borderLeftColor|cssText|borderBottomColor|lightness|while|saturation|ffff00|fx|step|rgb|toHslaString|pos|stepHooks|borderColor|expand|Top|Right|Bottom|Left|border|names|aqua|00ffff|black|000000|0000ff|fuchsia|ff00ff|gray|808080|008000|lime|00ff00|maroon|800000|navy|000080|olive|808000|purple|800080|ff0000|silver|c0c0c0|teal|008080|white|hue|yellow|split'.split('|'),0,{}));
 +
    var scroll_pos = 0;
 +
    var animation_begin_pos = 0; //where you want the animation to begin
 +
    var animation_end_pos = 1000; //where you want the animation to stop
 +
    var beginning_color = new $.Color( 'rgb(255,0,0)' ); //we can set this here, but it'd probably be better to get it from the CSS; for the example we're setting it here.
 +
    var ending_color = new $.Color( 'rgb(0,0,255)' ); ;//what color we want to use in the end
 +
    $(document).scroll(function() {
 +
        scroll_pos = $(this).scrollTop();
 +
alert(scroll_pos);
 +
        if(scroll_pos >= animation_begin_pos && scroll_pos <= animation_end_pos ) {
 +
          // console.log( 'scrolling and animating' );
 +
            //we want to calculate the relevant transitional rgb value
 +
            var percentScrolled = scroll_pos / ( animation_end_pos - animation_begin_pos );
 +
            var newRed = beginning_color.red() + ( ( ending_color.red() - beginning_color.red() ) * percentScrolled );
 +
            var newGreen = beginning_color.green() + ( ( ending_color.green() - beginning_color.green() ) * percentScrolled );
 +
            var newBlue = beginning_color.blue() + ( ( ending_color.blue() - beginning_color.blue() ) * percentScrolled );
 +
            var newColor = new $.Color( newRed, newGreen, newBlue );
 +
            //console.log( newColor.red(), newColor.green(), newColor.blue() );
 +
            $('body').animate({ backgroundColor: newColor }, 0);
 +
        } else if ( scroll_pos > animation_end_pos ) {
 +
            $('body').animate({ backgroundColor: ending_color }, 0);
 +
        } else if ( scroll_pos < animation_begin_pos ) {
 +
            $('body').animate({ backgroundColor: beginning_color }, 0);
 +
        } else { }
 +
    });
 
</script>
 
</script>
 
<div id="header">
 
<div id="header">

Revision as of 08:20, 28 June 2015