Download node_modules/jquery/src/queue/delay.js from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 534 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/node_modules/jquery/src/queue/delay.js
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/node_modules/jquery/src/queue/delay.js
-
curl -L -o delay.js https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/node_modules/jquery/src/queue/delay.js
534 Bytes
| define( [ | |
| "../core", | |
| "../queue", | |
| "../effects" // Delay is optional because of this dependency | |
| ], function( jQuery ) { | |
| ; | |
| // Based off of the plugin by Clint Helfers, with permission. | |
| jQuery.fn.delay = function( time, type ) { | |
| time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; | |
| type = type || "fx"; | |
| return this.queue( type, function( next, hooks ) { | |
| var timeout = window.setTimeout( next, time ); | |
| hooks.stop = function() { | |
| window.clearTimeout( timeout ); | |
| }; | |
| } ); | |
| }; | |
| return jQuery.fn.delay; | |
| } ); | |