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.
86 lines
1.5 KiB
86 lines
1.5 KiB
11 years ago
|
/*global requirejs: false*/
|
||
|
|
||
11 years ago
|
// -------------------------- bower -------------------------- //
|
||
|
|
||
11 years ago
|
/*
|
||
|
// with bower components
|
||
|
requirejs.config({
|
||
|
baseUrl: '../bower_components'
|
||
|
});
|
||
|
|
||
11 years ago
|
requirejs( [ '../js/isotope' ], function( Isotope ) {
|
||
11 years ago
|
new Isotope( '#basic', {
|
||
|
masonry: {
|
||
|
columnWidth: 60
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
// */
|
||
|
|
||
11 years ago
|
// -------------------------- pkgd -------------------------- //
|
||
|
|
||
11 years ago
|
/*
|
||
11 years ago
|
requirejs( [ '../dist/isotope.pkgd.js' ], function( Isotope ) {
|
||
11 years ago
|
new Isotope( '#basic', {
|
||
|
layoutMode: 'masonry',
|
||
|
masonry: {
|
||
|
columnWidth: 60
|
||
|
}
|
||
|
});
|
||
|
});
|
||
11 years ago
|
// */
|
||
|
|
||
11 years ago
|
// -------------------------- bower & jQuery -------------------------- //
|
||
|
|
||
11 years ago
|
/*
|
||
11 years ago
|
requirejs.config({
|
||
11 years ago
|
baseUrl: '../bower_components',
|
||
11 years ago
|
paths: {
|
||
11 years ago
|
jquery: 'jquery/jquery'
|
||
11 years ago
|
}
|
||
|
})
|
||
|
|
||
11 years ago
|
requirejs( [
|
||
|
'jquery',
|
||
|
'isotope/js/isotope',
|
||
|
'jquery-bridget/jquery.bridget'
|
||
|
],
|
||
|
function( $, Isotope ) {
|
||
|
$.bridget( 'isotope', Isotope );
|
||
|
$('#basic').isotope({
|
||
|
masonry: {
|
||
|
columnWidth: 60
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
|
||
|
// */
|
||
|
|
||
11 years ago
|
// -------------------------- pkgd & jQuery -------------------------- //
|
||
|
|
||
11 years ago
|
// /*
|
||
|
requirejs.config({
|
||
|
paths: {
|
||
|
jquery: '../../bower_components/jquery/jquery'
|
||
|
}
|
||
|
});
|
||
|
|
||
11 years ago
|
requirejs( [ 'require', 'jquery', '../dist/isotope.pkgd.js' ],
|
||
11 years ago
|
function( require, $, Isotope ) {
|
||
|
require( [
|
||
11 years ago
|
'jquery-bridget/jquery.bridget'
|
||
11 years ago
|
],
|
||
|
function() {
|
||
|
$.bridget( 'isotope', Isotope );
|
||
|
$('#basic').isotope({
|
||
|
masonry: {
|
||
|
columnWidth: 60
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
);
|
||
|
});
|
||
11 years ago
|
|
||
|
// */
|
||
11 years ago
|
|