From e4a90646def7d1e27cc251f2a5c63d1fe21a11b3 Mon Sep 17 00:00:00 2001 From: Brummel Date: Thu, 21 May 2026 11:40:36 +0200 Subject: [PATCH] Revert "fix(js): remove dead testimonialSlider/flexslider call from scripts.js" This reverts commit 59c3bae5b2280f87b2268944986eb4e98bb2259b. --- static/js/scripts.js | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/static/js/scripts.js b/static/js/scripts.js index dd999d4..8f29a46 100644 --- a/static/js/scripts.js +++ b/static/js/scripts.js @@ -80,9 +80,28 @@ 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". + // ------------------------------------------------------------- + // testimonialSlider + // ------------------------------------------------------------- + (function () { + + $('.testimonialSlider').flexslider({ + animation: "slide", + controlNav: "thumbnails", + directionNav: false + }) + + // Navigation + $('.prev').on('click', function(){ + $('.testimonialSlider').flexslider('prev') + return false; + }) + + $('.next').on('click', function(){ + $('.testimonialSlider').flexslider('next') + return false; + }) + }()); }); // JQuery end