From ad9b9782483e0b56f1efc062ce0f41feee4744c6 Mon Sep 17 00:00:00 2001 From: Brummel Date: Thu, 21 May 2026 11:39:06 +0200 Subject: [PATCH] fix(carousel): initialize Bootstrap carousels explicitly instead of relying on data-ride auto-init --- static/js/scripts.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/static/js/scripts.js b/static/js/scripts.js index dd999d4..9e9b100 100644 --- a/static/js/scripts.js +++ b/static/js/scripts.js @@ -80,9 +80,16 @@ jQuery(function ($) { }()); - // testimonialSlider block removed — used flexslider for a widget that - // does not exist in this rebuild. Hero carousel and employees carousel - // are both Bootstrap-3, initialized via data-ride="carousel". + // ------------------------------------------------------------- + // Bootstrap carousel — explicit init (data-ride auto-init is + // data-api based and was flaky on this custom Bootstrap-3 build + // once the flexslider script was removed). + // ------------------------------------------------------------- + $('.carousel').carousel({ + interval: 5000, + pause: 'hover', + wrap: true + }); }); // JQuery end