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