8 lines
24 KiB
JavaScript
8 lines
24 KiB
JavaScript
|
/*!
|
||
|
* Masonry PACKAGED v4.2.2
|
||
|
* Cascading grid layout library
|
||
|
* https://masonry.desandro.com
|
||
|
* MIT License
|
||
|
* by David DeSandro
|
||
|
*/(function(d,c){typeof define=="function"&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(l){return c(d,l)}):typeof module=="object"&&module.exports?module.exports=c(d,require("jquery")):d.jQueryBridget=c(d,d.jQuery)})(window,function(d,c){"use strict";function l(u,v,p){function f(g,n,o){var t,e="$()."+u+'("'+n+'")';return g.each(function(r,m){var _=p.data(m,u);if(!_)return void s(u+" not initialized. Cannot call methods, i.e. "+e);var z=_[n];if(!z||n.charAt(0)=="_")return void s(e+" is not a valid method");var E=z.apply(_,o);t=t===void 0?E:t}),t!==void 0?t:g}function y(g,n){g.each(function(o,t){var e=p.data(t,u);e?(e.option(n),e._init()):(e=new v(t,n),p.data(t,u,e))})}p=p||c||d.jQuery,p&&(v.prototype.option||(v.prototype.option=function(g){p.isPlainObject(g)&&(this.options=p.extend(!0,this.options,g))}),p.fn[u]=function(g){if(typeof g=="string"){var n=a.call(arguments,1);return f(this,g,n)}return y(this,g),this},h(p))}function h(u){!u||u&&u.bridget||(u.bridget=l)}var a=Array.prototype.slice,i=d.console,s=typeof i=="undefined"?function(){}:function(u){i.error(u)};return h(c||d.jQuery),l}),function(d,c){typeof define=="function"&&define.amd?define("ev-emitter/ev-emitter",c):typeof module=="object"&&module.exports?module.exports=c():d.EvEmitter=c()}(typeof window!="undefined"?window:this,function(){function d(){}var c=d.prototype;return c.on=function(l,h){if(l&&h){var a=this._events=this._events||{},i=a[l]=a[l]||[];return i.indexOf(h)==-1&&i.push(h),this}},c.once=function(l,h){if(l&&h){this.on(l,h);var a=this._onceEvents=this._onceEvents||{},i=a[l]=a[l]||{};return i[h]=!0,this}},c.off=function(l,h){var a=this._events&&this._events[l];if(a&&a.length){var i=a.indexOf(h);return i!=-1&&a.splice(i,1),this}},c.emitEvent=function(l,h){var a=this._events&&this._events[l];if(a&&a.length){a=a.slice(0),h=h||[];for(var i=this._onceEvents&&this._onceEvents[l],s=0;s<a.length;s++){var u=a[s],v=i&&i[u];v&&(this.off(l,u),delete i[u]),u.apply(this,h)}return this}},c.allOff=function(){delete this._events,delete this._onceEvents},d}),function(d,c){typeof define=="function"&&define.amd?define("get-size/get-size",c):typeof module=="object"&&module.exports?module.exports=c():d.getSize=c()}(window,function(){"use strict";function d(y){var g=parseFloat(y),n=y.indexOf("%")==-1&&!isNaN(g);return n&&g}function c(){}function l(){for(var y={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},g=0;p>g;g++){var n=v[g];y[n]=0}return y}function h(y){var g=getComputedStyle(y);return g||u("Style returned "+g+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),g}function a(){if(!f){f=!0;var y=document.createElement("div");y.style.width="200px",y.style.padding="1px 2px 3px 4px",y.style.borderStyle="solid",y.style.borderWidth="1px 2px 3px 4px",y.style.boxSizing="border-box";var g=document.body||document.documentElement;g.appendChild(y);var n=h(y);s=Math.round(d(n.width))==200,i.isBoxSizeOuter=s,g.removeChild(y)}}function i(y){if(a(),typeof y=="string"&&(y=document.querySelector(y)),y&&typeof y=="object"&&y.nodeType){var g=h(y);if(g.display=="none")return l();var n={};n.width=y.offsetWidth,n.height=y.offsetHeight;for(var o=n.isBorderBox=g.boxSizing=="border-box",t=0;p>t;t++){var e=v[t],r=g[e],m=parseFloat(r);n[e]=isNaN(m)?0:m}var _=n.paddingLeft+n.paddingRight,z=n.paddingTop+n.paddingBottom,E=n.marginLeft+n.marginRight,b=n.marginTop+n.marginBottom,x=n.borderLeftWidth+n.borderRightWidth,T=n.borderTopWidth+n.borderBottomWidth,I=o&&s,W=d(g.width);W!==!1&&(n.width=W+(I?0:_+x));var S=d(g.height);return S!==!1&&(n.height=S+(I?0:z+T)),n.innerWidth=n.width-(_+x),n.innerHeight=n.height-(z+T),n.outerWidth=n.width+E,n.outerHeight=n.height+b,n}}var s,u=typeof console=="undefined"?c:function(y){console.error(y)},v=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],p=v.length,f=!1;return i}),function(d,c){"use strict";typeof define=="function"&&define.amd?d
|