diff --git a/assets/css/setup-wizard.min.css b/assets/css/setup-wizard.min.css index 8317cd54..d19b7f12 100644 --- a/assets/css/setup-wizard.min.css +++ b/assets/css/setup-wizard.min.css @@ -1 +1 @@ -html.wpo-wizard{margin:0;padding:0;width:100%;height:100%;background:0 0}body.wpo-wcpdf-setup{border:none;padding:0;margin:0;width:100%;height:100%;background-repeat:no-repeat;background-attachment:fixed!important;font-size:14px;line-height:22px;background:#771787;background:-webkit-linear-gradient(10deg,#3c105d,#771787);background:-o-linear-gradient(10deg,#3c105d,#771787);background:linear-gradient(100deg,#3c105d,#771787)}body.wpo-wcpdf-setup a:link,body.wpo-wcpdf-setup a:visited{color:#771787;text-decoration:none}body.wpo-wcpdf-setup a:hover{text-decoration:underline}body.wpo-wcpdf-setup input:focus,body.wpo-wcpdf-setup select:focus,body.wpo-wcpdf-setup textarea:focus{border-color:#239bb9!important;box-shadow:0 0 0 1px #239bb9!important;outline:2px solid transparent!important;color:#000!important}body.wpo-wcpdf-setup select:hover{color:#666!important}body.wpo-wcpdf-setup h1,body.wpo-wcpdf-setup h2{border:none;margin:0;color:#000}body.wpo-wcpdf-setup form{width:80%;max-width:900px;position:absolute;left:50%;transform:translate(-50%,0);padding:80px 15px 100px 15px}.wpo-setup-card{display:block;background-color:#fff;padding:0;overflow:hidden;box-shadow:0 20px 50px 20px rgba(0,0,0,.2)}.wpo-plugin-title{width:100%;padding:40px 0 30px 0;margin:0;text-align:center;display:block;font-weight:200}.wpo-progress-bar{width:100%;overflow:hidden;list-style:none;box-sizing:border-box;padding:0}.wpo-progress-bar li{width:12.5%;float:left;box-sizing:border-box;position:relative;padding:0;margin:0}.wpo-progress-bar li:first-child{width:calc((12.5% - (12.5% - 35px))/ 2 + 12.5%)}.wpo-progress-bar li::after{content:'';display:block;height:2px;width:100%;background-color:#eaeaea;position:absolute;top:calc(50% - 1px);right:0}.wpo-progress-bar li:first-child::after{display:none}.wpo-progress-bar li.active::after,.wpo-progress-bar li.completed::after{background-color:#771787}.wpo-progress-marker{height:35px;width:35px;background-color:#eaeaea;border:2px solid #eaeaea;border-radius:50%;position:relative;z-index:1;float:right;box-sizing:border-box}.wpo-progress-bar{counter-reset:section}.wpo-progress-marker::before{counter-increment:section;content:counter(section);position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#999}li.active .wpo-progress-marker::before{color:#771787}li.completed .wpo-progress-marker::before{color:#fff}.wpo-progress-bar li.completed .wpo-progress-marker{background-color:#771787;border-color:#771787}.wpo-progress-bar li.active .wpo-progress-marker{border-color:#771787;background-color:#fff}.wpo-setup-content{float:left;width:100%;overflow:hidden}.wpo-step-description{width:50%;float:left;padding:50px;box-sizing:border-box}.wpo-step-description ul{padding-left:16px}.wpo-setup-input{width:50%;float:left;padding:50px 50px 50px 0;box-sizing:border-box;position:relative}.wpo-setup-input select{width:100%}.wpo-setup-buttons{width:100%;float:left;padding:0 50px 50px 50px;box-sizing:border-box}.wpo-setup-card .wpo-button-next,.wpo-setup-card .wpo-button-previous,.wpo-setup-card .wpo-setup-input span.button,.wpo-setup-card .wpo-skip-step{padding:.5em 1.2em;border-radius:3px;box-sizing:border-box;font-size:1em;text-decoration:none;cursor:pointer;font-size:1.2em;box-sizing:border-box}.wpo-setup-card .wpo-button-next{background-color:#1c6c8b;border:1px solid #1c6c8b;color:#fff!important}.wpo-setup-card .wpo-button-previous,.wpo-setup-input span.button{background-color:transparent;border:1px solid #1c6c8b;color:#1c6c8b}.wpo-setup-card .wpo-button-next:hover,.wpo-setup-card .wpo-button-previous:hover,.wpo-setup-input span.button:hover{background-color:#239bb9;color:#fff!important;text-decoration:none;border-color:#239bb9}.wpo-setup-card .wpo-button-next:focus,.wpo-setup-card .wpo-button-previous:focus,.wpo-setup-input span.button:focus{background-color:#239bb9;color:#fff!important;border-color:#239bb9}.wpo-setup-card .wpo-button-next,.wpo-setup-card .wpo-skip-step{float:right;margin-left:10px}.wpo-setup-card .wpo-button-previous{float:left;color:#1c6c8b!important}.wpo-setup-card .wpo-skip-step{background-color:transparent;color:#666!important;font-weight:200;border:2px solid transparent}.wpo-setup-card .wpo-skip-step:hover{color:#000!important;text-decoration:none}.wpo-setup-input .shop-name{width:100%;height:40px;padding:10px 15px;box-sizing:border-box;font-size:1.2em;margin-bottom:20px}.wpo-setup-input .shop-address{width:100%;height:200px;padding:15px 15px;font-size:1.2em;line-height:1.4em;box-sizing:border-box;border:1px solid #8c8f94;resize:none;float:left;margin:0;text-align:left!important}.wpo-setup-input #img-header_logo{width:100%;height:auto;background:0 0;margin-bottom:20px;padding:20px;box-sizing:border-box;position:relative;border:1px solid #8c8f94}.wpo-setup-input #logo-preview img{height:80%;position:absolute;left:50%;transform:translate(-50%,0)}.wpo-setup-card .wpo-setup-input span.button{font-size:.9em;padding:.2em .8em;margin:0 10px 10px 0}.attachment-resolution-warning p{font-size:.9em;line-height:1.4em;font-style:italic;color:#999;padding-bottom:10px}.wpo-setup-input table td,.wpo-setup-input table td label,.wpo-setup-input table th{vertical-align:top;padding:0}.wpo-setup-input table th label{font-weight:400}.wpo-setup-input label:hover{color:#666}.wpo-setup-input table td,.wpo-setup-input table th{padding-bottom:5px}.wpo-setup-input input[type=checkbox]{background-color:#fff;border:1px solid #cacece;border-radius:2px;vertical-align:text-bottom;margin-right:20px}.wpo-setup-input .checkbox{font-size:1.1em}.wpo-final{text-align:center;width:100%;padding:50px}.wpo-final h1{font-size:3em;line-height:1em}.wpo-final a:hover{text-decoration:underline}#confetti{width:100%;height:100%;position:absolute;left:0;top:0;z-index:-999}@media (min-width:768px) and (max-width:991px){body.wpo-wcpdf-setup form{width:90%}}@media (max-width:767px){body{background:#fff!important}body.wpo-wcpdf-setup form{width:100%;padding-top:30px}.wpo-setup-card{box-shadow:none}.wpo-progress-bar{padding:0 0 25px 0}.wpo-setup-buttons,.wpo-setup-input,.wpo-step-description{width:100%;padding:15px 25px}.wpo-setup-card .wpo-button-next,.wpo-setup-card .wpo-button-previous,.wpo-setup-card .wpo-skip-step{padding:.5em .8em}.wpo-progress-marker{height:28px;width:28px;font-size:.8em}#confetti{display:none}} \ No newline at end of file +html.wpo-wizard{margin:0;padding:0;width:100%;height:100%;background:0 0}body.wpo-wcpdf-setup{border:none;padding:0;margin:0;width:100%;height:100%;background-repeat:no-repeat;background-attachment:fixed!important;font-size:14px;line-height:22px;background:#fcfbfe}body.wpo-wcpdf-setup a:link,body.wpo-wcpdf-setup a:visited{color:#6e1edc;text-decoration:none}body.wpo-wcpdf-setup a:hover{text-decoration:underline}body.wpo-wcpdf-setup input:focus,body.wpo-wcpdf-setup select:focus,body.wpo-wcpdf-setup textarea:focus{border-color:#6e1edc!important;box-shadow:0 0 0 1px #6e1edc!important;outline:2px solid transparent!important;color:#000!important}body.wpo-wcpdf-setup select:hover{color:#666!important}body.wpo-wcpdf-setup h1,body.wpo-wcpdf-setup h2{border:none;margin:0;color:#000}body.wpo-wcpdf-setup form{width:80%;max-width:900px;position:absolute;left:50%;transform:translate(-50%,0);padding:80px 15px 100px 15px}.wpo-setup-card{display:block;background-color:#fff;padding:0;overflow:hidden;border-radius:20px;box-shadow:10px 10px 30px rgba(43,12,86,.1),-10px -10px 30px rgba(43,12,86,.02)}.wpo-plugin-title{width:100%;padding:40px 0 30px 0;margin:0;text-align:center;display:block;font-weight:200}.wpo-progress-bar{width:100%;overflow:hidden;list-style:none;box-sizing:border-box;padding:0}.wpo-progress-bar li{width:12.5%;float:left;box-sizing:border-box;position:relative;padding:0;margin:0}.wpo-progress-bar li a{box-shadow:none}.wpo-progress-bar li:first-child{width:calc((12.5% - (12.5% - 35px))/ 2 + 12.5%)}.wpo-progress-bar li::after{content:'';display:block;height:2px;width:100%;background-color:#eaeaea;position:absolute;top:calc(50% - 1px);right:0}.wpo-progress-bar li:first-child::after{display:none}.wpo-progress-bar li.active::after,.wpo-progress-bar li.completed::after{background-color:#6e1edc}.wpo-progress-marker{height:35px;width:35px;background-color:#eaeaea;border:2px solid #eaeaea;border-radius:50%;position:relative;z-index:1;float:right;box-sizing:border-box}.wpo-progress-bar{counter-reset:section}.wpo-progress-marker::before{counter-increment:section;content:counter(section);position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#999}li.active .wpo-progress-marker::before{color:#6e1edc}li.completed .wpo-progress-marker::before{color:#fff}.wpo-progress-bar li.completed .wpo-progress-marker{background-color:#6e1edc;border-color:#6e1edc}.wpo-progress-bar li.active .wpo-progress-marker{border-color:#6e1edc;background-color:#fff}.wpo-setup-content{float:left;width:100%;overflow:hidden}.wpo-step-description{width:50%;float:left;padding:50px;box-sizing:border-box}.wpo-step-description ul{padding-left:16px}.wpo-setup-input{width:50%;float:left;padding:50px 50px 50px 0;box-sizing:border-box;position:relative}.wpo-setup-input select{width:100%}.wpo-setup-buttons{width:100%;float:left;padding:0 50px 50px 50px;box-sizing:border-box}.wpo-setup-card .wpo-button-next,.wpo-setup-card .wpo-button-previous,.wpo-setup-card .wpo-setup-input span.button,.wpo-setup-card .wpo-skip-step{padding:.5em 1.2em;border-radius:3px;box-sizing:border-box;font-size:1em;text-decoration:none;cursor:pointer;font-size:1.2em;box-sizing:border-box}.wpo-setup-card .wpo-button-next{background-color:#6e1edc;border:1px solid #6e1edc;color:#fff!important}.wpo-setup-card .wpo-button-previous,.wpo-setup-input span.button{background-color:transparent;border:1px solid #6e1edc;color:#6e1edc}.wpo-setup-card .wpo-button-previous:hover,.wpo-setup-input span.button:hover{background-color:#6e1edc;color:#fff!important;text-decoration:none;border-color:#6e1edc}.wpo-setup-card .wpo-button-next:hover{background-color:transparent;color:#6e1edc!important;text-decoration:none;border-color:#6e1edc}.wpo-setup-card .wpo-button-next:focus,.wpo-setup-card .wpo-button-previous:focus,.wpo-setup-input span.button:focus{box-shadow:none;background-color:#6e1edc;color:#fff!important;border-color:#6e1edc}.wpo-setup-card .wpo-button-next,.wpo-setup-card .wpo-skip-step{float:right;margin-left:10px}.wpo-setup-card .wpo-button-previous{float:left;color:#6e1edc!important}.wpo-setup-card .wpo-skip-step{background-color:transparent;color:#666!important;font-weight:200;border:2px solid transparent}.wpo-setup-card .wpo-skip-step:hover{color:#000!important;text-decoration:none}.wpo-setup-card .wpo-skip-step:focus{box-shadow:none}.wpo-setup-input .shop-name{width:100%;height:40px;padding:10px 15px;box-sizing:border-box;font-size:1.2em;margin-bottom:20px}.wpo-setup-input .shop-address{width:100%;height:200px;padding:15px 15px;font-size:1.2em;line-height:1.4em;box-sizing:border-box;border:1px solid #8c8f94;resize:none;float:left;margin:0;text-align:left!important}.wpo-setup-input #img-header_logo{width:100%;height:auto;background:0 0;margin-bottom:20px;padding:20px;box-sizing:border-box;position:relative;border:1px solid #8c8f94}.wpo-setup-input #logo-preview img{height:80%;position:absolute;left:50%;transform:translate(-50%,0)}.wpo-setup-card .wpo-setup-input span.button{font-size:.9em;padding:.2em .8em;margin:0 10px 10px 0}.attachment-resolution-warning p{font-size:.9em;line-height:1.4em;font-style:italic;color:#999;padding-bottom:10px}.wpo-setup-input table td,.wpo-setup-input table td label,.wpo-setup-input table th{vertical-align:top;padding:0}.wpo-setup-input table th label{font-weight:400}.wpo-setup-input label:hover{color:#666}.wpo-setup-input table td,.wpo-setup-input table th{padding-bottom:5px}.wpo-setup-input input[type=checkbox]{background-color:#fff;border:1px solid #cacece;border-radius:2px;vertical-align:text-bottom;margin-right:20px}.wpo-setup-input .checkbox{font-size:1.1em}.wpo-final{text-align:center;width:100%;padding:50px}.wpo-final h1{font-size:3em;line-height:1em}.wpo-final a:hover{text-decoration:underline}#confetti{width:100%;height:100%;position:absolute;left:0;top:0;z-index:-999}@media (min-width:768px) and (max-width:991px){body.wpo-wcpdf-setup form{width:90%}}@media (max-width:767px){body{background:#fff!important}body.wpo-wcpdf-setup form{width:100%;padding-top:30px}.wpo-setup-card{box-shadow:none}.wpo-progress-bar{padding:0 0 25px 0}.wpo-setup-buttons,.wpo-setup-input,.wpo-step-description{width:100%;padding:15px 25px}.wpo-setup-card .wpo-button-next,.wpo-setup-card .wpo-button-previous,.wpo-setup-card .wpo-skip-step{padding:.5em .8em}.wpo-progress-marker{height:28px;width:28px;font-size:.8em}#confetti{display:none}} \ No newline at end of file diff --git a/assets/css/toggle-switch.min.css b/assets/css/toggle-switch.min.css new file mode 100644 index 00000000..c2538769 --- /dev/null +++ b/assets/css/toggle-switch.min.css @@ -0,0 +1 @@ +label.slider{display:inline-block;background:#ccc;border:1px solid #ccc;width:32px;height:18px;margin:0 30px 0 5px;border-radius:9px;vertical-align:middle!important;box-sizing:border-box;transition:50ms 50ms;cursor:pointer;position:relative}label.slider::before{content:'';display:block;width:16px;height:16px;background:#f9f9f9;border:1px solid #fff;box-sizing:border-box;border-radius:50%;box-shadow:inset 2px 2px 2px #fff,inset -1px -1px 2px rgba(0,0,0,.2);transition:.1s;transform:translateX(0)}input[type=checkbox]{display:none}input[type=checkbox]:checked+label.slider{background:#6e1edc;border-color:#6e1edc}input[type=checkbox]:checked+label.slider::before{transform:translateX(14px)} \ No newline at end of file diff --git a/assets/js/confetti.min.js b/assets/js/confetti.min.js index 241f494c..6d70b785 100644 --- a/assets/js/confetti.min.js +++ b/assets/js/confetti.min.js @@ -1 +1 @@ -jQuery(document).ready(function(a){var b=Math.PI,c=Math.sin,d=Math.cos,e=Math.round,f=Math.sqrt;function g(a,b){this.x=a,this.y=b,this.Length=function(){return f(this.SqrLength())},this.SqrLength=function(){return this.x*this.x+this.y*this.y},this.Equals=function(a,b){return a.x==b.x&&a.y==b.y},this.Add=function(a){this.x+=a.x,this.y+=a.y},this.Sub=function(a){this.x-=a.x,this.y-=a.y},this.Div=function(a){this.x/=a,this.y/=a},this.Mul=function(a){this.x*=a,this.y*=a},this.Normalize=function(){var a=this.SqrLength();if(0!=a){var b=1/f(a);this.x*=b,this.y*=b}},this.Normalized=function(){var a=this.SqrLength();if(0!=a){var b=1/f(a);return new g(this.x*b,this.y*b)}return new g(0,0)}}function h(a,b,c,d){this.position=new g(a,b),this.mass=c,this.drag=d,this.force=new g(0,0),this.velocity=new g(0,0),this.AddForce=function(a){this.force.Add(a)},this.Integrate=function(a){var b=this.CurrentForce(this.position);b.Div(this.mass);var c=new g(this.velocity.x,this.velocity.y);c.Mul(a),this.position.Add(c),b.Mul(a),this.velocity.Add(b),this.force=new g(0,0)},this.CurrentForce=function(){var a=new g(this.force.x,this.force.y),b=this.velocity.Length(),c=new g(this.velocity.x,this.velocity.y);return c.Mul(this.drag*this.mass*b),a.Sub(c),a}}function j(a,b){this.pos=new g(a,b),this.rotationSpeed=600*Math.random()+800,this.angle=360*(m*Math.random()),this.rotation=360*(m*Math.random()),this.cosA=1,this.size=5,this.oscillationSpeed=1.5*Math.random()+.5,this.xSpeed=40,this.ySpeed=60*Math.random()+50,this.corners=[],this.time=Math.random();var f=e(Math.random()*(n.length-1));this.frontColor=n[f][0],this.backColor=n[f][1];for(var h=0;4>h;h++){var k=d(this.angle+m*(90*h+45)),l=c(this.angle+m*(90*h+45));this.corners[h]=new g(k,l)}this.Update=function(a){this.time+=a,this.rotation+=this.rotationSpeed*a,this.cosA=d(m*this.rotation),this.pos.x+=d(this.time*this.oscillationSpeed)*this.xSpeed*a,this.pos.y+=this.ySpeed*a,this.pos.y>j.bounds.y&&(this.pos.x=Math.random()*j.bounds.x,this.pos.y=0)},this.Draw=function(a){a.fillStyle=0b;b++)a.lineTo(this.pos.x+this.corners[b].x*this.size,this.pos.y+this.corners[b].y*this.size*this.cosA);a.closePath(),a.fill()}}function k(a,b,j,l,o,p,q,r){this.particleDist=l,this.particleCount=j,this.particleMass=q,this.particleDrag=r,this.particles=[];var s=e(Math.random()*(n.length-1));this.frontColor=n[s][0],this.backColor=n[s][1],this.xOff=d(m*p)*o,this.yOff=c(m*p)*o,this.position=new g(a,b),this.prevPosition=new g(a,b),this.velocityInherit=2*Math.random()+4,this.time=100*Math.random(),this.oscillationSpeed=2*Math.random()+2,this.oscillationDistance=40*Math.random()+40,this.ySpeed=40*Math.random()+80;for(var t=0;tk.bounds.y+this.particleDist*this.particleCount&&this.Reset()},this.Reset=function(){this.position.y=-Math.random()*k.bounds.y,this.position.x=Math.random()*k.bounds.x,this.prevPosition=new g(this.position.x,this.position.y),this.velocityInherit=2*Math.random()+4,this.time=100*Math.random(),this.oscillationSpeed=2*Math.random()+1.5,this.oscillationDistance=40*Math.random()+40,this.ySpeed=40*Math.random()+80;var a=e(Math.random()*(n.length-1));this.frontColor=n[a][0],this.backColor=n[a][1],this.particles=[];for(var b=0;bthis.Side(this.particles[b].position.x,this.particles[b].position.y,this.particles[b+1].position.x,this.particles[b+1].position.y,d.x,d.y)?(a.fillStyle=this.frontColor,a.strokeStyle=this.frontColor):(a.fillStyle=this.backColor,a.strokeStyle=this.backColor),0==b?(a.beginPath(),a.moveTo(this.particles[b].position.x,this.particles[b].position.y),a.lineTo(this.particles[b+1].position.x,this.particles[b+1].position.y),a.lineTo(.5*(this.particles[b+1].position.x+d.x),.5*(this.particles[b+1].position.y+d.y)),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.moveTo(d.x,d.y),a.lineTo(c.x,c.y),a.lineTo(.5*(this.particles[b+1].position.x+d.x),.5*(this.particles[b+1].position.y+d.y)),a.closePath(),a.stroke(),a.fill()):b==this.particleCount-2?(a.beginPath(),a.moveTo(this.particles[b].position.x,this.particles[b].position.y),a.lineTo(this.particles[b+1].position.x,this.particles[b+1].position.y),a.lineTo(.5*(this.particles[b].position.x+c.x),.5*(this.particles[b].position.y+c.y)),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.moveTo(d.x,d.y),a.lineTo(c.x,c.y),a.lineTo(.5*(this.particles[b].position.x+c.x),.5*(this.particles[b].position.y+c.y)),a.closePath(),a.stroke(),a.fill()):(a.beginPath(),a.moveTo(this.particles[b].position.x,this.particles[b].position.y),a.lineTo(this.particles[b+1].position.x,this.particles[b+1].position.y),a.lineTo(d.x,d.y),a.lineTo(c.x,c.y),a.closePath(),a.stroke(),a.fill())}},this.Side=function(a,b,c,d,e,f){return(a-c)*(f-d)-(b-d)*(e-c)}}var l=1/30,m=b/180,n=[["#771787","#239bb9"]];g.Lerp=function(a,b,c){return new g((b.x-a.x)*c+a.x,(b.y-a.y)*c+a.y)},g.Distance=function(a,b){return f(g.SqrDistance(a,b))},g.SqrDistance=function(a,b){var c=a.x-b.x,d=a.y-b.y;return c*c+d*d+z*z},g.Scale=function(a,b){return new g(a.x*b.x,a.y*b.y)},g.Min=function(a,b){var c=Math.min;return new g(c(a.x,b.x),c(a.y,b.y))},g.Max=function(a,b){var c=Math.max;return new g(c(a.x,b.x),c(a.y,b.y))},g.ClampMagnitude=function(a,b){var c=a.Normalized;return new g(c.x*b,c.y*b)},g.Sub=function(a,b){return new g(a.x-b.x,a.y-b.y,a.z-b.z)},j.bounds=new g(0,0),k.bounds=new g(0,0),o={},o.Context=function(a){var b=0,c=document.getElementById(a),d=document.createElement("canvas");d.width=c.offsetWidth,d.height=c.offsetHeight,c.appendChild(d);var e=d.getContext("2d"),f=7,h=[];for(k.bounds=new g(d.width,d.height),b=0;bh;h++){var k=d(this.angle+m*(90*h+45)),l=c(this.angle+m*(90*h+45));this.corners[h]=new g(k,l)}this.Update=function(a){this.time+=a,this.rotation+=this.rotationSpeed*a,this.cosA=d(m*this.rotation),this.pos.x+=d(this.time*this.oscillationSpeed)*this.xSpeed*a,this.pos.y+=this.ySpeed*a,this.pos.y>j.bounds.y&&(this.pos.x=Math.random()*j.bounds.x,this.pos.y=0)},this.Draw=function(a){a.fillStyle=0b;b++)a.lineTo(this.pos.x+this.corners[b].x*this.size,this.pos.y+this.corners[b].y*this.size*this.cosA);a.closePath(),a.fill()}}function k(a,b,j,l,o,p,q,r){this.particleDist=l,this.particleCount=j,this.particleMass=q,this.particleDrag=r,this.particles=[];var s=e(Math.random()*(n.length-1));this.frontColor=n[s][0],this.backColor=n[s][1],this.xOff=d(m*p)*o,this.yOff=c(m*p)*o,this.position=new g(a,b),this.prevPosition=new g(a,b),this.velocityInherit=2*Math.random()+4,this.time=100*Math.random(),this.oscillationSpeed=2*Math.random()+2,this.oscillationDistance=40*Math.random()+40,this.ySpeed=40*Math.random()+80;for(var t=0;tk.bounds.y+this.particleDist*this.particleCount&&this.Reset()},this.Reset=function(){this.position.y=-Math.random()*k.bounds.y,this.position.x=Math.random()*k.bounds.x,this.prevPosition=new g(this.position.x,this.position.y),this.velocityInherit=2*Math.random()+4,this.time=100*Math.random(),this.oscillationSpeed=2*Math.random()+1.5,this.oscillationDistance=40*Math.random()+40,this.ySpeed=40*Math.random()+80;var a=e(Math.random()*(n.length-1));this.frontColor=n[a][0],this.backColor=n[a][1],this.particles=[];for(var b=0;bthis.Side(this.particles[b].position.x,this.particles[b].position.y,this.particles[b+1].position.x,this.particles[b+1].position.y,d.x,d.y)?(a.fillStyle=this.frontColor,a.strokeStyle=this.frontColor):(a.fillStyle=this.backColor,a.strokeStyle=this.backColor),0==b?(a.beginPath(),a.moveTo(this.particles[b].position.x,this.particles[b].position.y),a.lineTo(this.particles[b+1].position.x,this.particles[b+1].position.y),a.lineTo(.5*(this.particles[b+1].position.x+d.x),.5*(this.particles[b+1].position.y+d.y)),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.moveTo(d.x,d.y),a.lineTo(c.x,c.y),a.lineTo(.5*(this.particles[b+1].position.x+d.x),.5*(this.particles[b+1].position.y+d.y)),a.closePath(),a.stroke(),a.fill()):b==this.particleCount-2?(a.beginPath(),a.moveTo(this.particles[b].position.x,this.particles[b].position.y),a.lineTo(this.particles[b+1].position.x,this.particles[b+1].position.y),a.lineTo(.5*(this.particles[b].position.x+c.x),.5*(this.particles[b].position.y+c.y)),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.moveTo(d.x,d.y),a.lineTo(c.x,c.y),a.lineTo(.5*(this.particles[b].position.x+c.x),.5*(this.particles[b].position.y+c.y)),a.closePath(),a.stroke(),a.fill()):(a.beginPath(),a.moveTo(this.particles[b].position.x,this.particles[b].position.y),a.lineTo(this.particles[b+1].position.x,this.particles[b+1].position.y),a.lineTo(d.x,d.y),a.lineTo(c.x,c.y),a.closePath(),a.stroke(),a.fill())}},this.Side=function(a,b,c,d,e,f){return(a-c)*(f-d)-(b-d)*(e-c)}}var l=1/30,m=b/180,n=[["#6e1edc"]];g.Lerp=function(a,b,c){return new g((b.x-a.x)*c+a.x,(b.y-a.y)*c+a.y)},g.Distance=function(a,b){return f(g.SqrDistance(a,b))},g.SqrDistance=function(a,b){var c=a.x-b.x,d=a.y-b.y;return c*c+d*d+z*z},g.Scale=function(a,b){return new g(a.x*b.x,a.y*b.y)},g.Min=function(a,b){var c=Math.min;return new g(c(a.x,b.x),c(a.y,b.y))},g.Max=function(a,b){var c=Math.max;return new g(c(a.x,b.x),c(a.y,b.y))},g.ClampMagnitude=function(a,b){var c=a.Normalized;return new g(c.x*b,c.y*b)},g.Sub=function(a,b){return new g(a.x-b.x,a.y-b.y,a.z-b.z)},j.bounds=new g(0,0),k.bounds=new g(0,0),o={},o.Context=function(a){var b=0,c=document.getElementById(a),d=document.createElement("canvas");d.width=c.offsetWidth,d.height=c.offsetHeight,c.appendChild(d);var e=d.getContext("2d"),f=7,h=[];for(k.bounds=new g(d.width,d.height),b=0;b