author | ymh <ymh.work@gmail.com> |
Wed, 13 Nov 2013 17:59:35 +0000 | |
changeset 3 | 6d22aaa62d12 |
parent 0 | d970ebf37754 |
permissions | -rwxr-xr-x |
// change size of clicked element $container.delegate( '.element', 'click', function(){ $(this).toggleClass('large'); $container.isotope('reLayout'); }); // toggle variable sizes of all elements $('#toggle-sizes').find('a').click(function(){ $container .toggleClass('variable-sizes') .isotope('reLayout'); return false; });