cleanups + optimizations

This commit is contained in:
2023-01-03 11:09:20 +01:00
parent 9f7f344497
commit 0c2cb67a0b
29 changed files with 38 additions and 229 deletions

View File

@ -103,22 +103,6 @@
});
});
var containerEl = document.querySelector('.shuffle-wrapper');
if (containerEl) {
var Shuffle = window.Shuffle;
var myShuffle = new Shuffle(document.querySelector('.shuffle-wrapper'), {
itemSelector: '.shuffle-item',
buffer: 1
});
jQuery('input[name="shuffle-filter"]').on('change', function (evt) {
var input = evt.currentTarget;
if (input.checked) {
myShuffle.filter(input.value);
}
});
}
})(jQuery);