mirror of https://github.com/metafizzy/isotope
David DeSandro
14 years ago
10 changed files with 59 additions and 103 deletions
@ -0,0 +1,14 @@
|
||||
|
||||
// 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; |
||||
}); |
@ -1,12 +0,0 @@
|
||||
|
||||
// switches selected class on buttons
|
||||
$('#options').find('.option-set a').click(function(){ |
||||
var $this = $(this); |
||||
|
||||
// don't proceed if already selected
|
||||
if ( !$this.hasClass('selected') ) { |
||||
$this.parents('.option-set').find('.selected').removeClass('selected'); |
||||
$this.addClass('selected'); |
||||
} |
||||
|
||||
}); |
Loading…
Reference in new issue