author | ymh <ymh.work@gmail.com> |
Wed, 16 Oct 2019 11:23:38 +0200 | |
changeset 14 | 00ac8f60d73f |
parent 0 | d970ebf37754 |
permissions | -rwxr-xr-x |
0 | 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 |
}); |