Exploit databaseDownload repository ZIP
GH-6619317e0cd9902e082b21d2f8f16c38
daniel616/cve-2022-21661-demo
Sources for CVE-2022-21661
10 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files74
daniel616/cve-2022-21661-demoRevision 5478a08b2d12
- ↑..Parent directory
- accordion.js
- accordion.min.js
- autocomplete.js
- autocomplete.min.js
- button.js
- button.min.js
- checkboxradio.js
- checkboxradio.min.js
- controlgroup.js
- controlgroup.min.js
- core.js
- core.min.js
- datepicker.js
- datepicker.min.js
- dialog.js
- dialog.min.js
- draggable.js
- draggable.min.js
- droppable.js
- droppable.min.js
- effect-blind.js
- effect-blind.min.js
- effect-bounce.js
- effect-bounce.min.js
- effect-clip.js
- effect-clip.min.js
- effect-drop.js
- effect-drop.min.js
- effect-explode.js
- effect-explode.min.js
- effect-fade.js
- effect-fade.min.js
- effect-fold.js
- effect-fold.min.js
- effect-highlight.js
- effect-highlight.min.js
- effect-puff.js
- effect-puff.min.js
- effect-pulsate.js
- effect-pulsate.min.js
- effect-scale.js
- effect-scale.min.js
- effect-shake.js
- effect-shake.min.js
- effect-size.js
- effect-size.min.js
- effect-slide.js
- effect-slide.min.js
- effect-transfer.js
- effect-transfer.min.js
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/wp-includes/js/jquery/ui/effect-shake.js
JavaScript · 1,832 bytes/*!
* jQuery UI Effects Shake 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
//>>label: Shake Effect
//>>group: Effects
//>>description: Shakes an element horizontally or vertically n times.
//>>docs: http://api.jqueryui.com/shake-effect/
//>>demos: http://jqueryui.com/effect/
( function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [
"jquery",
"./effect"
], factory );
} else {
// Browser globals
factory( jQuery );
}
}( function( $ ) {
return $.effects.define( "shake", function( options, done ) {
var i = 1,
element = $( this ),
direction = options.direction || "left",
distance = options.distance || 20,
times = options.times || 3,
anims = times * 2 + 1,
speed = Math.round( options.duration / anims ),
ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
positiveMotion = ( direction === "up" || direction === "left" ),
animation = {},
animation1 = {},
animation2 = {},
queuelen = element.queue().length;
$.effects.createPlaceholder( element );
// Animation
animation[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance;
animation1[ ref ] = ( positiveMotion ? "+=" : "-=" ) + distance * 2;
animation2[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance * 2;
// Animate
element.animate( animation, speed, options.easing );
// Shakes
for ( ; i < times; i++ ) {
element
.animate( animation1, speed, options.easing )
.animate( animation2, speed, options.easing );
}
element
.animate( animation1, speed, options.easing )
.animate( animation, speed / 2, options.easing )
.queue( done );
$.effects.unshift( element, queuelen, anims + 1 );
} );
} ) );