Browse Source

Merge branch 'gh-pages' of github.com:desandro/isotope into gh-pages

v1
David DeSandro 14 years ago
parent
commit
94c9c0368c
  1. 76
      _layouts/elements.html
  2. 11
      _posts/demos/2010-12-29-layout-modes.html
  3. 11
      _posts/demos/2010-12-30-filtering.html
  4. 12
      _posts/demos/2010-12-30-sorting.html
  5. 33
      _posts/demos/2010-12-31-relayout.html
  6. 8
      _posts/demos/2011-01-02-adding-items.html
  7. 31
      _posts/docs/2010-12-04-methods.mdown
  8. 4
      _posts/docs/2010-12-07-sorting.mdown
  9. 34
      index.html
  10. 35
      jquery.isotope.js
  11. 60
      jquery.isotope.min.js

76
_layouts/elements.html

@ -51,10 +51,45 @@
<script src="../js/fake-element.js"></script> <script src="../js/fake-element.js"></script>
<script> <script>
var $container = $('#container');
$(function(){ $('#filters').find('a').click(function(){
// get href attribute, minus the #, plus a . to make it a class
var filterName = '.' + $(this).attr('href').slice(1);
filterName = filterName === '.show-all' ? '*' : filterName;
$container.isotope({ filter: filterName })
return false;
});
{% include sort-buttons.js %}
// change size of clicked element
$container.find('.element').live('click', function(){
$(this).toggleClass('large');
$container.isotope('reLayout');
});
// toggle variable sizes of all elements
$('#toggle-sizes').find('a').click(function(){
$container
.toggleClass('variable-sizes')
.isotope('reLayout');
return false;
});
{% include layout-change.js %}
{% include add-buttons.js %}
$('#shuffle a').click(function(){
$container.isotope('shuffle');
return false;
});
{% include option-buttons.js %}
var $container = $('#container');
$(function(){
// hacky way of adding random size classes // hacky way of adding random size classes
$container.find('.element').each(function(){ $container.find('.element').each(function(){
@ -97,7 +132,7 @@
return parseInt( $elem.find('.number').text(), 10 ); return parseInt( $elem.find('.number').text(), 10 );
}, },
weight : function( $elem ) { weight : function( $elem ) {
return parseInt( $elem.find('.weight').text().replace( /[\(\)]/g, ''), 10 ); return parseFloat( $elem.find('.weight').text().replace( /[\(\)]/g, '') );
}, },
name : function ( $elem ) { name : function ( $elem ) {
return $elem.find('.name').text(); return $elem.find('.name').text();
@ -106,41 +141,6 @@
}); });
$('#filters').find('a').click(function(){
// get href attribute, minus the #, plus a . to make it a class
var filterName = '.' + $(this).attr('href').slice(1);
filterName = filterName === '.show-all' ? '*' : filterName;
$container.isotope({ filter: filterName })
return false;
});
{% include sort-buttons.js %}
// change size of clicked element
$container.find('.element').live('click', function(){
$(this).toggleClass('large');
$container.isotope('reLayout');
});
// toggle variable sizes of all elements
$('#toggle-sizes').find('a').click(function(){
$container
.toggleClass('variable-sizes')
.isotope('reLayout');
return false;
});
{% include layout-change.js %}
{% include add-buttons.js %}
$('#shuffle a').click(function(){
$container.isotope('shuffle');
return false;
});
{% include option-buttons.js %}
}); });
</script> </script>

11
_posts/demos/2010-12-29-layout-modes.html

@ -25,10 +25,15 @@ related: layouts
<script src="../js/jquery-1.4.4.min.js"></script> <script src="../js/jquery-1.4.4.min.js"></script>
<script src="../{{ site.isotope_js }}"></script> <script src="../{{ site.isotope_js }}"></script>
<script> <script>
$(function(){
var $container = $('#container'); var $container = $('#container');
{% include layout-change.js %}
{% include option-buttons.js %}
$(function(){
// hacky way of adding random size classes // hacky way of adding random size classes
$container.find('.element').each(function(){ $container.find('.element').each(function(){
if ( Math.random() > 0.6 ) { if ( Math.random() > 0.6 ) {
@ -57,10 +62,6 @@ related: layouts
} }
}); });
{% include layout-change.js %}
{% include option-buttons.js %}
}); });
</script> </script>

11
_posts/demos/2010-12-30-filtering.html

