// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT
var o=document.getElementById("snow"),l=200,i,b;function M(){i=document.documentElement.getBoundingClientRect().height,b=100*Math.max(i/innerHeight,1)}function E(){var n,t;l=Number((t=(n=o.attributes.count)==null?void 0:n.value)!=null?t:l)}function S(n){n?o.style.display="block":o.style.display="none"}function C(n=200){for(let t=1;t<=n;t++){let e=document.createElement("p");o.appendChild(e)}}function y(n){let t=document.createElement("style");t.appendChild(document.createTextNode(n)),document.getElementsByTagName("head")[0].appendChild(t)}function g(n=100){return Math.floor(Math.random()*n)+1}function w(n,t){return n=Math.ceil(n),t=Math.floor(t),Math.floor(Math.random()*(t-n+1))+n}function v(n,t){return Math.random()*(t-n)+n}function $(n=200){let t="";for(let e=1;e<=n;e++){let a=Math.random()*100,s=Math.random()*10,c=a+s,m=a+s/2,d=v(.3,.8),u=d*100,r=Math.random(),f=w(10,30),h=g(30)*-1,p=Math.random();t+="#snow p:nth-child(".concat(e,"){opacity:").concat(p,";transform:translate(").concat(a,"vw,-10px) scale(").concat(r,");animation:fall-").concat(e," ").concat(f,"s ").concat(h,"s linear infinite}@keyframes fall-").concat(e,"{").concat(d*100,"%{transform:translate(").concat(c,"vw,").concat(u,"vh) scale(").concat(r,")}to{transform:translate(").concat(m,"vw,100vh) scale(").concat(r,")}}")}y(t)}function H(){$(l)}export{H as createSnow,S as showSnow};
// @license-end
//# sourceMappingURL=snow.js.map
