diff --git a/assets/script.js b/assets/script.js index 9c92d5b..ce98b2e 100644 --- a/assets/script.js +++ b/assets/script.js @@ -82,7 +82,7 @@ async function doAction(url, requestData, successMessage, failureMessage, silent async function doSlicks() { - const elements = document.querySelectorAll('[sliderm]'); + const elements = document.getElementsByClassName('sliderm'); elements.forEach(function (element) { // Initialize the Slick carousel on each element const sliderm = new Sliderm('#' + element.id, {