Spaces:
Paused
Paused
Download changedetectionio/static/js/vis.js from minhpn/changedetection: direct link, hf CLI and curl.
- Browser
- Download file 856 Bytes
-
https://huggingface.co/spaces/minhpn/changedetection/resolve/main/changedetectionio/static/js/vis.js
- Command line
-
hf download hf://spaces/minhpn/changedetection/changedetectionio/static/js/vis.js
-
curl -L -o vis.js https://huggingface.co/spaces/minhpn/changedetection/resolve/main/changedetectionio/static/js/vis.js
856 Bytes
| $(document).ready(function () { | |
| // Lazy Hide/Show elements mechanism | |
| $('[data-visible-for]').hide(); | |
| function show_related_elem(e) { | |
| var n = $(e).attr('name') + "=" + $(e).val(); | |
| if (n === 'fetch_backend=system') { | |
| n = "fetch_backend=" + default_system_fetch_backend; | |
| } | |
| $(`[data-visible-for~="${n}"]`).show(); | |
| } | |
| $(':radio').on('keyup keypress blur change click', function (e) { | |
| $(`[data-visible-for]`).hide(); | |
| $('.advanced-options').hide(); | |
| show_related_elem(this); | |
| }); | |
| $(':radio:checked').each(function (e) { | |
| show_related_elem(this); | |
| }) | |
| // Show advanced | |
| $('.show-advanced').click(function (e) { | |
| $(this).closest('.tab-pane-inner').find('.advanced-options').each(function (e) { | |
| $(this).toggle(); | |
| }) | |
| }); | |
| }); |