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.
28 lines
876 B
28 lines
876 B
14 years ago
|
$('#insert a').click(function(){
|
||
|
var i = Math.ceil( Math.random()*3 + 1 ),
|
||
|
newEls = '';
|
||
|
// window.console && console.log( i )
|
||
|
while ( i-- ) {
|
||
|
newEls += fakeElement.create();
|
||
|
}
|
||
|
var $newEls = $( newEls )
|
||
|
// $demo.append( $newEls ).isotope( 'appendToLayout', $newEls );
|
||
|
$demo.isotope( 'insert', $newEls );
|
||
|
// $demo.append( $newEls ).isotope( 'addAtoms', $newEls ).isotope();
|
||
|
// $demo.isotope()
|
||
|
// console.log( next )
|
||
|
|
||
|
return false;
|
||
|
});
|
||
|
|
||
|
$('#append a').click(function(){
|
||
|
var i = Math.ceil( Math.random()*3 + 1 ),
|
||
|
newEls = '';
|
||
|
while ( i-- ) {
|
||
|
newEls += fakeElement.create();
|
||
|
}
|
||
|
var $newEls = $( newEls )
|
||
|
$demo.append( $newEls ).isotope( 'appended', $newEls );
|
||
|
|
||
|
return false;
|
||
|
});
|