PageSourceSearch

https://www.abc-nins.jp/wp-content/plugins/mountain_helper_plugin/…/assets/js/effects/night-sky.min.js?ver=1

js abc-nins.jp collected 2026-10-03 22:24:53 UTC 2,736 bytes, 1 lines download raw bytes

1function initNightSky(t,i,e,s,h,n,o,l){var a=document.getElementById("night-sky"),r=a.getContext("2d"),p=document.getElementById("effect-box").clientWidth,d=document.getElementById("effect-box").clientHeight;function m(t){t=t||{},this.terrain=document.createElement("canvas"),this.terCtx=this.terrain.getContext("2d"),this.scrollDelay=t.scrollDelay||l,this.lastScroll=(new Date).getTime(),this.terrain.width=p,this.terrain.height=d,this.fillStyle=t.fillStyle||s,this.mHeight=t.mHeight||d,this.points=[];var i=t.displacement||140,e=Math.pow(2,Math.ceil(Math.log(p)/Math.log(2)));this.points[0]=this.mHeight,this.points[e]=this.points[0];for(var h=1;h<e;h*=2){for(var n=e/h/2;n<e;n+=e/h)this.points[n]=(this.points[n-e/h/2]+this.points[n+e/h/2])/2+Math.floor(Math.random()*-i+i);i*=o}document.getElementById("night-sky-bg").appendChild(this.terrain)}function c(t){this.size=2*Math.random(),this.speed=.05*Math.random(),this.x=t.x,this.y=t.y}function y(){this.reset()}d<400&&(d=400),a.width=p,a.height=d,m.prototype.update=function(){this.terCtx.clearRect(0,0,p,d),this.terCtx.fillStyle=this.fillStyle,(new Date).getTime()>this.lastScroll+this.scrollDelay&&(this.lastScroll=(new Date).getTime(),this.points.push(this.points.shift())),this.terCtx.beginPath();for(var t=0;t<=p;t++)0===t?this.terCtx.moveTo(0,this.points[0]):void 0!==this.points[t]&&this.terCtx.lineTo(t,this.points[t]);this.terCtx.lineTo(p,this.terrain.height),this.terCtx.lineTo(0,this.terrain.height),this.terCtx.lineTo(0,this.points[0]),this.terCtx.fill()},r.fillStyle="#05004c",r.fillRect(0,0,p,d),c.prototype.reset=function(){this.size=2*Math.random(),this.speed=.05*Math.random(),this.x=p,this.y=Math.random()*d},c.prototype.update=function(){this.x-=this.speed,this.x<0?this.reset():r.fillRect(this.x,this.y,this.size,this.size)},y.prototype.reset=function(){this.x=Math.random()*p,this.y=0,this.len=80*Math.random()+10,this.speed=10*Math.random()+6,this.size=1*Math.random()+.1,this.waitTime=(new Date).getTime()+3e3*Math.random()+500,this.active=!1},y.prototype.update=function(){this.active?(this.x-=this.speed,this.y+=this.speed,this.x<0||this.y>=d?this.reset():(r.lineWidth=this.size,r.beginPath(),r.moveTo(this.x,this.y),r.lineTo(this.x+this.len,this.y-this.len),r.stroke())):this.waitTime<(new Date).getTime()&&(this.active=!0)};for(var f=[],g=0;g<d;g++)f.push(new c({x:Math.random()*p,y:Math.random()*d}));f.push(new y),f.push(new y),f.push(new m({mHeight:d/2-120})),f.push(new m({displacement:120,scrollDelay:50,fillStyle:h,mHeight:d/2-60})),f.push(new m({displacement:100,scrollDelay:20,fillStyle:n,mHeight:d/2})),function s(){r.fillStyle=t,r.fillRect(0,0,p,d),r.fillStyle=i,r.strokeStyle=e;for(var h=f.length;h--;)f[h].update();requestAnimationFrame(s)}()}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.