From b68721668b9a4035446875bbcfbe71898decd519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Tue, 12 Nov 2024 16:47:12 +0100 Subject: [PATCH] Test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bruno Rybársky --- assets/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, {