PageSourceSearch

https://s1.48hourprint.com/assets/vendor/dri/image-lazy-load/dist/image-lazy-load.js

js 48hourprint.com collected 2026-10-03 22:11:17 UTC 3,375 bytes, 1 lines download raw bytes

1var ImageLazyLoad=function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=0)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this.scroll="scroll-lazy",this.hover="hover-lazy",this.click="click-lazy",this.loadedClass="lazy-loaded",this.config=t}return t.prototype.init=function(){var t=this;if(null!=this.config&&Object.keys(this.config).length>0){var e;if(this.scrollLazy(),void 0!==this.config.scroll&&this.config.scroll&&window.addEventListener("scroll",function(){t.scrollLazy()}),void 0!==this.config.hover&&this.config.hover)if((e=document.querySelectorAll("."+this.hover)).length>0)for(var i in e)e[i]instanceof HTMLElement&&e[i].addEventListener("mouseenter",function(e){t.hoverLazy(e)});if(void 0!==this.config.click&&this.config.click)if((e=document.querySelectorAll("."+this.click)).length>0)for(var i in e)e[i]instanceof HTMLElement&&e[i].addEventListener("click",function(){setTimeout(function(){t.scrollLazy()},200)})}},t.prototype.isViewportVisible=function(t){if(t instanceof HTMLElement){var e=t.getBoundingClientRect();if(e.top<window.innerHeight&&e.bottom>=0&&e.left>=0&&e.right<=(window.innerWidth||document.documentElement.clientWidth))return!0}return!1},t.prototype.isVisibleElement=function(t){var e=window.getComputedStyle(t);return"0"!==e.width&&"0"!==e.height&&"0"!==e.opacity&&"none"!==e.display&&"hidden"!==e.visibility},t.prototype.scrollLazy=function(){var t=document.querySelectorAll("."+this.scroll);if(t.length>0)for(var e in t)if(t[e]instanceof HTMLElement&&this.isViewportVisible(t[e])&&this.isVisibleElement(t[e])){var i=t[e].querySelectorAll("img:not(."+this.loadedClass+")");if(i.length>0)for(var n in i)this.isViewportVisible(i[n])&&!i[n].classList.contains(this.loadedClass)&&(null!=i[n].getAttribute("data-srcset")&&i[n].setAttribute("srcset",i[n].getAttribute("data-srcset")),null!=i[n].getAttribute("data-src")&&i[n].setAttribute("src",i[n].getAttribute("data-src")),i[n].classList.add(this.loadedClass));else t[e].classList.add(this.loadedClass)}},t.prototype.hoverLazy=function(t){var e=t.target.querySelectorAll("img:not(."+this.loadedClass+")");if(e.length>0)for(var i in e)e[i]instanceof HTMLElement&&!e[i].classList.contains("."+this.loadedClass)&&(null!=e[i].getAttribute("data-srcset")&&e[i].setAttribute("srcset",e[i].getAttribute("data-srcset")),null!=e[i].getAttribute("data-src")&&e[i].setAttribute("src",e[i].getAttribute("data-src")),e[i].classList.add(this.loadedClass))},t}();e.ImageLazyLoad=n}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.