jquery-ui-rails 5.0.4 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitmodules +1 -1
- data/.travis.yml +1 -1
- data/History.md +23 -2
- data/README.md +67 -50
- data/Rakefile +58 -29
- data/VERSIONS.md +4 -0
- data/app/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/javascripts/jquery-ui/core.js +15 -304
- data/app/assets/javascripts/jquery-ui/data.js +45 -0
- data/app/assets/javascripts/jquery-ui/disable-selection.js +51 -0
- data/app/assets/javascripts/jquery-ui/effect.all.js +15 -16
- data/app/assets/javascripts/jquery-ui/effect.js +565 -891
- data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +76 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +116 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +71 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +75 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +117 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +53 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +95 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +63 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +49 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +70 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +63 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +80 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-size.js +199 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +82 -0
- data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +46 -0
- data/app/assets/javascripts/jquery-ui/focusable.js +89 -0
- data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +83 -0
- data/app/assets/javascripts/jquery-ui/form.js +25 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +42 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +42 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +76 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +42 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +39 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +51 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +52 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +52 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +53 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +48 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +47 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +64 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +43 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +56 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +40 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +40 -0
- data/app/assets/javascripts/jquery-ui/ie.js +20 -0
- data/app/assets/javascripts/jquery-ui/jquery-patch.js +91 -0
- data/app/assets/javascripts/jquery-ui/jquery-var-for-color.js +24 -0
- data/app/assets/javascripts/jquery-ui/keycode.js +51 -0
- data/app/assets/javascripts/jquery-ui/labels.js +71 -0
- data/app/assets/javascripts/jquery-ui/plugin.js +49 -0
- data/app/assets/javascripts/jquery-ui/position.js +107 -111
- data/app/assets/javascripts/jquery-ui/safe-active-element.js +46 -0
- data/app/assets/javascripts/jquery-ui/safe-blur.js +27 -0
- data/app/assets/javascripts/jquery-ui/scroll-parent.js +50 -0
- data/app/assets/javascripts/jquery-ui/tabbable.js +41 -0
- data/app/assets/javascripts/jquery-ui/unique-id.js +54 -0
- data/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js +722 -0
- data/app/assets/javascripts/jquery-ui/version.js +20 -0
- data/app/assets/javascripts/jquery-ui/widget.js +359 -163
- data/app/assets/javascripts/jquery-ui/{accordion.js → widgets/accordion.js} +200 -163
- data/app/assets/javascripts/jquery-ui/{autocomplete.js → widgets/autocomplete.js} +153 -106
- data/app/assets/javascripts/jquery-ui/widgets/button.js +454 -0
- data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +289 -0
- data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +304 -0
- data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +2243 -0
- data/app/assets/javascripts/jquery-ui/{dialog.js → widgets/dialog.js} +267 -181
- data/app/assets/javascripts/jquery-ui/{draggable.js → widgets/draggable.js} +430 -294
- data/app/assets/javascripts/jquery-ui/{droppable.js → widgets/droppable.js} +174 -84
- data/app/assets/javascripts/jquery-ui/{menu.js → widgets/menu.js} +228 -158
- data/app/assets/javascripts/jquery-ui/widgets/mouse.js +241 -0
- data/app/assets/javascripts/jquery-ui/{progressbar.js → widgets/progressbar.js} +63 -41
- data/app/assets/javascripts/jquery-ui/widgets/resizable.js +1225 -0
- data/app/assets/javascripts/jquery-ui/widgets/selectable.js +321 -0
- data/app/assets/javascripts/jquery-ui/{selectmenu.js → widgets/selectmenu.js} +259 -177
- data/app/assets/javascripts/jquery-ui/{slider.js → widgets/slider.js} +199 -160
- data/app/assets/javascripts/jquery-ui/widgets/sortable.js +1623 -0
- data/app/assets/javascripts/jquery-ui/{spinner.js → widgets/spinner.js} +184 -114
- data/app/assets/javascripts/jquery-ui/{tabs.js → widgets/tabs.js} +258 -211
- data/app/assets/javascripts/jquery-ui/{tooltip.js → widgets/tooltip.js} +165 -100
- data/app/assets/javascripts/jquery-ui.js +53 -33
- data/app/assets/stylesheets/jquery-ui/accordion.css +1 -15
- data/app/assets/stylesheets/jquery-ui/all.css +1 -1
- data/app/assets/stylesheets/jquery-ui/autocomplete.css +1 -3
- data/app/assets/stylesheets/jquery-ui/base.css +3 -1
- data/app/assets/stylesheets/jquery-ui/button.css +35 -68
- data/app/assets/stylesheets/jquery-ui/checkboxradio.css +37 -0
- data/app/assets/stylesheets/jquery-ui/controlgroup.css +68 -0
- data/app/assets/stylesheets/jquery-ui/core.css +12 -8
- data/app/assets/stylesheets/jquery-ui/datepicker.css +11 -2
- data/app/assets/stylesheets/jquery-ui/dialog.css +38 -11
- data/app/assets/stylesheets/jquery-ui/draggable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/menu.css +7 -7
- data/app/assets/stylesheets/jquery-ui/progressbar.css +2 -3
- data/app/assets/stylesheets/jquery-ui/resizable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/selectable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/selectmenu.css +11 -22
- data/app/assets/stylesheets/jquery-ui/slider.css +2 -3
- data/app/assets/stylesheets/jquery-ui/sortable.css +1 -2
- data/app/assets/stylesheets/jquery-ui/spinner.css +7 -22
- data/app/assets/stylesheets/jquery-ui/tabs.css +1 -2
- data/app/assets/stylesheets/jquery-ui/theme.css.erb +121 -92
- data/app/assets/stylesheets/jquery-ui/tooltip.css +1 -4
- data/lib/jquery/ui/rails/version.rb +2 -2
- metadata +153 -146
- data/app/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/javascripts/jquery-ui/button.js +0 -414
- data/app/assets/javascripts/jquery-ui/datepicker-af.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ar-DZ.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ar.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-az.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-be.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-bg.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-bs.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ca.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-cs.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-cy-GB.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-da.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-de.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-el.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-en-AU.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-en-GB.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-en-NZ.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-eo.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-es.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-et.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-eu.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-fa.js +0 -73
- data/app/assets/javascripts/jquery-ui/datepicker-fi.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fo.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CA.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CH.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-fr.js +0 -39
- data/app/assets/javascripts/jquery-ui/datepicker-gl.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-he.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-hi.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-hr.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-hu.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-hy.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-id.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-is.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-it-CH.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-it.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ja.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ka.js +0 -35
- data/app/assets/javascripts/jquery-ui/datepicker-kk.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-km.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ko.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ky.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-lb.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-lt.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-lv.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-mk.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ml.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ms.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-nb.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-nl-BE.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-nl.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-nn.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-no.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-pl.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-pt-BR.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-pt.js +0 -36
- data/app/assets/javascripts/jquery-ui/datepicker-rm.js +0 -35
- data/app/assets/javascripts/jquery-ui/datepicker-ro.js +0 -40
- data/app/assets/javascripts/jquery-ui/datepicker-ru.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sk.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sl.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-sq.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sr-SR.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sr.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-sv.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-ta.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-th.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-tj.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-tr.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-uk.js +0 -38
- data/app/assets/javascripts/jquery-ui/datepicker-vi.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-zh-CN.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-zh-HK.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker-zh-TW.js +0 -37
- data/app/assets/javascripts/jquery-ui/datepicker.js +0 -2086
- data/app/assets/javascripts/jquery-ui/effect-blind.js +0 -92
- data/app/assets/javascripts/jquery-ui/effect-bounce.js +0 -125
- data/app/assets/javascripts/jquery-ui/effect-clip.js +0 -79
- data/app/assets/javascripts/jquery-ui/effect-drop.js +0 -77
- data/app/assets/javascripts/jquery-ui/effect-explode.js +0 -109
- data/app/assets/javascripts/jquery-ui/effect-fade.js +0 -42
- data/app/assets/javascripts/jquery-ui/effect-fold.js +0 -88
- data/app/assets/javascripts/jquery-ui/effect-highlight.js +0 -62
- data/app/assets/javascripts/jquery-ui/effect-puff.js +0 -63
- data/app/assets/javascripts/jquery-ui/effect-pulsate.js +0 -75
- data/app/assets/javascripts/jquery-ui/effect-scale.js +0 -92
- data/app/assets/javascripts/jquery-ui/effect-shake.js +0 -86
- data/app/assets/javascripts/jquery-ui/effect-size.js +0 -235
- data/app/assets/javascripts/jquery-ui/effect-slide.js +0 -76
- data/app/assets/javascripts/jquery-ui/effect-transfer.js +0 -59
- data/app/assets/javascripts/jquery-ui/mouse.js +0 -202
- data/app/assets/javascripts/jquery-ui/resizable.js +0 -1183
- data/app/assets/javascripts/jquery-ui/selectable.js +0 -291
- data/app/assets/javascripts/jquery-ui/sortable.js +0 -1308
@@ -1,63 +0,0 @@
|
|
1
|
-
//= require jquery-ui/effect
|
2
|
-
//= require jquery-ui/effect-scale
|
3
|
-
|
4
|
-
/*!
|
5
|
-
* jQuery UI Effects Puff 1.11.3
|
6
|
-
* http://jqueryui.com
|
7
|
-
*
|
8
|
-
* Copyright jQuery Foundation and other contributors
|
9
|
-
* Released under the MIT license.
|
10
|
-
* http://jquery.org/license
|
11
|
-
*
|
12
|
-
* http://api.jqueryui.com/puff-effect/
|
13
|
-
*/
|
14
|
-
(function( factory ) {
|
15
|
-
if ( typeof define === "function" && define.amd ) {
|
16
|
-
|
17
|
-
// AMD. Register as an anonymous module.
|
18
|
-
define([
|
19
|
-
"jquery",
|
20
|
-
"./effect",
|
21
|
-
"./effect-scale"
|
22
|
-
], factory );
|
23
|
-
} else {
|
24
|
-
|
25
|
-
// Browser globals
|
26
|
-
factory( jQuery );
|
27
|
-
}
|
28
|
-
}(function( $ ) {
|
29
|
-
|
30
|
-
return $.effects.effect.puff = function( o, done ) {
|
31
|
-
var elem = $( this ),
|
32
|
-
mode = $.effects.setMode( elem, o.mode || "hide" ),
|
33
|
-
hide = mode === "hide",
|
34
|
-
percent = parseInt( o.percent, 10 ) || 150,
|
35
|
-
factor = percent / 100,
|
36
|
-
original = {
|
37
|
-
height: elem.height(),
|
38
|
-
width: elem.width(),
|
39
|
-
outerHeight: elem.outerHeight(),
|
40
|
-
outerWidth: elem.outerWidth()
|
41
|
-
};
|
42
|
-
|
43
|
-
$.extend( o, {
|
44
|
-
effect: "scale",
|
45
|
-
queue: false,
|
46
|
-
fade: true,
|
47
|
-
mode: mode,
|
48
|
-
complete: done,
|
49
|
-
percent: hide ? percent : 100,
|
50
|
-
from: hide ?
|
51
|
-
original :
|
52
|
-
{
|
53
|
-
height: original.height * factor,
|
54
|
-
width: original.width * factor,
|
55
|
-
outerHeight: original.outerHeight * factor,
|
56
|
-
outerWidth: original.outerWidth * factor
|
57
|
-
}
|
58
|
-
});
|
59
|
-
|
60
|
-
elem.effect( o );
|
61
|
-
};
|
62
|
-
|
63
|
-
}));
|
@@ -1,75 +0,0 @@
|
|
1
|
-
//= require jquery-ui/effect
|
2
|
-
|
3
|
-
/*!
|
4
|
-
* jQuery UI Effects Pulsate 1.11.3
|
5
|
-
* http://jqueryui.com
|
6
|
-
*
|
7
|
-
* Copyright jQuery Foundation and other contributors
|
8
|
-
* Released under the MIT license.
|
9
|
-
* http://jquery.org/license
|
10
|
-
*
|
11
|
-
* http://api.jqueryui.com/pulsate-effect/
|
12
|
-
*/
|
13
|
-
(function( factory ) {
|
14
|
-
if ( typeof define === "function" && define.amd ) {
|
15
|
-
|
16
|
-
// AMD. Register as an anonymous module.
|
17
|
-
define([
|
18
|
-
"jquery",
|
19
|
-
"./effect"
|
20
|
-
], factory );
|
21
|
-
} else {
|
22
|
-
|
23
|
-
// Browser globals
|
24
|
-
factory( jQuery );
|
25
|
-
}
|
26
|
-
}(function( $ ) {
|
27
|
-
|
28
|
-
return $.effects.effect.pulsate = function( o, done ) {
|
29
|
-
var elem = $( this ),
|
30
|
-
mode = $.effects.setMode( elem, o.mode || "show" ),
|
31
|
-
show = mode === "show",
|
32
|
-
hide = mode === "hide",
|
33
|
-
showhide = ( show || mode === "hide" ),
|
34
|
-
|
35
|
-
// showing or hiding leaves of the "last" animation
|
36
|
-
anims = ( ( o.times || 5 ) * 2 ) + ( showhide ? 1 : 0 ),
|
37
|
-
duration = o.duration / anims,
|
38
|
-
animateTo = 0,
|
39
|
-
queue = elem.queue(),
|
40
|
-
queuelen = queue.length,
|
41
|
-
i;
|
42
|
-
|
43
|
-
if ( show || !elem.is(":visible")) {
|
44
|
-
elem.css( "opacity", 0 ).show();
|
45
|
-
animateTo = 1;
|
46
|
-
}
|
47
|
-
|
48
|
-
// anims - 1 opacity "toggles"
|
49
|
-
for ( i = 1; i < anims; i++ ) {
|
50
|
-
elem.animate({
|
51
|
-
opacity: animateTo
|
52
|
-
}, duration, o.easing );
|
53
|
-
animateTo = 1 - animateTo;
|
54
|
-
}
|
55
|
-
|
56
|
-
elem.animate({
|
57
|
-
opacity: animateTo
|
58
|
-
}, duration, o.easing);
|
59
|
-
|
60
|
-
elem.queue(function() {
|
61
|
-
if ( hide ) {
|
62
|
-
elem.hide();
|
63
|
-
}
|
64
|
-
done();
|
65
|
-
});
|
66
|
-
|
67
|
-
// We just queued up "anims" animations, we need to put them next in the queue
|
68
|
-
if ( queuelen > 1 ) {
|
69
|
-
queue.splice.apply( queue,
|
70
|
-
[ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );
|
71
|
-
}
|
72
|
-
elem.dequeue();
|
73
|
-
};
|
74
|
-
|
75
|
-
}));
|
@@ -1,92 +0,0 @@
|
|
1
|
-
//= require jquery-ui/effect
|
2
|
-
//= require jquery-ui/effect-size
|
3
|
-
|
4
|
-
/*!
|
5
|
-
* jQuery UI Effects Scale 1.11.3
|
6
|
-
* http://jqueryui.com
|
7
|
-
*
|
8
|
-
* Copyright jQuery Foundation and other contributors
|
9
|
-
* Released under the MIT license.
|
10
|
-
* http://jquery.org/license
|
11
|
-
*
|
12
|
-
* http://api.jqueryui.com/scale-effect/
|
13
|
-
*/
|
14
|
-
(function( factory ) {
|
15
|
-
if ( typeof define === "function" && define.amd ) {
|
16
|
-
|
17
|
-
// AMD. Register as an anonymous module.
|
18
|
-
define([
|
19
|
-
"jquery",
|
20
|
-
"./effect",
|
21
|
-
"./effect-size"
|
22
|
-
], factory );
|
23
|
-
} else {
|
24
|
-
|
25
|
-
// Browser globals
|
26
|
-
factory( jQuery );
|
27
|
-
}
|
28
|
-
}(function( $ ) {
|
29
|
-
|
30
|
-
return $.effects.effect.scale = function( o, done ) {
|
31
|
-
|
32
|
-
// Create element
|
33
|
-
var el = $( this ),
|
34
|
-
options = $.extend( true, {}, o ),
|
35
|
-
mode = $.effects.setMode( el, o.mode || "effect" ),
|
36
|
-
percent = parseInt( o.percent, 10 ) ||
|
37
|
-
( parseInt( o.percent, 10 ) === 0 ? 0 : ( mode === "hide" ? 0 : 100 ) ),
|
38
|
-
direction = o.direction || "both",
|
39
|
-
origin = o.origin,
|
40
|
-
original = {
|
41
|
-
height: el.height(),
|
42
|
-
width: el.width(),
|
43
|
-
outerHeight: el.outerHeight(),
|
44
|
-
outerWidth: el.outerWidth()
|
45
|
-
},
|
46
|
-
factor = {
|
47
|
-
y: direction !== "horizontal" ? (percent / 100) : 1,
|
48
|
-
x: direction !== "vertical" ? (percent / 100) : 1
|
49
|
-
};
|
50
|
-
|
51
|
-
// We are going to pass this effect to the size effect:
|
52
|
-
options.effect = "size";
|
53
|
-
options.queue = false;
|
54
|
-
options.complete = done;
|
55
|
-
|
56
|
-
// Set default origin and restore for show/hide
|
57
|
-
if ( mode !== "effect" ) {
|
58
|
-
options.origin = origin || [ "middle", "center" ];
|
59
|
-
options.restore = true;
|
60
|
-
}
|
61
|
-
|
62
|
-
options.from = o.from || ( mode === "show" ? {
|
63
|
-
height: 0,
|
64
|
-
width: 0,
|
65
|
-
outerHeight: 0,
|
66
|
-
outerWidth: 0
|
67
|
-
} : original );
|
68
|
-
options.to = {
|
69
|
-
height: original.height * factor.y,
|
70
|
-
width: original.width * factor.x,
|
71
|
-
outerHeight: original.outerHeight * factor.y,
|
72
|
-
outerWidth: original.outerWidth * factor.x
|
73
|
-
};
|
74
|
-
|
75
|
-
// Fade option to support puff
|
76
|
-
if ( options.fade ) {
|
77
|
-
if ( mode === "show" ) {
|
78
|
-
options.from.opacity = 0;
|
79
|
-
options.to.opacity = 1;
|
80
|
-
}
|
81
|
-
if ( mode === "hide" ) {
|
82
|
-
options.from.opacity = 1;
|
83
|
-
options.to.opacity = 0;
|
84
|
-
}
|
85
|
-
}
|
86
|
-
|
87
|
-
// Animate
|
88
|
-
el.effect( options );
|
89
|
-
|
90
|
-
};
|
91
|
-
|
92
|
-
}));
|
@@ -1,86 +0,0 @@
|
|
1
|
-
//= require jquery-ui/effect
|
2
|
-
|
3
|
-
/*!
|
4
|
-
* jQuery UI Effects Shake 1.11.3
|
5
|
-
* http://jqueryui.com
|
6
|
-
*
|
7
|
-
* Copyright jQuery Foundation and other contributors
|
8
|
-
* Released under the MIT license.
|
9
|
-
* http://jquery.org/license
|
10
|
-
*
|
11
|
-
* http://api.jqueryui.com/shake-effect/
|
12
|
-
*/
|
13
|
-
(function( factory ) {
|
14
|
-
if ( typeof define === "function" && define.amd ) {
|
15
|
-
|
16
|
-
// AMD. Register as an anonymous module.
|
17
|
-
define([
|
18
|
-
"jquery",
|
19
|
-
"./effect"
|
20
|
-
], factory );
|
21
|
-
} else {
|
22
|
-
|
23
|
-
// Browser globals
|
24
|
-
factory( jQuery );
|
25
|
-
}
|
26
|
-
}(function( $ ) {
|
27
|
-
|
28
|
-
return $.effects.effect.shake = function( o, done ) {
|
29
|
-
|
30
|
-
var el = $( this ),
|
31
|
-
props = [ "position", "top", "bottom", "left", "right", "height", "width" ],
|
32
|
-
mode = $.effects.setMode( el, o.mode || "effect" ),
|
33
|
-
direction = o.direction || "left",
|
34
|
-
distance = o.distance || 20,
|
35
|
-
times = o.times || 3,
|
36
|
-
anims = times * 2 + 1,
|
37
|
-
speed = Math.round( o.duration / anims ),
|
38
|
-
ref = (direction === "up" || direction === "down") ? "top" : "left",
|
39
|
-
positiveMotion = (direction === "up" || direction === "left"),
|
40
|
-
animation = {},
|
41
|
-
animation1 = {},
|
42
|
-
animation2 = {},
|
43
|
-
i,
|
44
|
-
|
45
|
-
// we will need to re-assemble the queue to stack our animations in place
|
46
|
-
queue = el.queue(),
|
47
|
-
queuelen = queue.length;
|
48
|
-
|
49
|
-
$.effects.save( el, props );
|
50
|
-
el.show();
|
51
|
-
$.effects.createWrapper( el );
|
52
|
-
|
53
|
-
// Animation
|
54
|
-
animation[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance;
|
55
|
-
animation1[ ref ] = ( positiveMotion ? "+=" : "-=" ) + distance * 2;
|
56
|
-
animation2[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance * 2;
|
57
|
-
|
58
|
-
// Animate
|
59
|
-
el.animate( animation, speed, o.easing );
|
60
|
-
|
61
|
-
// Shakes
|
62
|
-
for ( i = 1; i < times; i++ ) {
|
63
|
-
el.animate( animation1, speed, o.easing ).animate( animation2, speed, o.easing );
|
64
|
-
}
|
65
|
-
el
|
66
|
-
.animate( animation1, speed, o.easing )
|
67
|
-
.animate( animation, speed / 2, o.easing )
|
68
|
-
.queue(function() {
|
69
|
-
if ( mode === "hide" ) {
|
70
|
-
el.hide();
|
71
|
-
}
|
72
|
-
$.effects.restore( el, props );
|
73
|
-
$.effects.removeWrapper( el );
|
74
|
-
done();
|
75
|
-
});
|
76
|
-
|
77
|
-
// inject all the animations we just queued to be first in line (after "inprogress")
|
78
|
-
if ( queuelen > 1) {
|
79
|
-
queue.splice.apply( queue,
|
80
|
-
[ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );
|
81
|
-
}
|
82
|
-
el.dequeue();
|
83
|
-
|
84
|
-
};
|
85
|
-
|
86
|
-
}));
|
@@ -1,235 +0,0 @@
|
|
1
|
-
//= require jquery-ui/effect
|
2
|
-
|
3
|
-
/*!
|
4
|
-
* jQuery UI Effects Size 1.11.3
|
5
|
-
* http://jqueryui.com
|
6
|
-
*
|
7
|
-
* Copyright jQuery Foundation and other contributors
|
8
|
-
* Released under the MIT license.
|
9
|
-
* http://jquery.org/license
|
10
|
-
*
|
11
|
-
* http://api.jqueryui.com/size-effect/
|
12
|
-
*/
|
13
|
-
(function( factory ) {
|
14
|
-
if ( typeof define === "function" && define.amd ) {
|
15
|
-
|
16
|
-
// AMD. Register as an anonymous module.
|
17
|
-
define([
|
18
|
-
"jquery",
|
19
|
-
"./effect"
|
20
|
-
], factory );
|
21
|
-
} else {
|
22
|
-
|
23
|
-
// Browser globals
|
24
|
-
factory( jQuery );
|
25
|
-
}
|
26
|
-
}(function( $ ) {
|
27
|
-
|
28
|
-
return $.effects.effect.size = function( o, done ) {
|
29
|
-
|
30
|
-
// Create element
|
31
|
-
var original, baseline, factor,
|
32
|
-
el = $( this ),
|
33
|
-
props0 = [ "position", "top", "bottom", "left", "right", "width", "height", "overflow", "opacity" ],
|
34
|
-
|
35
|
-
// Always restore
|
36
|
-
props1 = [ "position", "top", "bottom", "left", "right", "overflow", "opacity" ],
|
37
|
-
|
38
|
-
// Copy for children
|
39
|
-
props2 = [ "width", "height", "overflow" ],
|
40
|
-
cProps = [ "fontSize" ],
|
41
|
-
vProps = [ "borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom" ],
|
42
|
-
hProps = [ "borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight" ],
|
43
|
-
|
44
|
-
// Set options
|
45
|
-
mode = $.effects.setMode( el, o.mode || "effect" ),
|
46
|
-
restore = o.restore || mode !== "effect",
|
47
|
-
scale = o.scale || "both",
|
48
|
-
origin = o.origin || [ "middle", "center" ],
|
49
|
-
position = el.css( "position" ),
|
50
|
-
props = restore ? props0 : props1,
|
51
|
-
zero = {
|
52
|
-
height: 0,
|
53
|
-
width: 0,
|
54
|
-
outerHeight: 0,
|
55
|
-
outerWidth: 0
|
56
|
-
};
|
57
|
-
|
58
|
-
if ( mode === "show" ) {
|
59
|
-
el.show();
|
60
|
-
}
|
61
|
-
original = {
|
62
|
-
height: el.height(),
|
63
|
-
width: el.width(),
|
64
|
-
outerHeight: el.outerHeight(),
|
65
|
-
outerWidth: el.outerWidth()
|
66
|
-
};
|
67
|
-
|
68
|
-
if ( o.mode === "toggle" && mode === "show" ) {
|
69
|
-
el.from = o.to || zero;
|
70
|
-
el.to = o.from || original;
|
71
|
-
} else {
|
72
|
-
el.from = o.from || ( mode === "show" ? zero : original );
|
73
|
-
el.to = o.to || ( mode === "hide" ? zero : original );
|
74
|
-
}
|
75
|
-
|
76
|
-
// Set scaling factor
|
77
|
-
factor = {
|
78
|
-
from: {
|
79
|
-
y: el.from.height / original.height,
|
80
|
-
x: el.from.width / original.width
|
81
|
-
},
|
82
|
-
to: {
|
83
|
-
y: el.to.height / original.height,
|
84
|
-
x: el.to.width / original.width
|
85
|
-
}
|
86
|
-
};
|
87
|
-
|
88
|
-
// Scale the css box
|
89
|
-
if ( scale === "box" || scale === "both" ) {
|
90
|
-
|
91
|
-
// Vertical props scaling
|
92
|
-
if ( factor.from.y !== factor.to.y ) {
|
93
|
-
props = props.concat( vProps );
|
94
|
-
el.from = $.effects.setTransition( el, vProps, factor.from.y, el.from );
|
95
|
-
el.to = $.effects.setTransition( el, vProps, factor.to.y, el.to );
|
96
|
-
}
|
97
|
-
|
98
|
-
// Horizontal props scaling
|
99
|
-
if ( factor.from.x !== factor.to.x ) {
|
100
|
-
props = props.concat( hProps );
|
101
|
-
el.from = $.effects.setTransition( el, hProps, factor.from.x, el.from );
|
102
|
-
el.to = $.effects.setTransition( el, hProps, factor.to.x, el.to );
|
103
|
-
}
|
104
|
-
}
|
105
|
-
|
106
|
-
// Scale the content
|
107
|
-
if ( scale === "content" || scale === "both" ) {
|
108
|
-
|
109
|
-
// Vertical props scaling
|
110
|
-
if ( factor.from.y !== factor.to.y ) {
|
111
|
-
props = props.concat( cProps ).concat( props2 );
|
112
|
-
el.from = $.effects.setTransition( el, cProps, factor.from.y, el.from );
|
113
|
-
el.to = $.effects.setTransition( el, cProps, factor.to.y, el.to );
|
114
|
-
}
|
115
|
-
}
|
116
|
-
|
117
|
-
$.effects.save( el, props );
|
118
|
-
el.show();
|
119
|
-
$.effects.createWrapper( el );
|
120
|
-
el.css( "overflow", "hidden" ).css( el.from );
|
121
|
-
|
122
|
-
// Adjust
|
123
|
-
if (origin) { // Calculate baseline shifts
|
124
|
-
baseline = $.effects.getBaseline( origin, original );
|
125
|
-
el.from.top = ( original.outerHeight - el.outerHeight() ) * baseline.y;
|
126
|
-
el.from.left = ( original.outerWidth - el.outerWidth() ) * baseline.x;
|
127
|
-
el.to.top = ( original.outerHeight - el.to.outerHeight ) * baseline.y;
|
128
|
-
el.to.left = ( original.outerWidth - el.to.outerWidth ) * baseline.x;
|
129
|
-
}
|
130
|
-
el.css( el.from ); // set top & left
|
131
|
-
|
132
|
-
// Animate
|
133
|
-
if ( scale === "content" || scale === "both" ) { // Scale the children
|
134
|
-
|
135
|
-
// Add margins/font-size
|
136
|
-
vProps = vProps.concat([ "marginTop", "marginBottom" ]).concat(cProps);
|
137
|
-
hProps = hProps.concat([ "marginLeft", "marginRight" ]);
|
138
|
-
props2 = props0.concat(vProps).concat(hProps);
|
139
|
-
|
140
|
-
el.find( "*[width]" ).each( function() {
|
141
|
-
var child = $( this ),
|
142
|
-
c_original = {
|
143
|
-
height: child.height(),
|
144
|
-
width: child.width(),
|
145
|
-
outerHeight: child.outerHeight(),
|
146
|
-
outerWidth: child.outerWidth()
|
147
|
-
};
|
148
|
-
if (restore) {
|
149
|
-
$.effects.save(child, props2);
|
150
|
-
}
|
151
|
-
|
152
|
-
child.from = {
|
153
|
-
height: c_original.height * factor.from.y,
|
154
|
-
width: c_original.width * factor.from.x,
|
155
|
-
outerHeight: c_original.outerHeight * factor.from.y,
|
156
|
-
outerWidth: c_original.outerWidth * factor.from.x
|
157
|
-
};
|
158
|
-
child.to = {
|
159
|
-
height: c_original.height * factor.to.y,
|
160
|
-
width: c_original.width * factor.to.x,
|
161
|
-
outerHeight: c_original.height * factor.to.y,
|
162
|
-
outerWidth: c_original.width * factor.to.x
|
163
|
-
};
|
164
|
-
|
165
|
-
// Vertical props scaling
|
166
|
-
if ( factor.from.y !== factor.to.y ) {
|
167
|
-
child.from = $.effects.setTransition( child, vProps, factor.from.y, child.from );
|
168
|
-
child.to = $.effects.setTransition( child, vProps, factor.to.y, child.to );
|
169
|
-
}
|
170
|
-
|
171
|
-
// Horizontal props scaling
|
172
|
-
if ( factor.from.x !== factor.to.x ) {
|
173
|
-
child.from = $.effects.setTransition( child, hProps, factor.from.x, child.from );
|
174
|
-
child.to = $.effects.setTransition( child, hProps, factor.to.x, child.to );
|
175
|
-
}
|
176
|
-
|
177
|
-
// Animate children
|
178
|
-
child.css( child.from );
|
179
|
-
child.animate( child.to, o.duration, o.easing, function() {
|
180
|
-
|
181
|
-
// Restore children
|
182
|
-
if ( restore ) {
|
183
|
-
$.effects.restore( child, props2 );
|
184
|
-
}
|
185
|
-
});
|
186
|
-
});
|
187
|
-
}
|
188
|
-
|
189
|
-
// Animate
|
190
|
-
el.animate( el.to, {
|
191
|
-
queue: false,
|
192
|
-
duration: o.duration,
|
193
|
-
easing: o.easing,
|
194
|
-
complete: function() {
|
195
|
-
if ( el.to.opacity === 0 ) {
|
196
|
-
el.css( "opacity", el.from.opacity );
|
197
|
-
}
|
198
|
-
if ( mode === "hide" ) {
|
199
|
-
el.hide();
|
200
|
-
}
|
201
|
-
$.effects.restore( el, props );
|
202
|
-
if ( !restore ) {
|
203
|
-
|
204
|
-
// we need to calculate our new positioning based on the scaling
|
205
|
-
if ( position === "static" ) {
|
206
|
-
el.css({
|
207
|
-
position: "relative",
|
208
|
-
top: el.to.top,
|
209
|
-
left: el.to.left
|
210
|
-
});
|
211
|
-
} else {
|
212
|
-
$.each([ "top", "left" ], function( idx, pos ) {
|
213
|
-
el.css( pos, function( _, str ) {
|
214
|
-
var val = parseInt( str, 10 ),
|
215
|
-
toRef = idx ? el.to.left : el.to.top;
|
216
|
-
|
217
|
-
// if original was "auto", recalculate the new value from wrapper
|
218
|
-
if ( str === "auto" ) {
|
219
|
-
return toRef + "px";
|
220
|
-
}
|
221
|
-
|
222
|
-
return val + toRef + "px";
|
223
|
-
});
|
224
|
-
});
|
225
|
-
}
|
226
|
-
}
|
227
|
-
|
228
|
-
$.effects.removeWrapper( el );
|
229
|
-
done();
|
230
|
-
}
|
231
|
-
});
|
232
|
-
|
233
|
-
};
|
234
|
-
|
235
|
-
}));
|
@@ -1,76 +0,0 @@
|
|
1
|
-
//= require jquery-ui/effect
|
2
|
-
|
3
|
-
/*!
|
4
|
-
* jQuery UI Effects Slide 1.11.3
|
5
|
-
* http://jqueryui.com
|
6
|
-
*
|
7
|
-
* Copyright jQuery Foundation and other contributors
|
8
|
-
* Released under the MIT license.
|
9
|
-
* http://jquery.org/license
|
10
|
-
*
|
11
|
-
* http://api.jqueryui.com/slide-effect/
|
12
|
-
*/
|
13
|
-
(function( factory ) {
|
14
|
-
if ( typeof define === "function" && define.amd ) {
|
15
|
-
|
16
|
-
// AMD. Register as an anonymous module.
|
17
|
-
define([
|
18
|
-
"jquery",
|
19
|
-
"./effect"
|
20
|
-
], factory );
|
21
|
-
} else {
|
22
|
-
|
23
|
-
// Browser globals
|
24
|
-
factory( jQuery );
|
25
|
-
}
|
26
|
-
}(function( $ ) {
|
27
|
-
|
28
|
-
return $.effects.effect.slide = function( o, done ) {
|
29
|
-
|
30
|
-
// Create element
|
31
|
-
var el = $( this ),
|
32
|
-
props = [ "position", "top", "bottom", "left", "right", "width", "height" ],
|
33
|
-
mode = $.effects.setMode( el, o.mode || "show" ),
|
34
|
-
show = mode === "show",
|
35
|
-
direction = o.direction || "left",
|
36
|
-
ref = (direction === "up" || direction === "down") ? "top" : "left",
|
37
|
-
positiveMotion = (direction === "up" || direction === "left"),
|
38
|
-
distance,
|
39
|
-
animation = {};
|
40
|
-
|
41
|
-
// Adjust
|
42
|
-
$.effects.save( el, props );
|
43
|
-
el.show();
|
44
|
-
distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]( true );
|
45
|
-
|
46
|
-
$.effects.createWrapper( el ).css({
|
47
|
-
overflow: "hidden"
|
48
|
-
});
|
49
|
-
|
50
|
-
if ( show ) {
|
51
|
-
el.css( ref, positiveMotion ? (isNaN(distance) ? "-" + distance : -distance) : distance );
|
52
|
-
}
|
53
|
-
|
54
|
-
// Animation
|
55
|
-
animation[ ref ] = ( show ?
|
56
|
-
( positiveMotion ? "+=" : "-=") :
|
57
|
-
( positiveMotion ? "-=" : "+=")) +
|
58
|
-
distance;
|
59
|
-
|
60
|
-
// Animate
|
61
|
-
el.animate( animation, {
|
62
|
-
queue: false,
|
63
|
-
duration: o.duration,
|
64
|
-
easing: o.easing,
|
65
|
-
complete: function() {
|
66
|
-
if ( mode === "hide" ) {
|
67
|
-
el.hide();
|
68
|
-
}
|
69
|
-
$.effects.restore( el, props );
|
70
|
-
$.effects.removeWrapper( el );
|
71
|
-
done();
|
72
|
-
}
|
73
|
-
});
|
74
|
-
};
|
75
|
-
|
76
|
-
}));
|
@@ -1,59 +0,0 @@
|
|
1
|
-
//= require jquery-ui/effect
|
2
|
-
|
3
|
-
/*!
|
4
|
-
* jQuery UI Effects Transfer 1.11.3
|
5
|
-
* http://jqueryui.com
|
6
|
-
*
|
7
|
-
* Copyright jQuery Foundation and other contributors
|
8
|
-
* Released under the MIT license.
|
9
|
-
* http://jquery.org/license
|
10
|
-
*
|
11
|
-
* http://api.jqueryui.com/transfer-effect/
|
12
|
-
*/
|
13
|
-
(function( factory ) {
|
14
|
-
if ( typeof define === "function" && define.amd ) {
|
15
|
-
|
16
|
-
// AMD. Register as an anonymous module.
|
17
|
-
define([
|
18
|
-
"jquery",
|
19
|
-
"./effect"
|
20
|
-
], factory );
|
21
|
-
} else {
|
22
|
-
|
23
|
-
// Browser globals
|
24
|
-
factory( jQuery );
|
25
|
-
}
|
26
|
-
}(function( $ ) {
|
27
|
-
|
28
|
-
return $.effects.effect.transfer = function( o, done ) {
|
29
|
-
var elem = $( this ),
|
30
|
-
target = $( o.to ),
|
31
|
-
targetFixed = target.css( "position" ) === "fixed",
|
32
|
-
body = $("body"),
|
33
|
-
fixTop = targetFixed ? body.scrollTop() : 0,
|
34
|
-
fixLeft = targetFixed ? body.scrollLeft() : 0,
|
35
|
-
endPosition = target.offset(),
|
36
|
-
animation = {
|
37
|
-
top: endPosition.top - fixTop,
|
38
|
-
left: endPosition.left - fixLeft,
|
39
|
-
height: target.innerHeight(),
|
40
|
-
width: target.innerWidth()
|
41
|
-
},
|
42
|
-
startPosition = elem.offset(),
|
43
|
-
transfer = $( "<div class='ui-effects-transfer'></div>" )
|
44
|
-
.appendTo( document.body )
|
45
|
-
.addClass( o.className )
|
46
|
-
.css({
|
47
|
-
top: startPosition.top - fixTop,
|
48
|
-
left: startPosition.left - fixLeft,
|
49
|
-
height: elem.innerHeight(),
|
50
|
-
width: elem.innerWidth(),
|
51
|
-
position: targetFixed ? "fixed" : "absolute"
|
52
|
-
})
|
53
|
-
.animate( animation, o.duration, o.easing, function() {
|
54
|
-
transfer.remove();
|
55
|
-
done();
|
56
|
-
});
|
57
|
-
};
|
58
|
-
|
59
|
-
}));
|