changeset 0 | d970ebf37754 |
-1:000000000000 | 0:d970ebf37754 |
---|---|
1 |
|
2 // change size of clicked element |
|
3 $container.delegate( '.element', 'click', function(){ |
|
4 $(this).toggleClass('large'); |
|
5 $container.isotope('reLayout'); |
|
6 }); |
|
7 |
|
8 // toggle variable sizes of all elements |
|
9 $('#toggle-sizes').find('a').click(function(){ |
|
10 $container |
|
11 .toggleClass('variable-sizes') |
|
12 .isotope('reLayout'); |
|
13 return false; |
|
14 }); |