Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 11th, 2012  |  syntax: JavaScript  |  size: 9.08 KB  |  views: 153  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. (function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,s,t,u,v,w,z,Q,T,U,X,Y,Z;function A(a,b){return[u=document.createElement('canvas'),u.getContext('2d'),w=u.getContext('2d').getImageData(0,0,a,b),w.data,u.width=a,u.height=b]}q=7875;U=17463600;s=[[6,0,0,1,144,0,5,7,0,0,30,0,0,900,0,17300,254,0,0,254,0,0,0,0,0,0,0,0,0,[,,,,,,1,2,2,5,3,4,7,8,6],[[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,147],[147,,,,,,147,,147,,,,,,147,,147,,,,,,147,,147,,,,,,147],[147,,,,,,147,,,,,,,,147,,147,,,,,,147,,,,,,,,147,147],[147,,,,,,147,,,,,,,,,,147,,,,,,147],[147,,,,,,147,,147,,,,,,147,,147,,,,,,147,,147],[147,,,,,,147,,147,,,,,,146,,146,,,,,,144,,135],[147,,,,,,147,,,,147,,159,,,,147,,147,,,,147,,,,147,,159,,147],[147,,,,,,147,,,,,,159,,147,,147,,,,,,147,,147,,,,,,147]],],[8,0,0,0,192,2,8,7,0,0,172,2,0,48200,80900,51800,174,1,1300,43,6,172,1,140,0,1,3,180,0,[,,1,2,1,2,3,,3,,5,6,5,6,7],[[120],[118],[116,,,,,,,,,,,,,,118,,,,,,,,,,,,,,,,120],[],[120,151,156],[118,149,154],[152,116,,,,,,,,,,,,,118,,142,,,,,,,,,,,,,,120,144]],],[7,0,0,0,255,3,8,0,8,0,85,3,0,47300,40900,46400,141,1,224,73,2,15,0,0,0,0,0,0,0,[,,1,2,1,2,3,1,3,1,1,2,1,2,3,1],[[120,,,,,,,,,,,,,,,,120],[118,,,,,,118],[116,,,,,,,,,,,,,,,,118]],],[10,0,0,0,60,0,12,7,0,0,125,0,0,0,0,47300,100,1,7800,240,8,34,3,0,0,0,0,0,0,[1,1,1,2,1,2,3,,4,,1,2,1,7,5],[[132,,,,139,,,,137,,,,142,,,,139,,,,144,,,,139,,,,135],[137,,,,142,,,,139,,,,144,,,,142,,,,146,,,,142,,,,135],[,,132,,135,,132,,135,,139,,,,137,,,,132,,135,,132,,135,,135,,,,135],[,,132,,135,,132,,135,,139,,,,137,,,,132,,135,,132,,135,,135,,,,132],[,,132,,135,,132,,135,,139,,,,137,,,,132,,135,,132,,135,,135,,,,144],[],[137,,,,142,,,,139,,,,144,,,,142,,,,146,,,,147,,,,149]]]];c=A(2090,2090)[3];d=A(2090,2090)[3];for(u=0;++u<2090*2090*4;d[u++]=128);for(w=4;w--;){z=[function(u){return Math.sin(u*Math.PI*2)},,function(u){return u%1-.5},function(u){return(u=u%1*4)<2?u-1:3-u}];for(b=0;b<U;c[b++]=(~b&1)<<7)i=s[w];X=z[i[28]];Y=Math.pow(2,i[22]-8)/q;Z=Math.pow(2,i[26]-8)/q;for(n=p=0;p<512;p++){if((l=i[29][p>>5])&&(b=i[30][l-1][p&31])){a=Math.pow(Math.pow(2,1/12),b+(i[0]-8)*12-128)/256;b=Math.pow(Math.pow(2,1/12),b+(i[6]-8)*12+i[7]-128)/256;Q=T=g=h=0;for(j=i[13]+i[14]+i[15];j--;){e=j<i[13]?j/i[13]:1-(j>=i[13]+i[14])*(j-i[13]-i[14])/i[15];t=[l=i[19]/255*((z[i[5]](Q+=(a+(m=X((k=j+n)*Z)*i[27]/512+.5)*i[24])*(i[3]?e*e:1))*i[4]+z[i[11]](T+=b)*i[10])*e/255-h)-(g+=(f=1.5*Math.sin(i[18]*(i[25]?m:1)*Math.PI/210/210))*h),g,h+=f*l][i[17]]*39*i[16];m=.5-Math.sin(k*Y*Math.PI*2)*i[23]/512;k<<=2;u=c[k]+(c[k+1]<<8)+t*m;c[k++]=u&255;c[k++]=u>>8&255;m=1-m;u=c[k]+(c[k+1]<<8)+t*m;c[k++]=u&255;c[k++]=u>>8&255}}n+=q}p=i[20]*q>>1;for(n=0;n<4365900-p;){b=4*n+2;k=4*(n+++p);u=c[k]+(c[k+1]<<8)+(c[b]+(c[b+1]<<8)-32768)*i[21]/255;c[k++]=u&255;c[k++]=u>>8&255;b-=2;u=c[k]+(c[k+1]<<8)+(c[b]+(c[b+1]<<8)-32768)*i[21]/255;c[k++]=u&255;c[k++]=u>>8&255}for(b=0;b<U;){u=d[b]+(d[b+1]<<8)+c[b]+(c[b+1]<<8)-32768;d[b++]=u&255;d[b++]=u>>8&255}};s='RIFF    WAVEfmt '+atob('EAAAAAEAAgBErAAAELECAAQAEAA=')+'data    ';for(b=0;b<U;){u=4*(d[b++]+(d[b++]<<8)-32768);u=u<-32768?-32768:(u>32767?32767:u);s+=String.fromCharCode(u&255,u>>8&255)}AT=new Audio('data:audio/wav;base64,'+btoa(s));document.body.style.margin=0;E=28;function r(a){E=(1664525*E+1013904223)%(256*256*256*256);return a*E/256/256/256/256}function O(a,b,c,d){return'rgba('+(a>>0)+','+(b>>0)+','+(c>>0)+','+d+')'}function B(a,b,c,d){a[b++]=c[0];a[b++]=c[1];a[b++]=c[2];a[b++]=d}function D(a,b,c){X=A(a,a);Y=A(a*2,a*2);for(w=0;w<X[3].length;w+=4)B(X[3],w,b,r(250));X[1].putImageData(X[2],0,0);Y[1].drawImage(X[0],0,0,a*2,a*2);X=A(a,a);for(w=c*4;w<=Y[4];w*=2)X[1].globalAlpha=16/w,X[1].drawImage(Y[0],r(Y[4]),r(Y[5]),w,w,0,0,a,a);return X}F=A(600,600);G=A(600,600);F[1].save();n=F[1].createRadialGradient(300,300,250,300,300,265);n.addColorStop(0,O(200,250,250,.5));n.addColorStop(1,O(0,0,0,0));F[1].fillStyle=n;F[1].fillRect(0,0,600,600);F[1].arc(300,300,250,0,7,false);F[1].clip();u=F[1].createRadialGradient(300,300,0,300,300,250);u.addColorStop(0,'#0A4563');u.addColorStop(.6,'#094867');u.addColorStop(.75,'#0C5D81');u.addColorStop(.8,'#106C8E');u.addColorStop(1,'#8ED5E9');F[1].fillStyle=u;F[1].fillRect(0,0,600,600);F[1].globalAlpha=.25;F[1].drawImage(D(500,[250,250,250],16)[0],50,50,500,500);F[1].restore();F[1].arc(300,300,250,0,7,false);F[1].lineWidth=2;F[1].strokeStyle='#B1E0E6';F[1].stroke();G[1].arc(300,300,265,0,7,false);G[1].clip();function I(a,b,c,d,e,f,g){g=g||C;g.save();g.translate(b,c);g.scale(d,e||d*R);g.rotate(f);g.drawImage(a[0],-.5,-.5,1,1);g.restore()}function J(a,b,c){a[1].save();a[1].translate(0,-1);a[1].rotate(c*.017);a[1].fillRect(0,0,b,b);if(b>.5)if(r(100)<1)J(a,b*.85,15),J(a,b*.85,-15);else J(a,b*.995,.1);a[1].restore()}function M(a,b,c,d){a[1].beginPath();a[1].moveTo(0,a[5]);a[1].lineTo(0,b*=a[5]);for(u=0;u<a[4]+d;u+=d)a[1].lineTo(u,b+Math.sin(u/270)*c+r(d));a[1].lineTo(u,a[5]);a[1].closePath();a[1].shadowColor=a[1].fillStyle='black';a[1].shadowBlur=5;a[1].fill()}function AH(f,w,h,g){u=A(500,500);u[1].translate(250,250);for(v=f;v--;)u[1].lineTo(190-3,-h),u[1].lineTo(190+w,-g),u[1].lineTo(190+w,g),u[1].lineTo(190-3,h),u[1].rotate(6.28/f);u[1].fill();return u}AH=[AH(48,12,12,3),AH(24,20,17,11),AH(24,20,17,11)];V.width=W=innerWidth;V.height=H=innerHeight;R=W/H;N=A(W*2,H);for(u=W*H*.01;u-->0;)B(N[3],(r(N[4]*N[5])>>0)*4,[v=r(150),v,v],250);N[1].putImageData(N[2],0,0);P=D(W,[19,67,100],8);AA=.1;function AB(a,b,c){C.rotate(AA+=b==1?0:.00006);C.translate(0,-.3);C.drawImage(N[0],0,0,2,1);C.drawImage(N[0],0,1,2,1);C.drawImage(N[0],0,-1,2,1);C.translate(0,.3);C.rotate(-AA);C.globalAlpha=a;I(G,.3,u=.5-b/3.5,u,0);C.globalAlpha=b*3;I(P,c,.5,5-b*2,0);C.globalAlpha=1}function AG(a){z=[0,-20];for(w=u=0;u<a;){u+=v=r(2)<1?20:10;z.push(v);z.push((r(2)-1)*2);if(r(4)<1)z=z.concat([0,-10,1,0,0,10]);for(v=(r(15)-5)*3;Math.abs(w+v+u/15)>10;v=(r(15)-5)*3);w+=v;z.push(0);z.push(v)}return z.concat([0,20])}function AI(a){z=[];for(w=u=0;u<a.length-2;)w+=a[u],z.push(-a[u++]),z.push(a[u++]);return[0,-20].concat(a.concat(z).concat([w,0,0,20]))}AJ=[[0,H,0,H*-.36].concat(AG(W/3.5)).concat(AI([0,-75,36,0,0,18,-17,0,0,57,-19,0,72,0])).concat(AG(W/8)).concat(AI(AU=[8,-17,-2,0,0,-2,7,0,2,-4,-3,0,0,-10,6,0,9,-36,-2,0,-1,-5,4,-3,4,-26,2,-29,3,-58,-2,0,0,-5,2,0,0,-2,-2,0,5,-9,1,-16,0,151,-5,0,-1,4,6,0,0,4,-7,0,-4,26,11,0,0,20,-9,1,-9,5,-8,11,67,0])).concat(AG(W/8)).concat(AI([1,-9,4,-7,6,-5,0,-10,3,-9,3,9,0,10,10,11,7,-7,0,-5,2,0,0,-2,-2,0,0,-9,2,0,0,-9,-2,0,0,-5,3,0,1,-10,4,-9,7,-7,8,-5,0,-15,6,-10,0,103,63,0])).concat(AG(W)).concat([0,H]),[0,H,0,H*-.22].concat(AG(W)).concat([0,H]),[0,H,0,H*-.16].concat(AG(W)).concat([0,H])];L=A(W,H);LL=A(W,H);M(L,.75,30,3);L[1].translate(W*.17,H*.8);J(L,10);L[1].translate(-W*.17,-H*.8);function AS(a,b,c){LL[1].clearRect(0,0,W,H);LL[1].globalAlpha=a;u=LL[1].createLinearGradient(0,0,0,H/2),u.addColorStop(0,c?'#EF9912':O(11+25*b,32+70*b,45+99*b,.3+b*.7)),u.addColorStop(1,c?'#F9B410':O(39+87*b,61+135*b,69+152*b,.3+b*.7)),LL[1].fillStyle=u,LL[1].fillRect(0,0,W,H);LL[1].globalAlpha=a*a;for(u=0;u<AJ.length;u++){LL[1].beginPath();LL[1].moveTo(v=AJ[u][0],w=AJ[u][1]);for(X=2;X<AJ[u].length;)LL[1].lineTo(v+=AJ[u][X++]*(1+u/3),w+=AJ[u][X++]*(1+u/3));LL[1].closePath();LL[1].fillStyle=c?O(64+21*(1-u),44+15*(1-u),14,1):O((5+47*b)/(u+1),(14+116*b)/(u+1),(14+151*b)/(u+1),1);LL[1].fill()}if(c)LL[1].font='50px Georgia',LL[1].fillStyle='black',LL[1].fillText('DemoJS',W*.6,H*.2),LL[1].font='30px Georgia',LL[1].fillText('Paris, 29-30 June 2012',W*.6,H*.25),C.globalAlpha=c;LL[1].globalAlpha=1;LL[1].drawImage(L[0],0,0);C.drawImage(LL[0],0,0,1,1)}AN=A(W,H*3);u=AN[1].createLinearGradient(0,0,0,H*3);u.addColorStop(0,'#563409');u.addColorStop(.5,'#563409');u.addColorStop(1,'#E7D22C');AN[1].fillStyle=u;AN[1].fillRect(0,0,W,H*3);v=A(H*3,W);M(v,.65,30,40);AN[1].rotate(Math.PI/2+.1);AN[1].drawImage(v[0],0,-W);AN[1].rotate(Math.PI/2-.2);AN[1].drawImage(v[0],-H*3,-W);AN[1].rotate(Math.PI/2);AN[1].drawImage(v[0],-H*3,0);AN[1].rotate(Math.PI/2);AN[1].drawImage(v[0],-W/10,H*3-W*.8);AN[1].fillStyle='black';AN[1].font='175px Georgia';AN[1].translate(W/10,H*2.8);AN[1].fillText('Dem   JS',0,0);AN[1].drawImage(AH[1][0],360,-100,W*.09,W*.09);AM=D(W,[0,0,0],8);var effects=[function(p){C.globalAlpha=Math.sin(p)},0,0,8,0,function(p){G[1].clearRect(0,0,G[4],G[5]);G[1].drawImage(F[0],0,0);u=G[1].createRadialGradient(300*(1.197+p/2),300*(1.217+p/2),320,300*(1.197+p/2),300*(1.217+p/2),530);u.addColorStop(0,O(0,0,0,.95));u.addColorStop(1,O(0,0,0,0));G[1].fillStyle=u;G[1].fillRect(0,0,600,600);AB(p*5,0,.5)},0,16,17,1,function(p){AB(1,p,.5)},34,0,17,0,function(p){AB(1,1,.5+p/7)},51,0,12,18,function(p){C.globalAlpha=p*2;I(L,.5,.5,2-Math.pow(p,.1),2-Math.pow(p,.1))},49,0,9,6,function(p){AS(p,0)},64,0,10,2,function(p){AS(1,p)},76,0,4,1,function(p){AS(1,1,p)},119,0,2,10,function(p){C.drawImage(LL[0],0,-p,1,1)},81,0,12,0,function(p){C.drawImage(AN[0],0,1-p*3,1,3);C.drawImage(AM[0],0,1-p*3,2,R*2);for(w=7;w--;)I(AH[w%3],w%2?.2:.8,1.2+w/3-p*3,.3,0,p*3)},81,0,12*3,1,];function AQ(){C.save();C.fillStyle='black';C.fillRect(0,0,W,H);C.scale(W,H);for(t=0;t<effects.length;t+=5){q=1000*AT.currentTime-714*effects[t+1];if(q>=0){q-=714*effects[t+2];if(q<0)effects[t](0);else if(q/effects[t+3]<714)effects[t](q/effects[t+3]/714);else if(q/714<=effects[t+3]+effects[t+4])effects[t](1)}}C.restore();setTimeout(AQ,20)}AT.play();AQ()})()