Download node_modules/jquery/src/css/var/swap.js from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 501 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/node_modules/jquery/src/css/var/swap.js
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/node_modules/jquery/src/css/var/swap.js
-
curl -L -o swap.js https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/node_modules/jquery/src/css/var/swap.js
501 Bytes
| define( function() { | |
| ; | |
| // A method for quickly swapping in/out CSS properties to get correct calculations. | |
| return function( elem, options, callback ) { | |
| var ret, name, | |
| old = {}; | |
| // Remember the old values, and insert the new ones | |
| for ( name in options ) { | |
| old[ name ] = elem.style[ name ]; | |
| elem.style[ name ] = options[ name ]; | |
| } | |
| ret = callback.call( elem ); | |
| // Revert the old values | |
| for ( name in options ) { | |
| elem.style[ name ] = old[ name ]; | |
| } | |
| return ret; | |
| }; | |
| } ); | |