You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
1.2 KiB

!function(){var e=document.getElementById("ribbon");if("false"!==e.getAttribute("mobile")||!/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(navigator.userAgent)){var t,n,i={z:m(e,"zIndex",-1),a:m(e,"alpha",.6),s:m(e,"size",90),c:e.getAttribute("data-click")},o=document.createElement("canvas"),a=o.getContext("2d"),c=window.devicePixelRatio||1,l=window.innerWidth,d=window.innerHeight,r=i.s,s=Math,u=0,h=2*s.PI,g=s.cos,f=s.random;o.width=l*c,o.height=d*c,a.scale(c,c),a.globalAlpha=i.a,o.style.cssText="opacity: "+i.a+";position:fixed;top:0;left:0;z-index: "+i.z+";width:100%;height:100%;pointer-events:none;",document.getElementsByTagName("body")[0].appendChild(o),"false"!==i.c&&(document.onclick=x,document.ontouchstart=x),x()}function m(e,t,n){return Number(e.getAttribute(t))||n}function x(){for(a.clearRect(0,0,l,d),t=[{x:0,y:.7*d+r},{x:0,y:.7*d-r}];t[1].x<l+r;)y(t[0],t[1])}function y(e,n){a.beginPath(),a.moveTo(e.x,e.y),a.lineTo(n.x,n.y);var i=n.x+(2*f()-.25)*r,o=b(n.y);a.lineTo(i,o),a.closePath(),u-=h/-50,a.fillStyle="#"+(127*g(u)+128<<16|127*g(u+h/3)+128<<8|127*g(u+h/3*2)+128).toString(16),a.fill(),t[0]=t[1],t[1]={x:i,y:o}}function b(e){return(n=e+(2*f()-1.1)*r)>d||n<0?b(e):n}}();