Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add minified version of masonry v1.3.0. Have all docs use instead of …

…full dev version.
  • Loading branch information...
commit 0049565e38b0102eeaaad5b5c9e74e3be43d7184 1 parent 985a510
@desandro desandro authored
View
2  docs/animating-css-transitions.html
@@ -182,7 +182,7 @@
<script src="js/jquery-1.4.2.min.js"></script>
- <script src="../jquery.masonry.js"></script>
+ <script src="../jquery.masonry.min.js"></script>
<script>
$(function(){
View
2  docs/animating-jquery.html
@@ -179,7 +179,7 @@
</div> <!-- #content -->
<script src="js/jquery-1.4.2.min.js"></script>
- <script src="../jquery.masonry.js"></script>
+ <script src="../jquery.masonry.min.js"></script>
<script>
$(function(){
View
2  docs/appending.html
@@ -130,7 +130,7 @@
</div> <!-- #content -->
<script src="js/jquery-1.4.2.min.js"></script>
- <script src="../jquery.masonry.js"></script>
+ <script src="../jquery.masonry.min.js"></script>
<script src="js/rando-lorem-text.js"></script>
<script>
$(function(){
View
2  docs/basic-multi-column.html
@@ -252,7 +252,7 @@
</div> <!-- #content -->
<script src="js/jquery-1.4.2.min.js"></script>
- <script src="../jquery.masonry.js"></script>
+ <script src="../jquery.masonry.min.js"></script>
<script>
$(function(){
View
2  docs/basic-single-column.html
@@ -248,7 +248,7 @@
</div> <!-- #content -->
<script src="js/jquery-1.4.2.min.js"></script>
- <script src="../jquery.masonry.js"></script>
+ <script src="../jquery.masonry.min.js"></script>
<script>
$(function(){
View
2  docs/filtering-hashes.html
@@ -332,7 +332,7 @@
</div> <!-- #content -->
<script src="js/jquery-1.4.2.min.js"></script>
- <script src="../jquery.masonry.js"></script>
+ <script src="../jquery.masonry.min.js"></script>
<script>
$(function(){
View
2  docs/filtering.html
@@ -307,7 +307,7 @@
</div> <!-- #content -->
<script src="js/jquery-1.4.2.min.js"></script>
- <script src="../jquery.masonry.js"></script>
+ <script src="../jquery.masonry.min.js"></script>
<script>
$(function(){
View
6 docs/index.html
@@ -364,9 +364,9 @@ <h2 id="license">License</h2>
</div> <!-- #content -->
- <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
- <script type="text/javascript" src="../jquery.masonry.js"></script>
- <script type="text/javascript">
+ <script src="js/jquery-1.4.2.min.js"></script>
+ <script src="../jquery.masonry.min.js"></script>
+ <script>
$(function(){
$('#secondary').masonry({columnWidth: 100});
});
View
2  docs/infinite-scroll.html
@@ -320,7 +320,7 @@ <h2 id="images">Images and Infinite Scroll (a.k.a The Tumblr Issue)</h2>
</div>
<script src="js/jquery-1.4.2.min.js"></script>
- <script src="../jquery.masonry.js"></script>
+ <script src="../jquery.masonry.min.js"></script>
<script src="js/jquery.infinitescroll.min.js"></script>
<script>
$(function(){
View
2  docs/pages/2.html
@@ -194,7 +194,7 @@
</div> <!-- #content -->
<script src="../js/jquery-1.4.2.min.js"></script>
- <script src="../../jquery.masonry.js"></script>
+ <script src="../../jquery.masonry.min.js"></script>
<script>
$(function(){
$('#demo').masonry({
View
2  docs/pages/3.html
@@ -176,7 +176,7 @@
</div><!-- #content -->
<script src="../js/jquery-1.4.2.min.js"></script>
- <script src="../../jquery.masonry.js"></script>
+ <script src="../../jquery.masonry.min.js"></script>
<script>
$(function(){
$('#demo').masonry({
View
2  docs/pages/4.html
@@ -167,7 +167,7 @@
<script src="../js/jquery-1.4.2.min.js"></script>
- <script src="../../jquery.masonry.js"></script>
+ <script src="../../jquery.masonry.min.js"></script>
<script>
$(function(){
$('#demo').masonry({
View
2  docs/pages/5.html
@@ -170,7 +170,7 @@
</div><!-- #content -->
<script src="../js/jquery-1.4.2.min.js"></script>
- <script src="../../jquery.masonry.js"></script>
+ <script src="../../jquery.masonry.min.js"></script>
<script>
$(function(){
$('#demo').masonry({
View
2  docs/tumblelog.html
@@ -240,7 +240,7 @@
</div> <!-- #content -->
<script src="js/jquery-1.4.2.min.js"></script>
- <script src="../jquery.masonry.js"></script>
+ <script src="../jquery.masonry.min.js"></script>
<script>
$(function(){
$('#tumblelog').masonry({columnWidth: 240})
View
12 jquery.masonry.min.js
@@ -0,0 +1,12 @@
+/*************************************************
+** jQuery Masonry version 1.3.0
+** Copyright David DeSandro, licensed MIT
+** http://desandro.com/resources/jquery-masonry
+**************************************************/
+;(function(e){var l=e.event,m;l.special.smartresize={setup:function(){e(this).bind("resize",l.special.smartresize.handler)},teardown:function(){e(this).unbind("resize",l.special.smartresize.handler)},handler:function(j,k){var f=this,b=arguments;j.type="smartresize";m&&clearTimeout(m);m=setTimeout(function(){jQuery.event.handle.apply(f,b)},k==="execAsap"?0:100)}};e.fn.smartresize=function(j){return j?this.bind("smartresize",j):this.trigger("smartresize",["execAsap"])};e.fn.masonry=function(j,k){var f=
+{getBricks:function(b,d,a){var c=a.itemSelector===undefined;d.$bricks=a.appendedContent===undefined?c?b.children():b.find(a.itemSelector):c?a.appendedContent:a.appendedContent.filter(a.itemSelector)},placeBrick:function(b,d,a,c,g){var h=Math.min.apply(Math,a);d=a.indexOf(h);var i=h+b.outerHeight(true);a=c.colCount+1-a.length;b.applyStyle({left:c.colW*d+c.posLeft,top:h},e.extend(true,{},g.animationOptions));for(b=0;b<a;b++)c.colY[d+b]=i},setup:function(b,d,a){f.getBricks(b,a,d);if(a.masoned)a.previousData=
+b.data("masonry");a.colW=d.columnWidth===undefined?a.masoned?a.previousData.colW:a.$bricks.outerWidth(true):d.columnWidth;a.colCount=Math.floor(b.width()/a.colW);a.colCount=Math.max(a.colCount,1)},arrange:function(b,d,a){var c;if(a.masoned){a.posTop=a.previousData.posTop;a.posLeft=a.previousData.posLeft}else{b.css("position","relative");var g=e(document.createElement("div"));b.prepend(g);a.posTop=Math.round(g.position().top);a.posLeft=Math.round(g.position().left);g.remove()}if(!a.masoned||d.appendedContent!==
+undefined)a.$bricks.css("position","absolute");if(a.masoned&&d.appendedContent!==undefined){a.colY=a.previousData.colY;for(c=a.previousData.colCount;c<a.colCount;c++)a.colY[c]=a.posTop}else{a.colY=[];for(c=a.colCount;c--;)a.colY.push(a.posTop)}e.fn.applyStyle=a.masoned&&d.animate?e.fn.animate:e.fn.css;d.singleMode?a.$bricks.each(function(){var h=e(this);f.placeBrick(h,a.colCount,a.colY,a,d)}):a.$bricks.each(function(){var h=e(this),i=Math.ceil(h.outerWidth(true)/a.colW);i=Math.min(i,a.colCount);if(i===
+1)f.placeBrick(h,a.colCount,a.colY,a,d);else{var n=a.colCount+1-i,o=[];for(c=0;c<n;c++){var p=a.colY.slice(c,c+i);o[c]=Math.max.apply(Math,p)}f.placeBrick(h,n,o,a,d)}});a.wallH=Math.max.apply(Math,a.colY);b.applyStyle({height:a.wallH-a.posTop},e.extend(true,[],d.animationOptions));a.masoned||setTimeout(function(){b.addClass("masoned")},1);k.call(a.$bricks);b.data("masonry",a)},resize:function(b,d,a){a.masoned=b.data("masonry")!==null;var c=b.data("masonry").colCount;f.setup(b,d,a);a.colCount!=c&&
+f.arrange(b,d,a)}};return this.each(function(){var b=e(this),d={};d.masoned=b.data("masonry")!==null;var a=d.masoned?b.data("masonry").options:{},c=e.extend({},e.fn.masonry.defaults,a,j),g=a.resizeable;d.options=c.saveOptions?c:a;k=k||function(){};f.getBricks(b,d,c);if(!d.$bricks.length)return this;f.setup(b,c,d);f.arrange(b,c,d);!g&&c.resizeable&&e(window).bind("smartresize.masonry",function(){f.resize(b,c,d)});g&&!c.resizeable&&e(window).unbind("smartresize.masonry")})};e.fn.masonry.defaults={singleMode:false,
+columnWidth:undefined,itemSelector:undefined,appendedContent:undefined,saveOptions:true,resizeable:true,animate:false,animationOptions:{}}})(jQuery);
Please sign in to comment.
Something went wrong with that request. Please try again.