parent
52cd752835
commit
c95d3a59fa
8 changed files with 12 additions and 1 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,2 @@ |
||||
!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].x<r+l;)n(o[0],o[1])}function n(e,n){a.beginPath(),a.moveTo(e.x,e.y),a.lineTo(n.x,n.y);var i=n.x+(2*f()-.25)*l,d=t(n.y);a.lineTo(i,d),a.closePath(),s-=v/-50,a.fillStyle="#"+(127*y(s)+128<<16|127*y(s+v/3)+128<<8|127*y(s+v/3*2)+128).toString(16),a.fill(),o[0]=o[1],o[1]={x:i,y:d}}function t(e){var n=e+(2*f()-1.1)*l;return n>c||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
|
@ -0,0 +1 @@ |
||||
.markdown-body .markdown-heading:focus,.markdown-body a{color:#0366d6}.token.string{color:#183691}.nav-list .nav-item>a.router-link-active,.nav-list .nav-item>div.router-link-active{color:#0366d6;border-bottom-color:#0366d6}.nav-list .nav-item-dropdown .dropdown-list .dropdown-item .router-link-active,.nav-list .nav-item-dropdown .dropdown-list .dropdown-item .router-link:hover,.sidebar-headings .sidebar-heading .sidebar-heading-anchor.active,.sidebar-headings .sidebar-heading .sidebar-heading-anchor:hover{color:#0366d6}#nprogress .bar{background:#0366d6}#nprogress .spinner-icon{border-top-color:#0366d6;border-left-color:#0366d6}.link:hover,.search-form .svg-icon.do-search:hover{color:#0366d6} |
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue