HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpprm_old/wp-content/themes/ronneby/assets/js/jquery.particleground.old.min.js
/**
 * Particleground
 *
 * @author Jonathan Nicol - @mrjnicol
 * @version 1.0.1
 * @description Creates a canvas based particle system background
 *
 * Inspired by:
 * http://requestlab.fr/
 * http://disruptivebydesign.com/
 * 
 * @license The MIT License (MIT)
 * 
 * Copyright (c) 2014 Jonathan Nicol - @mrjnicol
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
!function(Y){function n(t,n){function s(){p.width=f.width(),p.height=f.height(),d.fillStyle=n.dotColor,d.strokeStyle=n.lineColor,d.lineWidth=n.lineWidth}function o(){if(c){e=Y(window).width(),a=Y(window).height(),d.clearRect(0,0,p.width,p.height);for(var t=0;t<x.length;t++)x[t].updatePosition();for(t=0;t<x.length;t++)x[t].draw();X||requestAnimationFrame(o)}}function r(){switch(this.stackPos,this.active=!0,this.layer=Math.ceil(3*Math.random()),this.parallaxOffsetX=0,this.parallaxOffsetY=0,this.position={x:Math.ceil(Math.random()*p.width),y:Math.ceil(Math.random()*p.height)},this.speed={},n.directionX){case"left":this.speed.x=+(-n.maxSpeedX+Math.random()*n.maxSpeedX-n.minSpeedX).toFixed(2);break;case"right":this.speed.x=+(Math.random()*n.maxSpeedX+n.minSpeedX).toFixed(2);break;default:this.speed.x=+(-n.maxSpeedX/2+Math.random()*n.maxSpeedX).toFixed(2),this.speed.x+=0<this.speed.x?n.minSpeedX:-n.minSpeedX}switch(n.directionY){case"up":this.speed.y=+(-n.maxSpeedY+Math.random()*n.maxSpeedY-n.minSpeedY).toFixed(2);break;case"down":this.speed.y=+(Math.random()*n.maxSpeedY+n.minSpeedY).toFixed(2);break;default:this.speed.y=+(-n.maxSpeedY/2+Math.random()*n.maxSpeedY).toFixed(2),this.speed.x+=0<this.speed.y?n.minSpeedY:-n.minSpeedY}}function h(t){void 0!==n[t]&&n[t].call(l)}var p,d,e,a,l=t,f=Y(t),c=!!document.createElement("canvas").getContext,x=[],m=0,u=0,w=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),y=!!window.DeviceOrientationEvent,g=0,v=0,X=!1;return n=Y.extend({},Y.fn[O].defaults,n),r.prototype.draw=function(){d.beginPath(),d.arc(this.position.x+this.parallaxOffsetX,this.position.y+this.parallaxOffsetY,n.particleRadius/2,0,2*Math.PI,!0),d.closePath(),d.fill(),d.beginPath();for(var t=x.length-1;t>this.stackPos;t--){var i=x[t],e=this.position.x-i.position.x,a=this.position.y-i.position.y;Math.sqrt(e*e+a*a).toFixed(2)<n.proximity&&(d.moveTo(this.position.x+this.parallaxOffsetX,this.position.y+this.parallaxOffsetY),n.curvedLines?d.quadraticCurveTo(Math.max(i.position.x,i.position.x),Math.min(i.position.y,i.position.y),i.position.x+i.parallaxOffsetX,i.position.y+i.parallaxOffsetY):d.lineTo(i.position.x+i.parallaxOffsetX,i.position.y+i.parallaxOffsetY))}d.stroke(),d.closePath()},r.prototype.updatePosition=function(){if(n.parallax){if(y&&!w)pointerX=(g- -30)*((e-0)/60)+0,pointerY=(v- -30)*((a-0)/60)+0;else pointerX=m,pointerY=u;this.parallaxTargX=(pointerX-e/2)/(n.parallaxMultiplier*this.layer),this.parallaxOffsetX+=(this.parallaxTargX-this.parallaxOffsetX)/10,this.parallaxTargY=(pointerY-a/2)/(n.parallaxMultiplier*this.layer),this.parallaxOffsetY+=(this.parallaxTargY-this.parallaxOffsetY)/10}switch(n.directionX){case"left":this.position.x+this.speed.x+this.parallaxOffsetX<0&&(this.position.x=f.width()-this.parallaxOffsetX);break;case"right":this.position.x+this.speed.x+this.parallaxOffsetX>f.width()&&(this.position.x=0-this.parallaxOffsetX);break;default:(this.position.x+this.speed.x+this.parallaxOffsetX>f.width()||this.position.x+this.speed.x+this.parallaxOffsetX<0)&&(this.speed.x=-this.speed.x)}switch(n.directionY){case"up":this.position.y+this.speed.y+this.parallaxOffsetY<0&&(this.position.y=f.height()-this.parallaxOffsetY);break;case"down":this.position.y+this.speed.y+this.parallaxOffsetY>f.height()&&(this.position.y=0-this.parallaxOffsetY);break;default:(this.position.y+this.speed.y+this.parallaxOffsetY>f.height()||this.position.y+this.speed.y+this.parallaxOffsetY<0)&&(this.speed.y=-this.speed.y)}this.position.x+=this.speed.x,this.position.y+=this.speed.y},r.prototype.setStackPos=function(t){this.stackPos=t},function(){if(c){$canvas=Y('<canvas class="pg-canvas"></canvas>'),f.prepend($canvas),p=$canvas[0],d=p.getContext("2d"),s();for(var t=Math.round(p.width*p.height/n.density),e=0;e<t;e++){var a=new r;a.setStackPos(e),x.push(a)}Y(window).on("load resize",function(){!function(){for(s(),i=x.length-1;0<=i;i--)(x[i].position.x>f.width()||x[i].position.y>f.height())&&x.splice(i,1);var t=Math.round(p.width*p.height/n.density);if(t>x.length)for(;t>x.length;){var e=new r;x.push(e)}else t<x.length&&x.splice(t);for(i=x.length-1;0<=i;i--)x[i].setStackPos(i)}()}),Y(document).on("mousemove",function(t){m=t.pageX,u=t.pageY}),y&&!w&&window.addEventListener("deviceorientation",function(){v=Math.min(Math.max(-event.beta,-30),30),g=Math.min(Math.max(-event.gamma,-30),30)},!0),o(),h("onInit")}}(),{option:function(t,i){return i?void(n[t]=i):n[t]},destroy:function(){f.find(".pg-canvas").remove(),h("onDestroy"),f.removeData("plugin_"+O)},start:function(){X=!1,o()},pause:function(){X=!0}}}var O="particlegroundOld";Y.fn[O]=function(t){if("string"==typeof t){var i,e=t,a=Array.prototype.slice.call(arguments,1);return this.each(function(){Y.data(this,"plugin_"+O)&&"function"==typeof Y.data(this,"plugin_"+O)[e]&&(i=Y.data(this,"plugin_"+O)[e].apply(this,a))}),void 0!==i?i:this}return"object"!=typeof t&&t?void 0:this.each(function(){Y.data(this,"plugin_"+O)||Y.data(this,"plugin_"+O,new n(this,t))})},Y.fn[O].defaults={minSpeedX:.1,maxSpeedX:.7,minSpeedY:.1,maxSpeedY:.7,directionX:"center",directionY:"center",density:1e4,dotColor:"#666666",lineColor:"#666666",particleRadius:7,lineWidth:1,curvedLines:!1,proximity:300,parallax:!0,parallaxMultiplier:5,onInit:function(){},onDestroy:function(){}}}(jQuery),/**
 * requestAnimationFrame polyfill by Erik MГ¶ller. fixes from Paul Irish and Tino Zijdel
 * @see: http://paulirish.com/2011/requestanimationframe-for-smart-animating/
 * @see: http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
 * @license: MIT license
 */
function(){for(var n=0,t=["ms","moz","webkit","o"],i=0;i<t.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[t[i]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[i]+"CancelAnimationFrame"]||window[t[i]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t){var i=(new Date).getTime(),e=Math.max(0,16-(i-n)),a=window.setTimeout(function(){t(i+e)},e);return n=i+e,a}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}();