From 59c3bae5b2280f87b2268944986eb4e98bb2259b Mon Sep 17 00:00:00 2001 From: Brummel Date: Thu, 21 May 2026 11:33:51 +0200 Subject: [PATCH] fix(js): remove dead testimonialSlider/flexslider call from scripts.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After the flexslider asset removal, scripts.js still tried to call $('.testimonialSlider').flexslider(...) which threw a TypeError in the browser console on every page. The element does not exist in this rebuild and never will — testimonials were a feature of the original Grav theme that we are not porting. Hero carousel and employees carousel are both Bootstrap-3, auto-initialized via data-ride. No functional impact on the page (every initializer before this block already ran), just a noisy console error. --- static/js/scripts.js | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/static/js/scripts.js b/static/js/scripts.js index 8f29a46..dd999d4 100644 --- a/static/js/scripts.js +++ b/static/js/scripts.js @@ -80,28 +80,9 @@ jQuery(function ($) { }()); - // ------------------------------------------------------------- - // 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; - }) - }()); + // 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". }); // JQuery end