librenms/html/js/lazyload.js

24 lines
644 B
JavaScript
Raw Normal View History

2015-06-29 17:44:19 +00:00
$(document).ready(function(){
$("img.lazy").lazyload({
2015-06-29 18:28:31 +00:00
effect: "fadeIn",
threshold: 300,
2015-06-29 20:18:13 +00:00
placeholder: "",
skip_invisible: false
}).removeClass("lazy").removeAttr('width').removeAttr('height');
2015-06-29 17:44:19 +00:00
$(document).ajaxStop(function() {
$("img.lazy").lazyload({
2015-06-29 18:28:31 +00:00
effect: "fadeIn",
threshold: 300,
2015-06-29 20:18:13 +00:00
placeholder: "",
skip_invisible: false
}).removeClass("lazy").removeAttr('width').removeAttr('height');
2015-06-29 17:44:19 +00:00
});
});
function wrap_overlib() {
2015-06-29 19:56:05 +00:00
var ret = overlib.apply(null,arguments);
$('div#overDiv img').removeAttr('width').removeAttr('height');
return ret;
}