@ -39,14 +39,9 @@ related: filtering
<script src="../js/jquery-1.4.4.min.js"></script> <script src="../js/jquery-1.4.4.min.js"></script>
<script src="../{{ site.isotope_js }}"></script> <script src="../{{ site.isotope_js }}"></script>
<script> <script>
$(function(){
var $container = $('#container'); var $container = $('#container');
$container.isotope({
itemSelector : '.element'
});
// filter buttons // filter buttons
$('#filters a').click(function(){ $('#filters a').click(function(){
var selector = $(this).attr('data-filter'); var selector = $(this).attr('data-filter');
@ -56,6 +51,12 @@ related: filtering
{% include option-buttons.js %} {% include option-buttons.js %}
$(function(){
$container.isotope({
itemSelector : '.element'
});
}); });
</script> </script>

12
_posts/demos/2010-12-30-sorting.html

@ -26,10 +26,14 @@ related: sorting
<script src="../js/jquery-1.4.4.min.js"></script> <script src="../js/jquery-1.4.4.min.js"></script>
<script src="../{{ site.isotope_js }}"></script> <script src="../{{ site.isotope_js }}"></script>
<script> <script>
$(function(){
var $container = $('#container'); var $container = $('#container');
{% include sort-buttons.js %}
{% include option-buttons.js %}
$(function(){
$container.isotope({ $container.isotope({
itemSelector : '.element', itemSelector : '.element',
@ -44,7 +48,7 @@ related: sorting
return parseInt( $elem.find('.number').text(), 10 ); return parseInt( $elem.find('.number').text(), 10 );
}, },
weight : function( $elem ) { weight : function( $elem ) {
return parseInt( $elem.find('.weight').text().replace( /[\(\)]/g, ''), 10 ); return parseFloat( $elem.find('.weight').text().replace( /[\(\)]/g, '') );
}, },
name : function ( $elem ) { name : function ( $elem ) {
return $elem.find('.name').text(); return $elem.find('.name').text();
@ -52,9 +56,5 @@ related: sorting
} }
}); });
{% include sort-buttons.js %}
{% include option-buttons.js %}
}); });
</script> </script>

33
_posts/demos/2010-12-31-relayout.html

@ -25,10 +25,26 @@ related: methods
<script src="../js/jquery-1.4.4.min.js"></script> <script src="../js/jquery-1.4.4.min.js"></script>
<script src="../{{ site.isotope_js }}"></script> <script src="../{{ site.isotope_js }}"></script>
<script> <script>
$(function(){
var $container = $('#container'); var $container = $('#container');
// toggle variable sizes of all elements
$('#toggle-sizes a').click(function(){
$container
.toggleClass('variable-sizes')
.isotope('reLayout');
return false;
});
// change size of clicked element
$container.find('.element').live('click', function(){
$(this).toggleClass('large');
$container.isotope('reLayout');
});
$(function(){
// hacky way of adding random size classes // hacky way of adding random size classes
$container.find('.element').each(function(){ $container.find('.element').each(function(){
if ( Math.random() > 0.6 ) { if ( Math.random() > 0.6 ) {
@ -46,21 +62,6 @@ related: methods
} }
}); });
// toggle variable sizes of all elements
$('#toggle-sizes a').click(function(){
$container
.toggleClass('variable-sizes')
.isotope('reLayout');
return false;
});
// change size of clicked element
$container.find('.element').live('click', function(){
$(this).toggleClass('large');
$container.isotope('reLayout');
});
}); });
</script> </script>

8
_posts/demos/2011-01-02-adding-items.html

@ -29,10 +29,13 @@ related: methods
<script src="../{{ site.isotope_js }}"></script> <script src="../{{ site.isotope_js }}"></script>
<script src="../js/fake-element.js"></script> <script src="../js/fake-element.js"></script>
<script> <script>
$(function(){
var $container = $('#container'); var $container = $('#container');
{% include add-buttons.js %}
$(function(){
$container.isotope({ $container.isotope({
itemSelector : '.element', itemSelector : '.element',
getSortData : { getSortData : {
@ -43,8 +46,5 @@ related: methods
sortBy : 'symbol' sortBy : 'symbol'
}); });
{% include add-buttons.js %}
}); });
</script> </script>

31
_posts/docs/2010-12-04-methods.mdown

@ -13,6 +13,7 @@ toc:
- { title: option, anchor: option } - { title: option, anchor: option }
- { title: reLayout, anchor: relayout } - { title: reLayout, anchor: relayout }
- { title: remove, anchor: remove } - { title: remove, anchor: remove }
- { title: updateSortData, anchor: updatesortdata }
--- ---
@ -28,11 +29,11 @@ $('#container').isotope( 'methodName', [optionalParameters] )
{% highlight javascript %} {% highlight javascript %}
.isotope( 'addItems', $content, callback ) .isotope( 'addItems', $items, callback )
{% endhighlight %} {% endhighlight %}
Adds elements to the pool of item elements of the container, but does sort, filter or layout. See [Adding items](adding-items.html) for more details. The argument within the callback is the group of elements that were added. Adds item elements to the pool of item elements of the container, but does sort, filter or layout. See [Adding items](adding-items.html) for more details. The argument within the callback is the group of elements that were added.
[**See Demo: Adding items**](../demos/adding-items.html) [**See Demo: Adding items**](../demos/adding-items.html)
@ -40,11 +41,11 @@ Adds elements to the pool of item elements of the container, but does sort, filt
{% highlight javascript %} {% highlight javascript %}
.isotope( 'appended', $content, callback ) .isotope( 'appended', $items, callback )
{% endhighlight %} {% endhighlight %}
Adds elements via `addItems` method, then triggers `layout` just for those new elements. Useful for Infinite Scroll. See [Adding items](adding-items.html) for more details. Adds item elements via `addItems` method, then triggers `layout` just for those new elements. Useful for Infinite Scroll. See [Adding items](adding-items.html) for more details.
[**See Demo: Adding items**](../demos/adding-items.html) [**See Demo: Adding items**](../demos/adding-items.html)
@ -62,11 +63,11 @@ Removes Isotope functionality completely. Returns element back to pre-init state
{% highlight javascript %} {% highlight javascript %}
.isotope( 'insert', $content, callback ) .isotope( 'insert', $items, callback )
{% endhighlight %} {% endhighlight %}
Appends elements to container, adds items to via `addItems` method, and then triggers `reLayout` method so new elements are properly filtered, sorted and laid-out. See [Adding items](adding-items.html) for more details. Appends items elements to container, adds items to via `addItems` method, and then triggers `reLayout` method so new elements are properly filtered, sorted and laid-out. See [Adding items](adding-items.html) for more details.
[**See Demo: Adding items**](../demos/adding-items.html). [**See Demo: Adding items**](../demos/adding-items.html).
@ -74,11 +75,11 @@ Appends elements to container, adds items to via `addItems` method, and then tri
{% highlight javascript %} {% highlight javascript %}
.isotope( 'layout', $content, callback ) .isotope( 'layout', $items, callback )
{% endhighlight %} {% endhighlight %}
Positions specified elements in layout. Positions specified item elements in layout.
`layout` will only position specified elements, and those elements will be positioned at the end of layout. Whereas `reLayout` will position all elements in the Isotope widget. `layout` will only position specified elements, and those elements will be positioned at the end of layout. Whereas `reLayout` will position all elements in the Isotope widget.
@ -108,8 +109,18 @@ Resets layout properties and lays-out every item element.
{% highlight javascript %} {% highlight javascript %}
.isotope( 'remove', $content ) .isotope( 'remove', $items )
{% endhighlight %} {% endhighlight %}
Removes specified elements from Isotope widget and the DOM. Removes specified item elements from Isotope widget and the DOM.
## updateSortData
{% highlight javascript %}
.isotope( 'updateSortData', $items )
{% endhighlight %}
Updates the sorting data on specified item elements. This method is useful if the data within an item is changed dynamically after Isotope has been initialized.

4
_posts/docs/2010-12-07-sorting.mdown

@ -66,7 +66,7 @@ $('#container').isotope({
{% endhighlight %} {% endhighlight %}
For numerical data, we can convert a text value into a number via `parseInt()` function. For numerical data, we can convert a text value into a number with `parseInt()` or `parseFloat()`.
{% highlight javascript %} {% highlight javascript %}
@ -76,7 +76,7 @@ getSortData : {
return parseInt( $elem.find('.name').text(), 10 ); return parseInt( $elem.find('.name').text(), 10 );
}, },
weight : function ( $elem ) { weight : function ( $elem ) {
return parseInt( $elem.find('.weight').text(), 10 ); return parseFloat( $elem.find('.weight').text() );
} }
} }

34
index.html

@ -97,25 +97,9 @@ layout: nil
<script src="js/jquery-1.4.4.min.js"></script> <script src="js/jquery-1.4.4.min.js"></script>
<script src="{{ site.isotope_js }}"></script> <script src="{{ site.isotope_js }}"></script>
<script> <script>
$(function(){
$list = $('#super-list'); $list = $('#super-list');
$list.isotope({
layoutMode : 'fitRows',
masonry : {
columnWidth: 220
},
getSortData : {
related : function( $elem ) {
return $elem.attr('data-related');
},
width : function( $elem ) {
return $elem.width();
}
}
});
$('#filter a').click(function(){ $('#filter a').click(function(){
var filterName = $(this).attr('data-filter'); var filterName = $(this).attr('data-filter');
$list.isotope({ filter : filterName }); $list.isotope({ filter : filterName });
@ -140,6 +124,24 @@ layout: nil
{% include option-buttons.js %} {% include option-buttons.js %}
$(function(){
$list.isotope({
layoutMode : 'fitRows',
masonry : {
columnWidth: 220
},
getSortData : {
related : function( $elem ) {
return $elem.attr('data-related');
},
width : function( $elem ) {
return $elem.width();
}
}
});
}); });
</script> </script>

35
jquery.isotope.js

@ -488,21 +488,7 @@ window.Modernizr = window.Modernizr || (function(window,doc,undefined){
$atoms.css( atomStyle ).addClass( this.options.itemClass ); $atoms.css( atomStyle ).addClass( this.options.itemClass );
var instance = this; this.updateSortData( $atoms, true );
$atoms.each(function(){
var $this = $(this),
sortData = {},
getSortData = instance.options.getSortData,
key;
// get value for sort data based on fn( $elem ) passed in
for ( key in getSortData ) {
sortData[ key ] = getSortData[ key ]( $this, instance );
}
// apply sort data to $element
$this.data( 'isotope-sort-data', sortData );
// increment element count
instance.elemCount ++;
});
}, },
@ -540,6 +526,25 @@ window.Modernizr = window.Modernizr || (function(window,doc,undefined){
// ====================== Sorting ====================== // ====================== Sorting ======================
updateSortData : function( $atoms, isIncrementingElemCount ) {
var instance = this,
getSortData = this.options.getSortData,
key, $this, sortData;
$atoms.each(function(){
$this = $(this);
sortData = {};
// get value for sort data based on fn( $elem ) passed in
for ( key in getSortData ) {
sortData[ key ] = getSortData[ key ]( $this, instance );
}
// apply sort data to $element
$this.data( 'isotope-sort-data', sortData );
if ( isIncrementingElemCount ) {
instance.elemCount ++;
}
});
},
// used on all the filtered atoms // used on all the filtered atoms
_sort : function() { _sort : function() {

60
jquery.isotope.min.js vendored

@ -8,33 +8,33 @@
* *
* Copyright 2011 David DeSandro / Metafizzy * Copyright 2011 David DeSandro / Metafizzy
*/ */
var getStyleProperty=function(){var e=["Moz","Webkit","Khtml","O","Ms"],k={};return function(j,l){l=l||document.documentElement;var a=l.style,b,c,d,f;if(arguments.length===1&&typeof k[j]==="string")return k[j];if(typeof a[j]==="string")return k[j]=j;c=j.charAt(0).toUpperCase()+j.slice(1);d=0;for(f=e.length;d<f;d++){b=e[d]+c;if(typeof a[b]==="string")return k[j]=b}}}(); var getStyleProperty=function(){var f=["Moz","Webkit","Khtml","O","Ms"],k={};return function(j,l){l=l||document.documentElement;var a=l.style,b,c,d,e;if(arguments.length===1&&typeof k[j]==="string")return k[j];if(typeof a[j]==="string")return k[j]=j;c=j.charAt(0).toUpperCase()+j.slice(1);d=0;for(e=f.length;d<e;d++){b=f[d]+c;if(typeof a[b]==="string")return k[j]=b}}}();
window.Modernizr=window.Modernizr||function(e,k){var j={},l=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),a=[],b=document.documentElement,c,d=[{name:"csstransforms",result:function(){return!!getStyleProperty("transform")}},{name:"csstransforms3d",result:function(){var h=!!getStyleProperty("perspective");if(h){var i=document.createElement("style"),m=document.createElement("div");h="@media ("+l.join("transform-3d),(")+"modernizr)";i.textContent=h+"{#modernizr{height:3px}}";(k.head||k.getElementsByTagName("head")[0]).appendChild(i); window.Modernizr=window.Modernizr||function(f,k){var j={},l=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),a=[],b=document.documentElement,c,d=[{name:"csstransforms",result:function(){return!!getStyleProperty("transform")}},{name:"csstransforms3d",result:function(){var h=!!getStyleProperty("perspective");if(h){var i=document.createElement("style"),m=document.createElement("div");h="@media ("+l.join("transform-3d),(")+"modernizr)";i.textContent=h+"{#modernizr{height:3px}}";(k.head||k.getElementsByTagName("head")[0]).appendChild(i);
m.id="modernizr";b.appendChild(m);h=m.offsetHeight===3;i.parentNode.removeChild(i);m.parentNode.removeChild(m)}return!!h}},{name:"csstransitions",result:function(){return!!getStyleProperty("transitionProperty")}}];c=0;for(len=d.length;c<len;c++){var f=d[c],g=f.result();j[f.name]=g;a.push((g?"":"no-")+f.name)}b.className+=" "+a.join(" ");return j}(this,this.document); m.id="modernizr";b.appendChild(m);h=m.offsetHeight===3;i.parentNode.removeChild(i);m.parentNode.removeChild(m)}return!!h}},{name:"csstransitions",result:function(){return!!getStyleProperty("transitionProperty")}}];c=0;for(len=d.length;c<len;c++){var e=d[c],g=e.result();j[e.name]=g;a.push((g?"":"no-")+e.name)}b.className+=" "+a.join(" ");return j}(this,this.document);
(function(e,k){e.isoTransform={transformProp:getStyleProperty("transform"),fnUtils:Modernizr.csstransforms3d?{translate:function(a){return"translate3d("+a[0]+"px, "+a[1]+"px, 0) "},scale:function(a){return"scale3d("+a+", "+a+", 1) "}}:{translate:function(a){return"translate("+a[0]+"px, "+a[1]+"px) "},scale:function(a){return"scale("+a+") "}},set:function(a,b,c){var d=e(a).data("transform")||{},f={},g,h={};f[b]=c;e.extend(d,f);for(g in d)h[g]=(0,e.isoTransform.fnUtils[g])(d[g]);b=(h.translate||"")+ (function(f,k){f.isoTransform={transformProp:getStyleProperty("transform"),fnUtils:Modernizr.csstransforms3d?{translate:function(a){return"translate3d("+a[0]+"px, "+a[1]+"px, 0) "},scale:function(a){return"scale3d("+a+", "+a+", 1) "}}:{translate:function(a){return"translate("+a[0]+"px, "+a[1]+"px) "},scale:function(a){return"scale("+a+") "}},set:function(a,b,c){var d=f(a).data("transform")||{},e={},g,h={};e[b]=c;f.extend(d,e);for(g in d)h[g]=(0,f.isoTransform.fnUtils[g])(d[g]);b=(h.translate||"")+
(h.scale||"");e(a).data("transform",d);a.style[e.isoTransform.transformProp]=b}};e.cssNumber.scale=true;e.cssHooks.scale={set:function(a,b){if(typeof b==="string")b=parseFloat(b);e.isoTransform.set(a,"scale",b)},get:function(a){return(a=e.data(a,"transform"))&&a.scale?a.scale:1}};e.fx.step.scale=function(a){e.cssHooks.scale.set(a.elem,a.now+a.unit)};e.cssNumber.translate=true;e.cssHooks.translate={set:function(a,b){e.isoTransform.set(a,"translate",b)},get:function(a){return(a=e.data(a,"transform"))&& (h.scale||"");f(a).data("transform",d);a.style[f.isoTransform.transformProp]=b}};f.cssNumber.scale=true;f.cssHooks.scale={set:function(a,b){if(typeof b==="string")b=parseFloat(b);f.isoTransform.set(a,"scale",b)},get:function(a){return(a=f.data(a,"transform"))&&a.scale?a.scale:1}};f.fx.step.scale=function(a){f.cssHooks.scale.set(a.elem,a.now+a.unit)};f.cssNumber.translate=true;f.cssHooks.translate={set:function(a,b){f.isoTransform.set(a,"translate",b)},get:function(a){return(a=f.data(a,"transform"))&&
a.translate?a.translate:[0,0]}};var j=e.event,l;j.special.smartresize={setup:function(){e(this).bind("resize",j.special.smartresize.handler)},teardown:function(){e(this).unbind("resize",j.special.smartresize.handler)},handler:function(a,b){var c=this,d=arguments;a.type="smartresize";l&&clearTimeout(l);l=setTimeout(function(){jQuery.event.handle.apply(c,d)},b==="execAsap"?0:100)}};e.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])};e.Isotope=function(a, a.translate?a.translate:[0,0]}};var j=f.event,l;j.special.smartresize={setup:function(){f(this).bind("resize",j.special.smartresize.handler)},teardown:function(){f(this).unbind("resize",j.special.smartresize.handler)},handler:function(a,b){var c=this,d=arguments;a.type="smartresize";l&&clearTimeout(l);l=setTimeout(function(){jQuery.event.handle.apply(c,d)},b==="execAsap"?0:100)}};f.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])};f.Isotope=function(a,
b){this.element=e(b);this._create(a);this._init()};e.Isotope.prototype={options:{resizable:true,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:Modernizr.csstransforms&&!e.browser.opera?{opacity:0,scale:0.0010}:{opacity:0},visibleStyle:Modernizr.csstransforms&&!e.browser.opera?{opacity:1,scale:1}:{opacity:1},animationEngine:e.browser.opera?"jquery":"best-available",animationOptions:{queue:false,duration:800},sortBy:"original-order",sortAscending:true, b){this.element=f(b);this._create(a);this._init()};f.Isotope.prototype={options:{resizable:true,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:Modernizr.csstransforms&&!f.browser.opera?{opacity:0,scale:0.0010}:{opacity:0},visibleStyle:Modernizr.csstransforms&&!f.browser.opera?{opacity:1,scale:1}:{opacity:1},animationEngine:f.browser.opera?"jquery":"best-available",animationOptions:{queue:false,duration:800},sortBy:"original-order",sortAscending:true,
resizesContainer:true},_filterFind:function(a,b){return b?a.filter(b).add(a.find(b)):a},_create:function(a){this.options=e.extend(true,{},this.options,a);this.isNew={};this.styleQueue=[];this.elemCount=0;this.$allAtoms=this._filterFind(this.element.children(),this.options.itemSelector);this.element.css({overflow:"hidden",position:"relative"});a=false;switch(this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,"")){case "none":this.applyStyleFnName="css";break;case "jquery":this.applyStyleFnName= resizesContainer:true},_filterFind:function(a,b){return b?a.filter(b).add(a.find(b)):a},_create:function(a){this.options=f.extend(true,{},this.options,a);this.isNew={};this.styleQueue=[];this.elemCount=0;this.$allAtoms=this._filterFind(this.element.children(),this.options.itemSelector);this.element.css({overflow:"hidden",position:"relative"});a=false;switch(this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,"")){case "none":this.applyStyleFnName="css";break;case "jquery":this.applyStyleFnName=
"animate";a=true;break;default:this.applyStyleFnName=Modernizr.csstransitions?"css":"animate"}this.positionFn=(this.usingTransforms=Modernizr.csstransforms&&Modernizr.csstransitions&&!a)?this._translate:this._positionAbs;this.options.getSortData=e.extend(this.options.getSortData,{"original-order":function(c,d){return d.elemCount}});this._setupAtoms(this.$allAtoms);a=e(document.createElement("div"));this.element.prepend(a);this.posTop=Math.round(a.position().top);this.posLeft=Math.round(a.position().left); "animate";a=true;break;default:this.applyStyleFnName=Modernizr.csstransitions?"css":"animate"}this.positionFn=(this.usingTransforms=Modernizr.csstransforms&&Modernizr.csstransitions&&!a)?this._translate:this._positionAbs;this.options.getSortData=f.extend(this.options.getSortData,{"original-order":function(c,d){return d.elemCount}});this._setupAtoms(this.$allAtoms);a=f(document.createElement("div"));this.element.prepend(a);this.posTop=Math.round(a.position().top);this.posLeft=Math.round(a.position().left);
a.remove();var b=this;setTimeout(function(){b.element.addClass(b.options.containerClass)},0);this.options.resizable&&e(window).bind("smartresize.isotope",function(){b.element.isotope("resize")})},_isNewProp:function(a){return this.prevOpts?this.options[a]!==this.prevOpts[a]:true},_init:function(a){var b=this;e.each(["filter","sortBy","sortAscending"],function(c,d){b.isNew[d]=b._isNewProp(d)});this.$filteredAtoms=this.isNew.filter?this._filter(this.$allAtoms):this.$allAtoms;if(this.isNew.filter||this.isNew.sortBy|| a.remove();var b=this;setTimeout(function(){b.element.addClass(b.options.containerClass)},0);this.options.resizable&&f(window).bind("smartresize.isotope",function(){b.element.isotope("resize")})},_isNewProp:function(a){return this.prevOpts?this.options[a]!==this.prevOpts[a]:true},_init:function(a){var b=this;f.each(["filter","sortBy","sortAscending"],function(c,d){b.isNew[d]=b._isNewProp(d)});this.$filteredAtoms=this.isNew.filter?this._filter(this.$allAtoms):this.$allAtoms;if(this.isNew.filter||this.isNew.sortBy||
this.isNew.sortAscending)this._sort();this.reLayout(a)},option:function(a,b){if(e.isPlainObject(a))this.options=e.extend(true,this.options,a);else if(a&&typeof b==="undefined")return this.options[a];else this.options[a]=b;return this},_setupAtoms:function(a){var b={position:"absolute"};if(this.usingTransforms){b.left=0;b.top=0}a.css(b).addClass(this.options.itemClass);var c=this;a.each(function(){var d=e(this),f={},g=c.options.getSortData,h;for(h in g)f[h]=g[h](d,c);d.data("isotope-sort-data",f); this.isNew.sortAscending)this._sort();this.reLayout(a)},option:function(a,b){if(f.isPlainObject(a))this.options=f.extend(true,this.options,a);else if(a&&typeof b==="undefined")return this.options[a];else this.options[a]=b;return this},_setupAtoms:function(a){var b={position:"absolute"};if(this.usingTransforms){b.left=0;b.top=0}a.css(b).addClass(this.options.itemClass);this.updateSortData(a,true)},_filter:function(a){var b=this.options.filter===""?"*":this.options.filter;if(b){var c=this.options.hiddenClass,
c.elemCount++})},_filter:function(a){var b=this.options.filter===""?"*":this.options.filter;if(b){var c=this.options.hiddenClass,d="."+c,f=a.not(d),g=a.filter(d);d=g;a=a.filter(b);if(b!=="*"){d=g.filter(b);b=f.not(b).toggleClass(c);b.addClass(c);this.styleQueue.push({$el:b,style:this.options.hiddenStyle})}this.styleQueue.push({$el:d,style:this.options.visibleStyle});d.removeClass(c)}return a},_sort:function(){var a=this,b=function(d){return e(d).data("isotope-sort-data")[a.options.sortBy]},c=this.options.sortAscending? d="."+c,e=a.not(d),g=a.filter(d);d=g;a=a.filter(b);if(b!=="*"){d=g.filter(b);b=e.not(b).toggleClass(c);b.addClass(c);this.styleQueue.push({$el:b,style:this.options.hiddenStyle})}this.styleQueue.push({$el:d,style:this.options.visibleStyle});d.removeClass(c)}return a},updateSortData:function(a,b){var c=this,d=this.options.getSortData,e,g,h;a.each(function(){g=f(this);h={};for(e in d)h[e]=d[e](g,c);g.data("isotope-sort-data",h);b&&c.elemCount++})},_sort:function(){var a=this,b=function(d){return f(d).data("isotope-sort-data")[a.options.sortBy]},
1:-1;sortFn=function(d,f){var g=b(d),h=b(f);return(g>h?1:g<h?-1:0)*c};this.$filteredAtoms.sort(sortFn);return this},_translate:function(a,b){return{translate:[a,b]}},_positionAbs:function(a,b){return{left:a,top:b}},_pushPosition:function(a,b,c){b=this.positionFn(b,c);this.styleQueue.push({$el:a,style:b})},layout:function(a,b){var c=this.options.layoutMode;this["_"+c+"Layout"](a);this.options.resizesContainer&&this.styleQueue.push({$el:this.element,style:this["_"+c+"GetContainerSize"]()});var d=this.applyStyleFnName=== c=this.options.sortAscending?1:-1;sortFn=function(d,e){var g=b(d),h=b(e);return(g>h?1:g<h?-1:0)*c};this.$filteredAtoms.sort(sortFn);return this},_translate:function(a,b){return{translate:[a,b]}},_positionAbs:function(a,b){return{left:a,top:b}},_pushPosition:function(a,b,c){b=this.positionFn(b,c);this.styleQueue.push({$el:a,style:b})},layout:function(a,b){var c=this.options.layoutMode;this["_"+c+"Layout"](a);this.options.resizesContainer&&this.styleQueue.push({$el:this.element,style:this["_"+c+"GetContainerSize"]()});
"animate"&&!this.isLaidOut?"css":this.applyStyleFnName,f=this.options.animationOptions;e.each(this.styleQueue,function(g,h){h.$el[d](h.style,e.extend({},f))});this.styleQueue=[];b&&b.call(a);this.isLaidOut=true;return this},resize:function(){return this["_"+this.options.layoutMode+"Resize"]()},reLayout:function(a){return this["_"+this.options.layoutMode+"Reset"]().layout(this.$filteredAtoms,a)},addItems:function(a,b){var c=this._filterFind(a,this.options.itemSelector);this._setupAtoms(c);this.$allAtoms= var d=this.applyStyleFnName==="animate"&&!this.isLaidOut?"css":this.applyStyleFnName,e=this.options.animationOptions;f.each(this.styleQueue,function(g,h){h.$el[d](h.style,f.extend({},e))});this.styleQueue=[];b&&b.call(a);this.isLaidOut=true;return this},resize:function(){return this["_"+this.options.layoutMode+"Resize"]()},reLayout:function(a){return this["_"+this.options.layoutMode+"Reset"]().layout(this.$filteredAtoms,a)},addItems:function(a,b){var c=this._filterFind(a,this.options.itemSelector);
this.$allAtoms.add(c);b&&b(c)},insert:function(a,b){this.element.append(a);var c=this;this.addItems(a,function(d){$filteredAtoms=c._filter(d);c.$filteredAtoms=c.$filteredAtoms.add($filteredAtoms)});this._sort().reLayout(b)},appended:function(a,b){var c=this;this.addItems(a,function(d){c.$filteredAtoms=c.$filteredAtoms.add(d);c.layout(d,b)})},remove:function(a){this.$allAtoms=this.$allAtoms.not(a);this.$filteredAtoms=this.$filteredAtoms.not(a);a.remove()},_shuffleArray:function(a){var b,c,d=a.length; this._setupAtoms(c);this.$allAtoms=this.$allAtoms.add(c);b&&b(c)},insert:function(a,b){this.element.append(a);var c=this;this.addItems(a,function(d){$filteredAtoms=c._filter(d);c.$filteredAtoms=c.$filteredAtoms.add($filteredAtoms)});this._sort().reLayout(b)},appended:function(a,b){var c=this;this.addItems(a,function(d){c.$filteredAtoms=c.$filteredAtoms.add(d);c.layout(d,b)})},remove:function(a){this.$allAtoms=this.$allAtoms.not(a);this.$filteredAtoms=this.$filteredAtoms.not(a);a.remove()},_shuffleArray:function(a){var b,
if(d)for(;--d;){c=~~(Math.random()*(d+1));b=a[c];a[c]=a[d];a[d]=b}return a},shuffle:function(a){this.options.sortBy="shuffle";this.$allAtoms=this._shuffleArray(this.$allAtoms);this.$filteredAtoms=this._filter(this.$allAtoms);return this.reLayout(a)},destroy:function(){var a=e.extend(this.options.visibleStyle,{position:"relative",top:"auto",left:"auto"});if(this.usingTransforms)a[e.isoTransform.transformProp]="none";this.$allAtoms.css(a).removeClass(this.options.hiddenClass);this.element.css({width:"auto", c,d=a.length;if(d)for(;--d;){c=~~(Math.random()*(d+1));b=a[c];a[c]=a[d];a[d]=b}return a},shuffle:function(a){this.options.sortBy="shuffle";this.$allAtoms=this._shuffleArray(this.$allAtoms);this.$filteredAtoms=this._filter(this.$allAtoms);return this.reLayout(a)},destroy:function(){var a=f.extend(this.options.visibleStyle,{position:"relative",top:"auto",left:"auto"});if(this.usingTransforms)a[f.isoTransform.transformProp]="none";this.$allAtoms.css(a).removeClass(this.options.hiddenClass);this.element.css({width:"auto",
height:"auto"}).unbind(".isotope").removeClass(this.options.containerClass).removeData("isotope");e(window).unbind(".isotope")},_getSegments:function(a,b){var c=b?"rowHeight":"columnWidth",d=b?"height":"width",f=b?"rows":"cols";this[a][c]=this.options[a]&&this.options[a][c]||this.$allAtoms["outer"+(b?"Height":"Width")](true);if(!this[a][c]){e.error(c+" calculated to be zero. Stopping Isotope plugin before divide by zero. Check that the width of first child inside the isotope container is not zero."); height:"auto"}).unbind(".isotope").removeClass(this.options.containerClass).removeData("isotope");f(window).unbind(".isotope")},_getSegments:function(a,b){var c=b?"rowHeight":"columnWidth",d=b?"height":"width",e=b?"rows":"cols";this[a][c]=this.options[a]&&this.options[a][c]||this.$allAtoms["outer"+(b?"Height":"Width")](true);if(!this[a][c]){f.error(c+" calculated to be zero. Stopping Isotope plugin before divide by zero. Check that the width of first child inside the isotope container is not zero.");
return this}this[d]=this.element[d]();this[a][f]=Math.floor(this[d]/this[a][c]);this[a][f]=Math.max(this[a][f],1);return this},_masonryPlaceBrick:function(a,b,c){b=Math.min.apply(Math,c);for(var d=b+a.outerHeight(true),f=c.length,g=f,h=this.masonry.cols+1-f;f--;)if(c[f]===b)g=f;this._pushPosition(a,this.masonry.columnWidth*g+this.posLeft,b);for(f=0;f<h;f++)this.masonry.colYs[g+f]=d},_masonryLayout:function(a){var b=this;a.each(function(){var c=e(this),d=Math.ceil(c.outerWidth(true)/b.masonry.columnWidth); return this}this[d]=this.element[d]();this[a][e]=Math.floor(this[d]/this[a][c]);this[a][e]=Math.max(this[a][e],1);return this},_masonryPlaceBrick:function(a,b,c){b=Math.min.apply(Math,c);for(var d=b+a.outerHeight(true),e=c.length,g=e,h=this.masonry.cols+1-e;e--;)if(c[e]===b)g=e;this._pushPosition(a,this.masonry.columnWidth*g+this.posLeft,b);for(e=0;e<h;e++)this.masonry.colYs[g+e]=d},_masonryLayout:function(a){var b=this;a.each(function(){var c=f(this),d=Math.ceil(c.outerWidth(true)/b.masonry.columnWidth);
d=Math.min(d,b.masonry.cols);if(d===1)b._masonryPlaceBrick(c,b.masonry.cols,b.masonry.colYs);else{var f=b.masonry.cols+1-d,g=[],h,i;for(i=0;i<f;i++){h=b.masonry.colYs.slice(i,i+d);g[i]=Math.max.apply(Math,h)}b._masonryPlaceBrick(c,f,g)}})},_masonryReset:function(){this.masonry={};this._getSegments("masonry");var a=this.masonry.cols;for(this.masonry.colYs=[];a--;)this.masonry.colYs.push(this.posTop);return this},_masonryResize:function(){var a=this.masonry.cols;this._getSegments("masonry");this.masonry.cols!== d=Math.min(d,b.masonry.cols);if(d===1)b._masonryPlaceBrick(c,b.masonry.cols,b.masonry.colYs);else{var e=b.masonry.cols+1-d,g=[],h,i;for(i=0;i<e;i++){h=b.masonry.colYs.slice(i,i+d);g[i]=Math.max.apply(Math,h)}b._masonryPlaceBrick(c,e,g)}})},_masonryReset:function(){this.masonry={};this._getSegments("masonry");var a=this.masonry.cols;for(this.masonry.colYs=[];a--;)this.masonry.colYs.push(this.posTop);return this},_masonryResize:function(){var a=this.masonry.cols;this._getSegments("masonry");this.masonry.cols!==
a&&this.reLayout();return this},_masonryGetContainerSize:function(){return{height:Math.max.apply(Math,this.masonry.colYs)-this.posTop}},_fitRowsLayout:function(a){this.width=this.element.width();var b=this;return a.each(function(){var c=e(this),d=c.outerWidth(true),f=c.outerHeight(true);if(b.fitRows.x!==0&&d+b.fitRows.x>b.width){b.fitRows.x=0;b.fitRows.y=b.fitRows.height}b._pushPosition(c,b.fitRows.x+b.posLeft,b.fitRows.y+b.posTop);b.fitRows.height=Math.max(b.fitRows.y+f,b.fitRows.height);b.fitRows.x+= a&&this.reLayout();return this},_masonryGetContainerSize:function(){return{height:Math.max.apply(Math,this.masonry.colYs)-this.posTop}},_fitRowsLayout:function(a){this.width=this.element.width();var b=this;return a.each(function(){var c=f(this),d=c.outerWidth(true),e=c.outerHeight(true);if(b.fitRows.x!==0&&d+b.fitRows.x>b.width){b.fitRows.x=0;b.fitRows.y=b.fitRows.height}b._pushPosition(c,b.fitRows.x+b.posLeft,b.fitRows.y+b.posTop);b.fitRows.height=Math.max(b.fitRows.y+e,b.fitRows.height);b.fitRows.x+=
d})},_fitRowsReset:function(){this.fitRows={x:0,y:0,height:0};return this},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResize:function(){return this.reLayout()},_cellsByRowReset:function(){this.cellsByRow={};this._getSegments("cellsByRow");this.cellsByRow.rowHeight=this.options.cellsByRow.rowHeight||this.$allAtoms.outerHeight(true);return this},_cellsByRowLayout:function(a){var b=this,c=this.cellsByRow.cols;this.cellsByRow.atomsLen=a.length;a.each(function(d){var f= d})},_fitRowsReset:function(){this.fitRows={x:0,y:0,height:0};return this},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResize:function(){return this.reLayout()},_cellsByRowReset:function(){this.cellsByRow={};this._getSegments("cellsByRow");this.cellsByRow.rowHeight=this.options.cellsByRow.rowHeight||this.$allAtoms.outerHeight(true);return this},_cellsByRowLayout:function(a){var b=this,c=this.cellsByRow.cols;this.cellsByRow.atomsLen=a.length;a.each(function(d){var e=
e(this),g=(d%c+0.5)*b.cellsByRow.columnWidth-f.outerWidth(true)/2+b.posLeft;d=(~~(d/c)+0.5)*b.cellsByRow.rowHeight-f.outerHeight(true)/2+b.posTop;b._pushPosition(f,g,d)});return this},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.cellsByRow.atomsLen/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.posTop}},_cellsByRowResize:function(){var a=this.cellsByRow.cols;this._getSegments("cellsByRow");this.cellsByRow.cols!==a&&this.reLayout();return this},_straightDownReset:function(){this.straightDown= f(this),g=(d%c+0.5)*b.cellsByRow.columnWidth-e.outerWidth(true)/2+b.posLeft;d=(~~(d/c)+0.5)*b.cellsByRow.rowHeight-e.outerHeight(true)/2+b.posTop;b._pushPosition(e,g,d)});return this},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.cellsByRow.atomsLen/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.posTop}},_cellsByRowResize:function(){var a=this.cellsByRow.cols;this._getSegments("cellsByRow");this.cellsByRow.cols!==a&&this.reLayout();return this},_straightDownReset:function(){this.straightDown=
{y:0};return this},_straightDownLayout:function(a){var b=this;a.each(function(){var c=e(this);b._pushPosition(c,b.posLeft,b.straightDown.y+b.posTop);b.straightDown.y+=c.outerHeight(true)});return this},_straightDownGetContainerSize:function(){return{height:this.straightDown.y+this.posTop}},_straightDownResize:function(){this.reLayout();return this},_masonryHorizontalPlaceBrick:function(a,b,c){b=Math.min.apply(Math,c);for(var d=b+a.outerWidth(true),f=c.length,g=f,h=this.masonryHorizontal.rows+1-f;f--;)if(c[f]=== {y:0};return this},_straightDownLayout:function(a){var b=this;a.each(function(){var c=f(this);b._pushPosition(c,b.posLeft,b.straightDown.y+b.posTop);b.straightDown.y+=c.outerHeight(true)});return this},_straightDownGetContainerSize:function(){return{height:this.straightDown.y+this.posTop}},_straightDownResize:function(){this.reLayout();return this},_masonryHorizontalPlaceBrick:function(a,b,c){b=Math.min.apply(Math,c);for(var d=b+a.outerWidth(true),e=c.length,g=e,h=this.masonryHorizontal.rows+1-e;e--;)if(c[e]===
b)g=f;this._pushPosition(a,b,this.masonryHorizontal.rowHeight*g+this.posTop);for(f=0;f<h;f++)this.masonryHorizontal.rowXs[g+f]=d},_masonryHorizontalLayout:function(a){var b=this;a.each(function(){var c=e(this),d=Math.ceil(c.outerHeight(true)/b.masonryHorizontal.rowHeight);d=Math.min(d,b.masonryHorizontal.rows);if(d===1)b._masonryHorizontalPlaceBrick(c,b.masonryHorizontal.rows,b.masonryHorizontal.rowXs);else{for(var f=b.masonryHorizontal.rows+1-d,g=[],h,i=0;i<f;i++){h=b.masonryHorizontal.rowXs.slice(i, b)g=e;this._pushPosition(a,b,this.masonryHorizontal.rowHeight*g+this.posTop);for(e=0;e<h;e++)this.masonryHorizontal.rowXs[g+e]=d},_masonryHorizontalLayout:function(a){var b=this;a.each(function(){var c=f(this),d=Math.ceil(c.outerHeight(true)/b.masonryHorizontal.rowHeight);d=Math.min(d,b.masonryHorizontal.rows);if(d===1)b._masonryHorizontalPlaceBrick(c,b.masonryHorizontal.rows,b.masonryHorizontal.rowXs);else{for(var e=b.masonryHorizontal.rows+1-d,g=[],h,i=0;i<e;i++){h=b.masonryHorizontal.rowXs.slice(i,
i+d);g[i]=Math.max.apply(Math,h)}b._masonryHorizontalPlaceBrick(c,f,g)}})},_masonryHorizontalReset:function(){this.masonryHorizontal={};this._getSegments("masonryHorizontal",true);var a=this.masonryHorizontal.rows;for(this.masonryHorizontal.rowXs=[];a--;)this.masonryHorizontal.rowXs.push(this.posLeft);return this},_masonryHorizontalResize:function(){var a=this.masonryHorizontal.rows;this._getSegments("masonryHorizontal",true);this.masonryHorizontal.rows!==a&&this.reLayout();return this},_masonryHorizontalGetContainerSize:function(){return{width:Math.max.apply(Math, i+d);g[i]=Math.max.apply(Math,h)}b._masonryHorizontalPlaceBrick(c,e,g)}})},_masonryHorizontalReset:function(){this.masonryHorizontal={};this._getSegments("masonryHorizontal",true);var a=this.masonryHorizontal.rows;for(this.masonryHorizontal.rowXs=[];a--;)this.masonryHorizontal.rowXs.push(this.posLeft);return this},_masonryHorizontalResize:function(){var a=this.masonryHorizontal.rows;this._getSegments("masonryHorizontal",true);this.masonryHorizontal.rows!==a&&this.reLayout();return this},_masonryHorizontalGetContainerSize:function(){return{width:Math.max.apply(Math,
this.masonryHorizontal.rowXs)-this.posLeft}},_fitColumnsReset:function(){this.fitColumns={x:0,y:0,width:0};return this},_fitColumnsLayout:function(a){var b=this;this.height=this.element.height();return a.each(function(){var c=e(this),d=c.outerWidth(true),f=c.outerHeight(true);if(b.fitColumns.y!==0&&f+b.fitColumns.y>b.height){b.fitColumns.x=b.fitColumns.width;b.fitColumns.y=0}b._pushPosition(c,b.fitColumns.x+b.posLeft,b.fitColumns.y+b.posTop);b.fitColumns.width=Math.max(b.fitColumns.x+d,b.fitColumns.width); this.masonryHorizontal.rowXs)-this.posLeft}},_fitColumnsReset:function(){this.fitColumns={x:0,y:0,width:0};return this},_fitColumnsLayout:function(a){var b=this;this.height=this.element.height();return a.each(function(){var c=f(this),d=c.outerWidth(true),e=c.outerHeight(true);if(b.fitColumns.y!==0&&e+b.fitColumns.y>b.height){b.fitColumns.x=b.fitColumns.width;b.fitColumns.y=0}b._pushPosition(c,b.fitColumns.x+b.posLeft,b.fitColumns.y+b.posTop);b.fitColumns.width=Math.max(b.fitColumns.x+d,b.fitColumns.width);
b.fitColumns.y+=f})},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResize:function(){return this.reLayout()},_cellsByColumnReset:function(){this.cellsByColumn={};this._getSegments("cellsByColumn",true);this.cellsByColumn.columnWidth=this.options.cellsByColumn.columnWidth||this.$allAtoms.outerHeight(true);return this},_cellsByColumnLayout:function(a){var b=this,c=this.cellsByColumn.rows;this.cellsByColumn.atomsLen=a.length;a.each(function(d){var f=e(this),g= b.fitColumns.y+=e})},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResize:function(){return this.reLayout()},_cellsByColumnReset:function(){this.cellsByColumn={};this._getSegments("cellsByColumn",true);this.cellsByColumn.columnWidth=this.options.cellsByColumn.columnWidth||this.$allAtoms.outerHeight(true);return this},_cellsByColumnLayout:function(a){var b=this,c=this.cellsByColumn.rows;this.cellsByColumn.atomsLen=a.length;a.each(function(d){var e=f(this),g=
(~~(d/c)+0.5)*b.cellsByColumn.columnWidth-f.outerWidth(true)/2+b.posLeft;d=(d%c+0.5)*b.cellsByColumn.rowHeight-f.outerHeight(true)/2+b.posTop;b._pushPosition(f,g,d)});return this},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.cellsByColumn.atomsLen/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth+this.posLeft}},_cellsByColumnResize:function(){var a=this.cellsByColumn.rows;this._getSegments("cellsByColumn",true);this.cellsByColumn.rows!==a&&this.reLayout();return this}}; (~~(d/c)+0.5)*b.cellsByColumn.columnWidth-e.outerWidth(true)/2+b.posLeft;d=(d%c+0.5)*b.cellsByColumn.rowHeight-e.outerHeight(true)/2+b.posTop;b._pushPosition(e,g,d)});return this},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.cellsByColumn.atomsLen/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth+this.posLeft}},_cellsByColumnResize:function(){var a=this.cellsByColumn.rows;this._getSegments("cellsByColumn",true);this.cellsByColumn.rows!==a&&this.reLayout();return this}};
e.fn.imagesLoaded=function(a){var b=this.find("img"),c=b.length,d=this;b.bind("load",function(){--c<=0&&a.call(d)}).each(function(){if(this.complete||this.complete===k){var f=this.src;this.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";this.src=f}});return this};e.widget=e.widget||{};e.widget.bridge=e.widget.bridge||function(a,b){e.fn[a]=function(c){var d=typeof c==="string",f=Array.prototype.slice.call(arguments,1),g=this;c=!d&&f.length?e.extend.apply(null,[true,c].concat(f)): f.fn.imagesLoaded=function(a){var b=this.find("img"),c=b.length,d=this;b.bind("load",function(){--c<=0&&a.call(d)}).each(function(){if(this.complete||this.complete===k){var e=this.src;this.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";this.src=e}});return this};f.widget=f.widget||{};f.widget.bridge=f.widget.bridge||function(a,b){f.fn[a]=function(c){var d=typeof c==="string",e=Array.prototype.slice.call(arguments,1),g=this;c=!d&&e.length?f.extend.apply(null,[true,c].concat(e)):
c;if(d&&c.charAt(0)==="_")return g;d?this.each(function(){var h=e.data(this,a);if(!h)return e.error("cannot call methods on "+a+" prior to initialization; attempted to call method '"+c+"'");if(!e.isFunction(h[c]))return e.error("no such method '"+c+"' for "+a+" widget instance");var i=h[c].apply(h,f);if(i!==h&&i!==k){g=i;return false}}):this.each(function(){var h=e.data(this,a);h?h.option(c||{})._init():e.data(this,a,new b(c,this))});return g}};e.widget.bridge("isotope",e.Isotope)})(jQuery); c;if(d&&c.charAt(0)==="_")return g;d?this.each(function(){var h=f.data(this,a);if(!h)return f.error("cannot call methods on "+a+" prior to initialization; attempted to call method '"+c+"'");if(!f.isFunction(h[c]))return f.error("no such method '"+c+"' for "+a+" widget instance");var i=h[c].apply(h,e);if(i!==h&&i!==k){g=i;return false}}):this.each(function(){var h=f.data(this,a);h?h.option(c||{})._init():f.data(this,a,new b(c,this))});return g}};f.widget.bridge("isotope",f.Isotope)})(jQuery);

Loading…
Cancel
Save