You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
514 B
JavaScript
22 lines
514 B
JavaScript
requirejs.config({
|
|
baseUrl: window.site_url + '/js',
|
|
paths: {
|
|
shufflejs: '../dist/shuffle',
|
|
polyfill: 'https://polyfill.io/v3/polyfill.min.js?features=default%2Ces5%2Ces6%2Ces7',
|
|
},
|
|
|
|
// Load the polyfill before Shuffle.
|
|
shim: {
|
|
shufflejs: {
|
|
deps: ['polyfill'],
|
|
},
|
|
},
|
|
});
|
|
|
|
requirejs(['shufflejs'], function (Shuffle) {
|
|
window.shuffleInstance = new Shuffle(document.getElementById('grid'), {
|
|
itemSelector: '.js-item',
|
|
sizer: document.getElementById('js-sizer'),
|
|
});
|
|
});
|