!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.evanyou=n()}(this,function(){"use strict";var e=function(){function e(){for(a.clearRect(0,0,r,c),o=[{x:0,y:.7*c+l},{x:0,y:.7*c-l}];o[1].xc||n<0?t(e):n}var o,i=document.getElementById("evanyou-canvas"),a=i.getContext("2d"),d=window.devicePixelRatio||1,r=window.innerWidth,c=window.innerHeight,l=90,u=Math,s=0,v=2*u.PI,y=u.cos,f=u.random;return i.width=r*d,i.height=c*d,a.scale(d,d),a.globalAlpha=.6,e(),e},n=function(){return function(n){var t,o=n.router;o.afterEach(function(n){var o=n.meta&&"landing"===n.meta.name;if(o){var i=document.createElement("canvas");i.id="evanyou-canvas",i.style.position="absolute",i.style.top=0,i.style.left=0,i.style.zIndex=0,i.style.width="100%",i.style.width="100%",i.style.pointerEvents="none",document.body.appendChild(i),t=e(),document.addEventListener("click",t)}else{var a=document.getElementById("evanyou-canvas");a&&a.parentNode.removeChild(a),t&&(document.removeEventListener("click",t),t=void 0)}})}};return n}); //# sourceMappingURL=evanyou.min.js.map