CoreFiles by mySites.guru
effect-shake.min.js9 lines, 846 bytes, from wordpress-7.1.2.zip
Raw History Compare with 7.1.1
md5
e3309213d3022f4f7d5aea3edfc16a65
sha1
27d3531e1d12699ec268ce3e72c2b10037da822f
sha256
b705e1690fdf178df4e359ed6b659ce9ac5bae1f2fa4c1b4fbae58179110dd92
/*!
 * jQuery UI Effects Shake 1.14.2
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(h){"use strict";return h.effects.define("shake",function(e,t){var n=1,i=h(this),a=e.direction||"left",f=e.distance||20,s=e.times||3,u=2*s+1,c=Math.round(e.duration/u),r="up"===a||"down"===a?"top":"left",a="up"===a||"left"===a,o={},d={},m={},g=i.queue().length;for(h.effects.createPlaceholder(i),o[r]=(a?"-=":"+=")+f,d[r]=(a?"+=":"-=")+2*f,m[r]=(a?"-=":"+=")+2*f,i.animate(o,c,e.easing);n<s;n++)i.animate(d,c,e.easing).animate(m,c,e.easing);i.animate(d,c,e.easing).animate(o,c/2,e.easing).queue(t),h.effects.unshift(i,g,1+u)})});

The same content is in 22 releases, WordPress 7.1-beta1 to 7.2-RC2. See them all, or every version of this file.