PageSourceSearch

https://evystree.com/s/files/1/0279/6295/t/34/assets/jquery.imagesloaded_v-152185615114068459041576705494.js

js evystree.com collected 2026-10-03 21:01:05 UTC 6,299 bytes, 20 lines download raw bytes

1/*!
2 * imagesLoaded PACKAGED v3.0.1
3 * JavaScript is all like "You images are done yet or what?"
4 *//*!
5 * Slightly modded by WB for this theme - needed IE7 compatibility.
6 *//*!
7 * EventEmitter v4.1.0 - git.io/ee
8 * Oliver Caldwell
9 * MIT license
10 * @preserve
11 */(function(d){"use strict";function c(){}var o=c.prototype,p=!!Array.prototype.indexOf;function m(n,e){if(p)return e.indexOf(n);for(var t=e.length;t--;)if(e[t]===n)return t;return-1}o._getEvents=function(){return this._events||(this._events={})},o.getListeners=function(n){var e=this._getEvents(),t,i;if(typeof n=="object"){t={};for(i in e)e.hasOwnProperty(i)&&n.test(i)&&(t[i]=e[i])}else t=e[n]||(e[n]=[]);return t},o.getListenersAsObject=function(n){var e=this.getListeners(n),t;return e instanceof Array&&(t={},t[n]=e),t||e},o.addListener=function(n,e){var t=this.getListenersAsObject(n),i;for(i in t)t.hasOwnProperty(i)&&m(e,t[i])===-1&&t[i].push(e);return this},o.on=o.addListener,o.defineEvent=function(n){return this.getListeners(n),this},o.defineEvents=function(n){for(var e=0;e<n.length;e+=1)this.defineEvent(n[e]);return this},o.removeListener=function(n,e){var t=this.getListenersAsObject(n),i,s;for(s in t)t.hasOwnProperty(s)&&(i=m(e,t[s]),i!==-1&&t[s].splice(i,1));return this},o.off=o.removeListener,o.addListeners=function(n,e){return this.manipulateListeners(!1,n,e)},o.removeListeners=function(n,e){return this.manipulateListeners(!0,n,e)},o.manipulateListeners=function(n,e,t){var i,s,h=n?this.removeListener:this.addListener,a=n?this.removeListeners:this.addListeners;if(typeof e=="object"&&!(e instanceof RegExp))for(i in e)e.hasOwnProperty(i)&&(s=e[i])&&(typeof s=="function"?h.call(this,i,s):a.call(this,i,s));else for(i=t.length;i--;)h.call(this,e,t[i]);return this},o.removeEvent=function(n){var e=typeof n,t=this._getEvents(),i;if(e==="string")delete t[n];else if(e==="object")for(i in t)t.hasOwnProperty(i)&&n.test(i)&&delete t[i];else delete this._events;return this},o.emitEvent=function(n,e){var t=this.getListenersAsObject(n),i,s,h;for(s in t)if(t.hasOwnProperty(s))for(i=t[s].length;i--;)h=e?t[s][i].apply(null,e):t[s][i](),h===!0&&this.removeListener(n,t[s][i]);return this},o.trigger=o.emitEvent,o.emit=function(n){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,e)},typeof define=="function"&&define.amd?define(function(){return c}):d.EventEmitter=c})(this);/*!
12 * eventie v1.0.3
13 * event binding helper
14 *   eventie.bind( elem, 'click', myFn )
15 *   eventie.unbind( elem, 'click', myFn )
16 */(function(d){"use strict";var c=document.documentElement,o=function(){};c.addEventListener?o=function(n,e,t){n.addEventListener(e,t,!1)}:c.attachEvent&&(o=function(n,e,t){n[e+t]=t.handleEvent?function(){var i=d.event;i.target=i.target||i.srcElement,t.handleEvent.call(t,i)}:function(){var i=d.event;i.target=i.target||i.srcElement,t.call(n,i)},n.attachEvent("on"+e,n[e+t])});var p=function(){};c.removeEventListener?p=function(n,e,t){n.removeEventListener(e,t,!1)}:c.detachEvent&&(p=function(n,e,t){n.detachEvent("on"+e,n[e+t]);try{delete n[e+t]}catch(i){n[e+t]=void 0}});var m={bind:o,unbind:p};typeof define=="function"&&define.amd?define(m):d.eventie=m})(this);/*!
17 * imagesLoaded v3.0.1
18 * JavaScript is all like "You images are done yet or what?"
19 */(function(d){"use strict";var c=d.jQuery,o=d.console,p=typeof o!="undefined";function m(s,h){for(var a in h)s[a]=h[a];return s}var n=Object.prototype.toString;function e(s){return n.call(s)==="[object Array]"}function t(s){var h=[];if(e(s))h=s;else if(typeof s.length=="number")for(var a=0,y=s.length;a<y;a++)h.push(s[a]);else h.push(s);return h}function i(s,h){function a(r,f,u){if(!(this instanceof a))return new a(r,f);typeof r=="string"&&(r=c(r)),this.elements=t(r),this.options=m({},this.options),typeof f=="function"?u=f:m(this.options,f),u&&this.on("always",u),this.getImages(),c&&(this.jqDeferred=new c.Deferred);var g=this;setTimeout(function(){g.check()})}a.prototype=new s,a.prototype.options={},a.prototype.getImages=function(){this.images=[];for(var r=0,f=this.elements.length;r<f;r++){var u=this.elements[r];u.nodeName==="IMG"&&this.addImage(u);for(var g=c(u).find("img"),v=0,L=g.length;v<L;v++){var E=g[v];this.addImage(E)}}},a.prototype.addImage=function(r){var f=new l(r);this.images.push(f)},a.prototype.check=function(){var r=this,f=0,u=this.images.length;this.hasAnyBroken=!1;function g(E,k){return r.options.debug&&p&&o.log("confirm",E,k),r.progress(E),f++,f===u&&r.complete(),!0}for(var v=0;v<u;v++){var L=this.images[v];L.on("confirm",g),L.check()}},a.prototype.progress=function(r){this.hasAnyBroken=this.hasAnyBroken||!r.isLoaded,this.emit
19("progress",this,r),this.jqDeferred&&this.jqDeferred.notify(this,r)},a.prototype.complete=function(){var r=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emit(r,this),this.emit("always",this),this.jqDeferred){var f=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[f](this)}},c&&(c.fn.imagesLoaded=function(r,f){var u=new a(this,r,f);return u.jqDeferred.promise(c(this))});var y={};function l(r){this.img=r}return l.prototype=new s,l.prototype.check=function(){var r=y[this.img.src];if(r){this.useCached(r);return}if(y[this.img.src]=this,this.img.complete&&this.img.naturalWidth!==void 0){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}var f=this.proxyImage=new Image;h.bind(f,"load",this),h.bind(f,"error",this),f.src=this.img.src},l.prototype.useCached=function(r){if(r.isConfirmed)this.confirm(r.isLoaded,"cached was confirmed");else{var f=this;r.on("confirm",function(u){return f.confirm(u.isLoaded,"cache emitted confirmed"),!0})}},l.prototype.confirm=function(r,f){this.isConfirmed=!0,this.isLoaded=r,this.emit("confirm",this,f)},l.prototype.handleEvent=function(r){var f="on"+r.type;this[f]&&this[f](r)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindProxyEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindProxyEvents()},l.prototype.unbindProxyEvents=function(){h.unbind(this.proxyImage,"load",this),h.unbind(this.proxyImage,"error",this)},a}typeof define=="function"&&define.amd?define(["eventEmitter","eventie"],i):d.imagesLoaded=i(d.EventEmitter,d.eventie)})(window);
20//# sourceMappingURL=/s/files/1/0279/6295/t/34/assets/jquery.imagesloaded.js.map?v=152185615114068459041576705494

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.