corrade-http-templates – Blame information for rev
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
42 | office | 1 | /*! |
2 | * jQuery UI Effects Blind 1.12.1 |
||
3 | * http://jqueryui.com |
||
4 | * |
||
5 | * Copyright jQuery Foundation and other contributors |
||
6 | * Released under the MIT license. |
||
7 | * http://jquery.org/license |
||
8 | */ |
||
9 | |||
10 | //>>label: Blind Effect |
||
11 | //>>group: Effects |
||
12 | //>>description: Blinds the element. |
||
13 | //>>docs: http://api.jqueryui.com/blind-effect/ |
||
14 | //>>demos: http://jqueryui.com/effect/ |
||
15 | |||
16 | ( function( factory ) { |
||
17 | if ( typeof define === "function" && define.amd ) { |
||
18 | |||
19 | // AMD. Register as an anonymous module. |
||
20 | define( [ |
||
21 | "jquery", |
||
22 | "../version", |
||
23 | "../effect" |
||
24 | ], factory ); |
||
25 | } else { |
||
26 | |||
27 | // Browser globals |
||
28 | factory( jQuery ); |
||
29 | } |
||
30 | }( function( $ ) { |
||
31 | |||
32 | return $.effects.define( "blind", "hide", function( options, done ) { |
||
33 | var map = { |
||
34 | up: [ "bottom", "top" ], |
||
35 | vertical: [ "bottom", "top" ], |
||
36 | down: [ "top", "bottom" ], |
||
37 | left: [ "right", "left" ], |
||
38 | horizontal: [ "right", "left" ], |
||
39 | right: [ "left", "right" ] |
||
40 | }, |
||
41 | element = $( this ), |
||
42 | direction = options.direction || "up", |
||
43 | start = element.cssClip(), |
||
44 | animate = { clip: $.extend( {}, start ) }, |
||
45 | placeholder = $.effects.createPlaceholder( element ); |
||
46 | |||
47 | animate.clip[ map[ direction ][ 0 ] ] = animate.clip[ map[ direction ][ 1 ] ]; |
||
48 | |||
49 | if ( options.mode === "show" ) { |
||
50 | element.cssClip( animate.clip ); |
||
51 | if ( placeholder ) { |
||
52 | placeholder.css( $.effects.clipToBox( animate ) ); |
||
53 | } |
||
54 | |||
55 | animate.clip = start; |
||
56 | } |
||
57 | |||
58 | if ( placeholder ) { |
||
59 | placeholder.animate( $.effects.clipToBox( animate ), options.duration, options.easing ); |
||
60 | } |
||
61 | |||
62 | element.animate( animate, { |
||
63 | queue: false, |
||
64 | duration: options.duration, |
||
65 | easing: options.easing, |
||
66 | complete: done |
||
67 | } ); |
||
68 | } ); |
||
69 | |||
70 | } ) ); |