PATH:
home
/
fengshp
/
www
/
wp-content
/
plugins
/
themify-builder-pro
/
public
/
js
/
modules
var clickSpark=function(){'use strict';const a=jQuery,b={particleImagePath:"",particleCount:35,particleSpeed:12,particleDuration:400,particleSize:12,particleRotationSpeed:0,animationType:"explosion",callback:null};a.fn.clickSpark=function(d){d=a.extend({},b,d),a(this).on("click",function(a){c.setParticleImagePath(d.particleImagePath),c.setParticleCount(d.particleCount),c.setParticleSpeed(d.particleSpeed),c.setParticleDuration(d.particleDuration),c.setParticleSize(d.particleSize),c.setParticleRotationSpeed(d.particleRotationSpeed),c.setAnimationType(d.animationType),c.setCallback(d.callback),c.stdFuncOCl(a)})};const c=function(){function c(a){a!==void 0&&(D=a)}function d(a){a!==void 0&&(E=a)}function e(a){a!==void 0&&(F=a)}function f(a){a!==void 0&&(G=a)}function g(a){a!==void 0&&(J=a)}function h(a){a!==void 0&&(H=a)}function i(a){a!==void 0&&(I=a)}function j(a){a!==void 0&&(K=a)}function k(){a(document).ready(function(){y=a("body"),z=a(document),A=a(window),C=a("<canvas id=\"cs-particle-canvas\"></canvas>"),B=a("<div class=\"cs-canvas-container\"></div>"),B.append(C),y.prepend(B),B.hide(),C.hide(),B.css({position:"absolute",zIndex:99999,width:"100%",height:"100%",top:window.pageYOffset,left:window.pageXOffset})})}function l(){const a={};return t&&(a.x=w,a.y=x,a.rotation=0),a.speed=r(0,F),a.angle=r(0,360)*(Math.PI/180),a.rotationSpeed=r(-1*H,H),a.size=J,a}function m(){t=C[0],v=new Image,v.src=D,t&&"function"==typeof t.getContext&&(u=t.getContext("2d"),u.canvas.width=document.body.clientWidth,u.canvas.height=document.body.clientHeight),n()}function n(){for(let a=0;a<E;++a)N.push(l())}function o(){u.clearRect(0,0,window.innerWidth,window.innerHeight);const a=P[I]||P[DEFAULT_ANIMATION];N.forEach(function(b){a(b),p(b)})}function p(a){a.size*=.96+r(1,10)/100,a.rotation+=a.rotationSpeed,u.save(),u.translate(a.x,a.y),u.rotate(a.rotation*Math.PI/180),v.width=O,v.height=O,u.drawImage(v,0,0,a.size,a.size),u.restore()}function q(){if(M){const a=L;L=Date.now(),requestAnimationFrame(q,L-a),o()}}function r(a,b){return Math.random()*(b-a)+a}function s(a){function b(){C.hide(),B.hide(),y.css({overflow:"inherit"}),M=!1,"function"==typeof K&&K.call(this)}L=Date.now(),"click"===a.type?(w=a.pageX-window.pageXOffset,x=a.pageY-window.pageYOffset):(w=a.offset().left+a.width()/2-window.pageXOffset,x=a.offset().top+a.height()/2-window.pageYOffset),N=[],m(),z.height()>A.height()?y.css("overflow-y","inherit"):y.css("overflow-y","hidden"),z.width()>A.width()?y.css("overflow-x","inherit"):y.css("overflow-x","hidden"),B.css({top:window.pageYOffset,left:window.pageXOffset}),C.css({top:0,left:0}),B.show(),C.show(),window.setTimeout(function(){C.fadeOut(b)},G),M=!0,q()}let t,u,v,w,x,y,z,A,B,C,D=b.particleImagePath,E=b.particleCount,F=b.particleSpeed,G=b.particleDuration,H=b.particleRotationSpeed,I=b.animationType,J=b.particleSize,K=b.callback,L=0,M=!1,N=[];const O=20;(function(){k()})();const P={explosion(a){a.x+=a.speed*Math.cos(a.angle),a.y+=a.speed*Math.sin(a.angle)},splash(a){a.x-=Math.tan(a.angle),a.y+=-2*a.speed},falloff(a){a.x-=Math.tan(a.angle),a.y-=-2*a.speed},blowright(a){a.x-=-2*a.speed,a.y-=Math.tan(a.angle/8)},blowleft(a){a.x+=-2*a.speed,a.y-=Math.tan(a.angle/8)}};return{setParticleImagePath(a){c(a)},setParticleCount(a){d(a)},setParticleSpeed(a){e(a)},setParticleDuration(a){f(a)},setParticleSize(a){g(a)},setParticleRotationSpeed(a){h(a)},setAnimationType(a){i(a)},setCallback(a){j(a)},init(){s(element)},fireParticles(a){s(a)},stdFuncOCl(a){s(a)}}}();return c}();
[+]
..
[-] checkout.js.gz
[edit]
[-] readtime.js.gz
[edit]
[-] cart.js.gz
[edit]
[-] wishlisted.js.gz
[edit]
[-] checkout.js
[edit]
[-] add-to-cart.js
[edit]
[-] wishlisted.js
[edit]
[-] readtime.js
[edit]
[-] clickspark.min.js
[edit]
[-] product-review.js.gz
[edit]
[-] cart.js
[edit]
[-] cart-icon.js
[edit]
[-] add-to-cart.js.gz
[edit]
[-] read-progress.js
[edit]
[-] read-progress.js.gz
[edit]
[-] cart-icon.js.gz
[edit]
[-] wishlist-icon.js.gz
[edit]
[-] clickspark.min.js.gz
[edit]
[-] product-review.js
[edit]
[-] wishlist-icon.js
[edit]