Browse Source

demos : add change-sizes.js to relayout; whitespace fix to category rows

pull/96/head
David DeSandro 14 years ago
parent
commit
e26f17ed23
  1. 16
      _posts/demos/2010-12-31-relayout.html
  2. 6
      _posts/demos/2011-05-22-category-rows.html

16
_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 %}
});
</script>

6
_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;
});
});
</script>

Loading…
Cancel
Save