PageSourceSearch

http://www.miloliza.com/plugins/system/jslazyloading/assets/js/jslazyloading_v3.3.min.js

js miloliza.com collected 2026-10-02 11:00:42 UTC 9,547 bytes, 25 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opens = _____WB$wombat$assign$function_____("opens");
10
11/** JSLazyLoading extension for Joomla!
12---------------------------------------------------------------
13 Copyright (C) 2015 Philip Sorokin. All rights reserved.
14 Website: https://addondev.com
15 GitHub: https://github.com/philip-sorokin
16 Developer: Philip Sorokin
17 Location: Russia, Moscow
18 E-mail: [email protected]
19 Created: June 2015
20 License: GNU GPLv2 http://www.gnu.org/licenses/gpl-2.0.html
21---------------------------------------------------------------- */
22
23function JSLazyLoading(t,e){"use strict";e=e||"";var n={dataAttribute:"data-src",multiServing:!1,multiServingType:"width",multiServingBreakpoints:{"data-src-extra-small":"220px","data-src-small":"420px","data-src-medium":"768px","data-retina2x":"192dpi"},clientSideExclusion:null,sequentialLoading:null,loaderImage:"plugins/system/jslazyloading/assets/img/loader.gif",backgroundColor:null,fadeInEffect:!1,fadeInDuration:400,dynamicMode:!1,softMode:!1,ajaxListener:!1,topBorder:!1,rangeY:0,rangeX:0};if("object"==typeof t)for(var i in t)n[i]="string"!=typeof t[i]?t[i]:Number(t[i])||t[i];this.started;var r,o,a,s,l,u,f,c,d,g=window,p=g.document,m=p.documentElement,h=0,v="width",y="height",b="";if(f=navigator.userAgent.match(/(Chrome)|(?:(MSIE)|(iP(?:hone|od|ad).+?OS)) (\d+)/))if(f[1])var S=!0;else if(f[2])var x=f[4]<9,E=f[4]<8;else if(f[3])var j=f[4]<5;function L(t){g.console&&"function"==typeof console.log&&console.log(t)}function T(t,e){for(var i,r=0,o=(e=e||n.dataAttribute,p.images),a=o.length;r<a;r++)(i=o[r].getAttribute(e))&&t(o[r],r,i)}function A(t,e,n){n&&"string"==typeof t&&(t=[t]);for(var i=0,r=t.length;i<r;i++)t[i]&&e(t[i],i)}if(x){var C=function(t,e,n){t.attachEvent("on"+e,n)},w=function(t,e,n){t.detachEvent("on"+e,n)};E&&(v="data-width",y="data-height")}else C=function(t,e,n){t.addEventListener(e,n,!1)},w=function(t,e,n){t.removeEventListener(e,n,!1)};if(!m.getBoundingClientRect||j)var I=function(){return{top:g.pageYOffset||m.scrollTop||p.body.scrollTop,left:g.pageXOffset||m.scrollLeft||p.body.scrollLeft}},k=function(t,e){var i=0,r=0,o=t.offsetWidth,a=t.offsetHeight;do{i+=t.offsetTop||0,r+=t.offsetLeft||0}while(t=t.offsetParent);var s=r+o,l=i+a;if(!n.topBorder||l>=e.top-n.rangeY)return n.dynamicMode&&(i+r+l+s==0||r>c+e.left+n.rangeX||s<e.left-n.rangeX)?null:i<=d+e.top},B=function(t){var e=m.clientTop||p.body.clientTop,n=m.clientLeft||p.body.clientLeft;do{e+=t.offsetTop||0,n+=t.offsetLeft||0}while(t=t.offsetParent);return{top:e,left:n}};else k=function(t){var e=t.getBoundingClientRect();if(!n.topBorder||e.bottom>=0-n.rangeY)return n.dynamicMode&&(e.top+e.left+e.bottom+e.right==0||getComputedStyle&&"hidden"==getComputedStyle(t,"").visibility||e.left>c+n.rangeX||e.right<0-n.rangeX)?null:e.top<=d+n.rangeY},B=function(t){return t.getBoundingClientRect()};var N=function(t){return t.getAttribute(n.dataAttribute)};if(n.multiServing&&n.multiServingBreakpoints instanceof Object){n.multiServing="boolean"==typeof n.multiServing?"manual":n.multiServing.toLowerCase();var M=function(t){var e,i=new Array;for(var r in n.multiServingBreakpoints)(e=t(r,n.multiServingBreakpoints[r].toLowerCase()))&&i.push(e);if(i.length){i.sort(function(t,e){return t.value-e.value});for(var o=0;o<i.length;o++)z[o]=Math.abs(i[o].value),i[o]=i[o].name,"manual"!==n.multiServing&&(i[o]=i[o].substr(1))}return i},z=new Array,H=g.matchMedia&&g.matchMedia("(min-resolution: 1dpi)").matches,P="density"===n.multiServingType.toLowerCase()?M(function(t,e){if("string"==typeof e&&"dpi"===e.substr(-3)&&(delete n.multiServingBreakpoints[t],e=parseInt(e),H&&g.matchMedia("(min-resolution: "+e+"dpi)").matches||!H&&g.devicePixelRatio>=e/96))return{name:t,value:-e}}):M(function(t,e){var n=parseInt(e);if("string"==typeof e&&"px"===e.substr(-2)&&screen.width<=n)return{name:t,value:n}})}if(n.fadeInEffect){var W=function(){for(var t=0;t<arguments.length;t++)if(arguments[t]in m.style)return arguments[t]}("transition","-webkit-transition","-moz-transition","-o-transition");if(W&&("desktop"!==n.fadeInEffect||!("ontouchstart"in g||"onmsgesturechange"in g)||g.screen.width>768)){if(S){var R=p.createElement("style");
23R.type="text/css",R.appendChild(p.createTextNode("img {-webkit-transform: translateZ(0)}")),p.getElementsByTagName("head")[0].appendChild(R)}}else n.fadeInEffect=!1}n.backgroundColor&&(b+="; background-color: "+n.backgroundColor+" !important"),n.loaderImage&&(b+="; background-image: url('"+e+"/"+n.loaderImage+"') !important; background-position: center center; background-repeat: no-repeat !important; background-size: auto !important");var X=n.softMode?function(t){var e=t.getAttribute(v),n=t.getAttribute(y);e&&n&&(t.jsllProportion=e/n),t.jsllCSSText=t.getAttribute("style")||"",t.style.cssText+=b+"; height: "+t.offsetWidth/t.jsllProportion+"px"}:!!b&&function(t){t.jsllCSSText=t.getAttribute("style")||"",t.style.cssText+="; "+b};function Y(){var t=c,e=d;return c=g.innerWidth||m.clientWidth||p.body.clientWidth,d=g.innerHeight||m.clientHeight||p.body.clientHeight,t!==c||e!==d}function J(){Y()&&(n.softMode&&A(r,function(t){t.jsllProportion&&t.offsetWidth&&(t.style.height=t.offsetWidth/t.jsllProportion+"px")}),O()),G()}function O(){try{r.sort(function(t,e){var n=B(t),i=B(e);return n.top===i.top?n.left-i.left:n.top-i.top})}catch(t){L(t)}}function q(t,e){var i=N(t);if(i){void 0===e&&(e=n.fadeInEffect),t.removeAttribute(n.dataAttribute);var r=t.jsllCSSText+"; ";if(e){var o=t.cloneNode(),a=function(){A(["load","error"],function(e){w(t,e,a)});var e=getComputedStyle(o,"").opacity,i=1*n.fadeInDuration/e;t.style.cssText=r+"opacity: 0 !important; ",o.parentNode.replaceChild(t,o),setTimeout(function(){t.style.cssText=r+W+": opacity "+i+"ms ease-in !important; opacity: "+e+" !important; ",setTimeout(function(){t.style.cssText=r},i+100)},16)};t.parentNode.replaceChild(o,t)}else b&&(a=function(){A(["load","error"],function(e){w(t,e,a)}),t.style.cssText=r});a&&(t.style.display&&(r+="display: "+t.style.display+"; "),t.style.visibility&&(r+="visibility: "+t.style.visibility+"; "),A(["load","error"],function(e){C(t,e,a)})),t.src=i,h--}}function $(t,e){return q(r[t],e),delete r[t]}function D(t){if(I)var e=I();return A(o,function(n,i){(t||k(n,e))&&(n.removeAttribute("data-jsll-nobackground"),delete o[i])}),e}function G(){if(!u){u=!0;var t=D();A(r,function(e,n){if(!e.jsllHidden){var i=k(e,t);null===i?(e.jsllHidden=!0,a||(a=setInterval(function(){var t=!1;if(I)var e=I();A(r,function(n,i){if(n.jsllHidden){t=!0;var r=k(n,e);r?$(i):!1===r&&(n.jsllHidden=!1)}}),t||(a=clearInterval(a))},333))):i&&$(n)}}),u=!1}}function Z(){clearTimeout(s),function(t,e){try{for(var n=0,i=t.length;n<i;n++)if(t[n]&&e(t[n],n))return!0}catch(t){L(t)}}(r,function(t,e){return A(["load","error"],function(e){C(t,e,function(){s=setTimeout(Z,n.sequentialLoading)})}),$(e,!1)})}function F(t,e,i,r){var o,a=t.substr(0,1),s=t.substr(1);if("#"===a)r=p.getElementById(s);else"."===a&&(r=p.getElementsByClassName?p.getElementsByClassName(s):(o=new Array,A(p.getElementsByTagName("*"),function(t){t.className&&new RegExp("(^|\\s+)"+s+"($|\\s+)").test(t.className)&&o.push(t)}),o));r&&A(void 0!==r.length?r:[r],function(t){A("IMG"===t.tagName?[t]:t.getElementsByTagName("img"),function(t){q(t,n.fadeInEffect)})})}this.refresh=function(){if(this.started){if(r=new Array,o=new Array,P&&P.length)if("manual"!==n.multiServing){var t=new Array,i=new Array,a="analogues="+P.join("+")+"&srcp="+z.join("+"),s=new RegExp("^(?:(?:https?:)?//"+location.host+"/+|/+)([^?]+?\\.[a-zA-Z]+)$","gm"),l="php"===n.multiServing?"handler.php":"server";T(function(e,n,r){t.push(r),i.push(e)}),t.length&&(t=t.join("\n").replace(s,e+"/plugins/system/jslazyloading/mirror/"+l+"/$1?"+a).split("\n"),A(i,function(e,i){e.setAttribute(n.dataAttribute,t[i])}))}else T(function(t,e,i){t.setAttribute(n.dataAttribute,i)},P[0]);Y();var u=p.getElementById("jsll-nobackground");u&&(!function(t){for(var e=0,n=p.body.getElementsByTagName("*"),i=n.length;e<i;e++)"IMG"!==n[e].tagName&&n[e].offsetWidth&&t(n[e],e)}(function(t,e){t.setAttribute("data-jsll-nobackground",""),o.push(t)}),u.parentNode.removeChild(u)),T(function(t){r.push(t),X&&!t.jsllCSSText&&X(t)}),h=r.length,"number"==typeof n.sequentialLoading&&Z(),"complete"!==p.readyState?(C(g,"load",O),C(g,"load",G)):O(),G()}return!0},this.abort=function(){return this.started=!1,w(g,"scroll",G),w(g,"resize",J),l&&(JSLazyLoading.ajaxListenerEnabled=clearInterval(l)),a&&(a=clearInterval(a)),A(r,function(t,e){$(e,!1)}),D(!0),!0},this.start=function(){if(!this.started)if(this.started=!0,g.operamini)this.refresh(),this.abort();else if(n.clientSideExclusion&&A(n.clientSideExclusion,F,!0),this.refresh(),C(g,"scroll",G),C(g,"resize",J),n.ajaxListener&&!JSLazyLoading.ajaxListenerEnabled){JSLazyLoading.ajaxListenerEnabled=!0;var t=this;l=setInterval(function(){var e=0;T(function(t){e++}),e!==h&&t.refresh()},333)}return!0},this.start()}
24
25}

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.