From e26f17ed23f369afb18a9135541ec2e80601aa4a Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Fri, 17 Jun 2011 09:22:18 -0400 Subject: [PATCH] demos : add change-sizes.js to relayout; whitespace fix to category rows --- _posts/demos/2010-12-31-relayout.html | 16 ++-------------- _posts/demos/2011-05-22-category-rows.html | 6 ------ 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/_posts/demos/2010-12-31-relayout.html b/_posts/demos/2010-12-31-relayout.html index f1aae6b..95b9c39 100644 --- a/_posts/demos/2010-12-31-relayout.html +++ b/_posts/demos/2010-12-31-relayout.html @@ -29,20 +29,6 @@ category: demos var $container = $('#container'); {% include random-sizes.js %} - - // 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').click(function(){ - $(this).toggleClass('large'); - $container.isotope('reLayout'); - }); $container.isotope({ itemSelector: '.element', @@ -51,6 +37,8 @@ category: demos } }); + {% include change-sizes.js %} + }); diff --git a/_posts/demos/2011-05-22-category-rows.html b/_posts/demos/2011-05-22-category-rows.html index 5e09fe3..8bb73c0 100644 --- a/_posts/demos/2011-05-22-category-rows.html +++ b/_posts/demos/2011-05-22-category-rows.html @@ -109,8 +109,6 @@ category: demos animationEngine : $.browser.opera ? 'jquery' : 'best-available' }); - - {% include option-set-buttons.js %} {% include add-buttons.js %} @@ -123,10 +121,6 @@ category: demos return false; }); - - - - });