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

@ -30,20 +30,6 @@ category: demos
{% include random-sizes.js %} {% 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({ $container.isotope({
itemSelector: '.element', itemSelector: '.element',
masonry : { masonry : {
@ -51,6 +37,8 @@ category: demos
} }
}); });
{% include change-sizes.js %}
}); });
</script> </script>

6
_posts/demos/2011-05-22-category-rows.html

@ -109,8 +109,6 @@ category: demos
animationEngine : $.browser.opera ? 'jquery' : 'best-available' animationEngine : $.browser.opera ? 'jquery' : 'best-available'
}); });
{% include option-set-buttons.js %} {% include option-set-buttons.js %}
{% include add-buttons.js %} {% include add-buttons.js %}
@ -123,10 +121,6 @@ category: demos
return false; return false;
}); });
}); });
</script> </script>

Loading…
Cancel
Save