mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-28 07:33:38 +00:00
e56303798c
Initial SickGear for Python 3.
18 lines
523 B
JavaScript
18 lines
523 B
JavaScript
function initLazyload(){
|
|
$.ll = new LazyLoad({elements_selector:'img[data-original]', callback_load:function(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;
|
|
}
|
|
}
|
|
}});
|
|
$.ll.handleScroll();
|
|
return !0;
|
|
}
|
|
|
|
$(document).ready(function(){
|
|
!/undefined/i.test(typeof(LazyLoad)) && initLazyload();
|
|
});
|