mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-23 13:25:04 +00:00
f2f39568dd
Change add support for Python 3.9.20, 3.10.15, 3.11.10, 3.12.7 Update zoneinfo to 2024b. Change improve config.ini save failure messages. Change add '-f' to copy_file command for 'posix' systems. Change add '.avif' extensions as valid image type (used by tvc cards) Change hide lazy load animation when loading fails (unsupported image format)
21 lines
581 B
JavaScript
21 lines
581 B
JavaScript
function hide_lazy_ani (element){
|
|
if (element.id) {
|
|
var el = document.getElementById('loading-' + element.id), className = 'hide';
|
|
if (!!document.body.classList) {
|
|
el.classList.add(className);
|
|
} else {
|
|
el.className += (el.className ? ' ' : '') + className;
|
|
}
|
|
}
|
|
}
|
|
|
|
function initLazyload(){
|
|
$.ll = new LazyLoad({elements_selector:'img[data-original]', callback_load: hide_lazy_ani,
|
|
callback_error: hide_lazy_ani});
|
|
$.ll.handleScroll();
|
|
return !0;
|
|
}
|
|
|
|
$(document).ready(function(){
|
|
!/undefined/i.test(typeof(LazyLoad)) && initLazyload();
|
|
});
|