mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-19 03:48:18 -07:00
69 lines
1.3 KiB
JavaScript
69 lines
1.3 KiB
JavaScript
/*global requirejs: false*/
|
|
|
|
// -------------------------- pkgd -------------------------- //
|
|
|
|
/*
|
|
requirejs( [ '../../dist/masonry.pkgd' ], function( Masonry ) {
|
|
new Masonry( document.querySelector('#basic') );
|
|
});
|
|
// */
|
|
|
|
// -------------------------- bower -------------------------- //
|
|
|
|
/*
|
|
requirejs.config({
|
|
baseUrl: '../bower_components'
|
|
});
|
|
|
|
requirejs( [ '../masonry' ], function( Masonry ) {
|
|
new Masonry( document.querySelector('#basic') );
|
|
});
|
|
// */
|
|
|
|
// -------------------------- pkgd & jQuery -------------------------- //
|
|
|
|
// /*
|
|
requirejs.config({
|
|
paths: {
|
|
jquery: '../../bower_components/jquery/dist/jquery'
|
|
}
|
|
});
|
|
|
|
requirejs( [ 'require', 'jquery', '../../dist/masonry.pkgd' ],
|
|
function( require, $, Masonry ) {
|
|
require( [
|
|
'jquery-bridget/jquery.bridget'
|
|
],
|
|
function() {
|
|
$.bridget( 'masonry', Masonry );
|
|
$('#basic').masonry({
|
|
columnWidth: 60
|
|
});
|
|
}
|
|
);
|
|
});
|
|
// */
|
|
|
|
// -------------------------- bower & jQuery -------------------------- //
|
|
|
|
/*
|
|
requirejs.config({
|
|
baseUrl: '../bower_components',
|
|
paths: {
|
|
jquery: 'jquery/dist/jquery'
|
|
}
|
|
});
|
|
|
|
requirejs( [
|
|
'jquery',
|
|
'../masonry',
|
|
'jquery-bridget/jquery.bridget'
|
|
],
|
|
function( $, Masonry ) {
|
|
$.bridget( 'masonry', Masonry );
|
|
$('#basic').masonry({
|
|
columnWidth: 60
|
|
});
|
|
}
|
|
);
|
|
// */ |