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.
56 lines
1.1 KiB
56 lines
1.1 KiB
/*global requirejs: false*/ |
|
|
|
/* |
|
// with bower components |
|
requirejs.config({ |
|
baseUrl: '../bower_components' |
|
}); |
|
|
|
requirejs( [ '../js/isotope', '../js/layout-modes/masonry' ], function( Isotope ) { |
|
new Isotope( '#basic', { |
|
masonry: { |
|
columnWidth: 60 |
|
} |
|
}); |
|
}); |
|
// */ |
|
|
|
// isotope.pkgd.js |
|
/* |
|
requirejs( [ 'require', 'js/isotope.pkgd.js' ], |
|
function( require, Isotope ) { |
|
require( [ 'isotope/js/layout-modes/fit-rows' ], function() { |
|
new Isotope( '#basic', { |
|
layoutMode: 'fitRows', |
|
masonry: { |
|
columnWidth: 60 |
|
} |
|
}); |
|
}); |
|
} |
|
); |
|
// */ |
|
|
|
// isotope.pkgd.js and jQuery |
|
requirejs.config({ |
|
paths: { |
|
jquery: '../../bower_components/jquery/jquery' |
|
} |
|
}) |
|
|
|
requirejs( [ 'require', 'jquery', 'js/isotope.pkgd.js' ], |
|
function( require, $, Isotope ) { |
|
require( [ |
|
'jquery-bridget/jquery.bridget', |
|
'isotope/js/layout-modes/masonry' |
|
], |
|
function() { |
|
$.bridget( 'isotope', Isotope ); |
|
$('#basic').isotope({ |
|
masonry: { |
|
columnWidth: 60 |
|
} |
|
}); |
|
} |
|
); |
|
});
|
|
|