Download pool/shard003/JavaScript/0019046_style.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 484 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard003/JavaScript/0019046_style.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard003/JavaScript/0019046_style.js
-
curl -L -o 0019046_style.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard003/JavaScript/0019046_style.js
484 Bytes
| ko.bindingHandlers['style'] = { | |
| 'update': function (element, valueAccessor) { | |
| var value = ko.utils.unwrapObservable(valueAccessor() || {}); | |
| for (var styleName in value) { | |
| if (typeof styleName == "string") { | |
| var styleValue = ko.utils.unwrapObservable(value[styleName]); | |
| element.style[styleName] = styleValue || ""; // Empty string removes the value, whereas null/undefined have no effect | |
| } | |
| } | |
| } | |
| }; | |