/*!
* jQuery UI Effects Explode 1.13.3
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
* https://jquery.org/license
*/
//>>label: Explode Effect
//>>group: Effects
/* eslint-disable max-len */
//>>description: Explodes an element in all directions into n pieces. Implodes an element to its original wholeness.
/* eslint-enable max-len */
//>>docs: https://api.jqueryui.com/explode-effect/
//>>demos: https://jqueryui.com/effect/
( function( factory ) {
"use strict";
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [
"jquery",
"../version",
"../effect"
], factory );
} else {
// Browser globals
factory( jQuery );
}
} )( function( $ ) {
"use strict";
return $.effects.define( "explode", "hide", function( options, done ) {
var i, j, left, top, mx, my,
rows = options.pieces ? Math.round( Math.sqrt( options.pieces ) ) : 3,
cells = rows,
element = $( this ),
mode = options.mode,
show = mode === "show",
// Show and then visibility:hidden the element before calculating offset
offset = element.show().css( "visibility", "hidden" ).offset(),
// Width and height of a piece
width = Math.ceil( element.outerWidth() / cells ),
height = Math.ceil( element.outerHeight() / rows ),
pieces = [];
// Children animate complete:
function childComplete() {
pieces.push( this );
if ( pieces.length === rows * cells ) {
animComplete();
}
}
// Clone the element for each row and cell.
for ( i = 0; i < rows; i++ ) { // ===>
top = offset.top + i * height;
my = i - ( rows - 1 ) / 2;
for ( j = 0; j < cells; j++ ) { // |||
left = offset.left + j * width;
mx = j - ( cells - 1 ) / 2;
// Create a clone of the now hidden main element that will be absolute positioned
// within a wrapper div off the -left and -top equal to size of our pieces
element
.clone()
.appendTo( "body" )
.wrap( "<div></div>" )
.css( {
position: "absolute",
visibility: "visible",
left: -j * width,
top: -i * height
} )
// Select the wrapper - make it overflow: hidden and absolute positioned based on
// where the original was located +left and +top equal to the size of pieces
.parent()
.addClass( "ui-effects-explode" )
.css( {
position: "absolute",
overflow: "hidden",
width: width,
height: height,
left: left + ( show ? mx * width : 0 ),
top: top + ( show ? my * height : 0 ),
opacity: show ? 0 : 1
} )
.animate( {
left: left + ( show ? 0 : mx * width ),
top: top + ( show ? 0 : my * height ),
opacity: show ? 1 : 0
}, options.duration || 500, options.easing, childComplete );
}
}
function animComplete() {
element.css( {
visibility: "visible"
} );
$( pieces ).remove();
done();
}
} );
} );
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| accordion.js | 2026-02-23 19:41 | 15.76 KB | 76129f60960:kunden | -xw-x----- | |
| accordion.min.js | 2026-02-23 19:41 | 8.65 KB | 76129f60960:kunden | -xw-x----- | |
| autocomplete.js | 2026-02-23 19:41 | 17.12 KB | 76129f60960:kunden | -xw-x----- | |
| autocomplete.min.js | 2026-02-23 19:41 | 8.34 KB | 76129f60960:kunden | -xw-x----- | |
| button.js | 2026-02-23 19:41 | 11.43 KB | 76129f60960:kunden | -xw-x----- | |
| button.min.js | 2026-02-23 19:41 | 6.01 KB | 76129f60960:kunden | -xw-x----- | |
| checkboxradio.js | 2026-02-23 19:41 | 7.41 KB | 76129f60960:kunden | -xw-x----- | |
| checkboxradio.min.js | 2026-02-23 19:41 | 4.25 KB | 76129f60960:kunden | -xw-x----- | |
| controlgroup.js | 2026-02-23 19:41 | 8.42 KB | 76129f60960:kunden | -xw-x----- | |
| controlgroup.min.js | 2026-02-23 19:41 | 4.3 KB | 76129f60960:kunden | -xw-x----- | |
| core.js | 2026-02-23 19:41 | 48.72 KB | 76129f60960:kunden | -xw-x----- | |
| core.min.js | 2026-02-23 19:41 | 20.96 KB | 76129f60960:kunden | -xw-x----- | |
| datepicker.js | 2026-02-23 19:41 | 80.59 KB | 76129f60960:kunden | -xw-x----- | |
| datepicker.min.js | 2026-02-23 19:41 | 35.89 KB | 76129f60960:kunden | -xw-x----- | |
| dialog.js | 2026-02-23 19:41 | 23.34 KB | 76129f60960:kunden | -xw-x----- | |
| dialog.min.js | 2026-02-23 19:41 | 12.79 KB | 76129f60960:kunden | -xw-x----- | |
| draggable.js | 2026-02-23 19:41 | 34.71 KB | 76129f60960:kunden | -xw-x----- | |
| draggable.min.js | 2026-02-23 19:41 | 17.99 KB | 76129f60960:kunden | -xw-x----- | |
| droppable.js | 2026-02-23 19:41 | 12.6 KB | 76129f60960:kunden | -xw-x----- | |
| droppable.min.js | 2026-02-23 19:41 | 6.51 KB | 76129f60960:kunden | -xw-x----- | |
| effect-blind.js | 2026-02-23 19:41 | 1.61 KB | 76129f60960:kunden | -xw-x----- | |
| effect-blind.min.js | 2026-02-23 19:41 | 880 B | 76129f60960:kunden | -xw-x----- | |
| effect-bounce.js | 2026-02-23 19:41 | 2.6 KB | 76129f60960:kunden | -xw-x----- | |
| effect-bounce.min.js | 2026-02-23 19:41 | 991 B | 76129f60960:kunden | -xw-x----- | |
| effect-clip.js | 2026-02-23 19:41 | 1.54 KB | 76129f60960:kunden | -xw-x----- | |
| effect-clip.min.js | 2026-02-23 19:41 | 796 B | 76129f60960:kunden | -xw-x----- | |
| effect-drop.js | 2026-02-23 19:41 | 1.56 KB | 76129f60960:kunden | -xw-x----- | |
| effect-drop.min.js | 2026-02-23 19:41 | 753 B | 76129f60960:kunden | -xw-x----- | |
| effect-explode.js | 2026-02-23 19:41 | 2.86 KB | 76129f60960:kunden | -xw-x----- | |
| effect-explode.min.js | 2026-02-23 19:41 | 1.1 KB | 76129f60960:kunden | -xw-x----- | |
| effect-fade.js | 2026-02-23 19:41 | 968 B | 76129f60960:kunden | -xw-x----- | |
| effect-fade.min.js | 2026-02-23 19:41 | 525 B | 76129f60960:kunden | -xw-x----- | |
| effect-fold.js | 2026-02-23 19:41 | 2.13 KB | 76129f60960:kunden | -xw-x----- | |
| effect-fold.min.js | 2026-02-23 19:41 | 1020 B | 76129f60960:kunden | -xw-x----- | |
| effect-highlight.js | 2026-02-23 19:41 | 1.21 KB | 76129f60960:kunden | -xw-x----- | |
| effect-highlight.min.js | 2026-02-23 19:41 | 648 B | 76129f60960:kunden | -xw-x----- | |
| effect-puff.js | 2026-02-23 19:41 | 995 B | 76129f60960:kunden | -xw-x----- | |
| effect-puff.min.js | 2026-02-23 19:41 | 510 B | 76129f60960:kunden | -xw-x----- | |
| effect-pulsate.js | 2026-02-23 19:41 | 1.53 KB | 76129f60960:kunden | -xw-x----- | |
| effect-pulsate.min.js | 2026-02-23 19:41 | 688 B | 76129f60960:kunden | -xw-x----- | |
| effect-scale.js | 2026-02-23 19:41 | 1.34 KB | 76129f60960:kunden | -xw-x----- | |
| effect-scale.min.js | 2026-02-23 19:41 | 723 B | 76129f60960:kunden | -xw-x----- | |
| effect-shake.js | 2026-02-23 19:41 | 1.84 KB | 76129f60960:kunden | -xw-x----- | |
| effect-shake.min.js | 2026-02-23 19:41 | 846 B | 76129f60960:kunden | -xw-x----- | |
| effect-size.js | 2026-02-23 19:41 | 5.29 KB | 76129f60960:kunden | -xw-x----- | |
| effect-size.min.js | 2026-02-23 19:41 | 2.43 KB | 76129f60960:kunden | -xw-x----- | |
| effect-slide.js | 2026-02-23 19:41 | 1.92 KB | 76129f60960:kunden | -xw-x----- | |
| effect-slide.min.js | 2026-02-23 19:41 | 917 B | 76129f60960:kunden | -xw-x----- | |
| effect-transfer.js | 2026-02-23 19:41 | 888 B | 76129f60960:kunden | -xw-x----- | |
| effect-transfer.min.js | 2026-02-23 19:41 | 442 B | 76129f60960:kunden | -xw-x----- | |
| effect.js | 2026-02-23 19:41 | 24.04 KB | 76129f60960:kunden | -xw-x----- | |
| effect.min.js | 2026-02-23 19:41 | 10.09 KB | 76129f60960:kunden | -xw-x----- | |
| menu.js | 2026-02-23 19:41 | 18.52 KB | 76129f60960:kunden | -xw-x----- | |
| menu.min.js | 2026-02-23 19:41 | 9.96 KB | 76129f60960:kunden | -xw-x----- | |
| mouse.js | 2026-02-23 19:41 | 6.08 KB | 76129f60960:kunden | -xw-x----- | |
| mouse.min.js | 2026-02-23 19:41 | 3.35 KB | 76129f60960:kunden | -xw-x----- | |
| progressbar.js | 2026-02-23 19:41 | 4.14 KB | 76129f60960:kunden | -xw-x----- | |
| progressbar.min.js | 2026-02-23 19:41 | 2.5 KB | 76129f60960:kunden | -xw-x----- | |
| resizable.js | 2026-02-23 19:41 | 29.78 KB | 76129f60960:kunden | -xw-x----- | |
| resizable.min.js | 2026-02-23 19:41 | 18.38 KB | 76129f60960:kunden | -xw-x----- | |
| selectable.js | 2026-02-23 19:41 | 7.94 KB | 76129f60960:kunden | -xw-x----- | |
| selectable.min.js | 2026-02-23 19:41 | 4.4 KB | 76129f60960:kunden | -xw-x----- | |
| selectmenu.js | 2026-02-23 19:41 | 15.96 KB | 76129f60960:kunden | -xw-x----- | |
| selectmenu.min.js | 2026-02-23 19:41 | 9.28 KB | 76129f60960:kunden | -xw-x----- | |
| slider.js | 2026-02-23 19:41 | 19.14 KB | 76129f60960:kunden | -xw-x----- | |
| slider.min.js | 2026-02-23 19:41 | 10.51 KB | 76129f60960:kunden | -xw-x----- | |
| sortable.js | 2026-02-23 19:41 | 46.52 KB | 76129f60960:kunden | -xw-x----- | |
| sortable.min.js | 2026-02-23 19:41 | 24.91 KB | 76129f60960:kunden | -xw-x----- | |
| spinner.js | 2026-02-23 19:41 | 14.1 KB | 76129f60960:kunden | -xw-x----- | |
| spinner.min.js | 2026-02-23 19:41 | 7.5 KB | 76129f60960:kunden | -xw-x----- | |
| tabs.js | 2026-02-23 19:41 | 23.11 KB | 76129f60960:kunden | -xw-x----- | |
| tabs.min.js | 2026-02-23 19:41 | 11.73 KB | 76129f60960:kunden | -xw-x----- | |
| tooltip.js | 2026-02-23 19:41 | 14.14 KB | 76129f60960:kunden | -xw-x----- | |
| tooltip.min.js | 2026-02-23 19:41 | 6.1 KB | 76129f60960:kunden | -xw-x----- | |