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.
57 lines
1.1 KiB
57 lines
1.1 KiB
11 years ago
|
/*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
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
);
|
||
|
});
|