mirror of https://github.com/metafizzy/isotope
Filter & sort magical layouts
http://isotope.metafizzy.co
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
632 B
23 lines
632 B
$('#insert a').click(function(){ |
|
var i = Math.ceil( Math.random()*3 + 1 ), |
|
newEls = ''; |
|
while ( i-- ) { |
|
newEls += fakeElement.create(); |
|
} |
|
var $newEls = $( newEls ) |
|
$container.isotope( 'insert', $newEls ); |
|
|
|
return false; |
|
}); |
|
|
|
$('#append a').click(function(){ |
|
var i = Math.ceil( Math.random()*3 + 1 ), |
|
newEls = ''; |
|
while ( i-- ) { |
|
newEls += fakeElement.create(); |
|
} |
|
var $newEls = $( newEls ) |
|
$container.append( $newEls ).isotope( 'appended', $newEls ); |
|
|
|
return false; |
|
}); |