fix(js): remove dead testimonialSlider/flexslider call from scripts.js

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.
This commit is contained in:
2026-05-21 11:33:51 +02:00
parent 96eea20c97
commit 59c3bae5b2
+3 -22
View File
@@ -80,28 +80,9 @@ jQuery(function ($) {
}()); }());
// ------------------------------------------------------------- // testimonialSlider block removed — used flexslider for a widget that
// testimonialSlider // does not exist in this rebuild. Hero carousel and employees carousel
// ------------------------------------------------------------- // are both Bootstrap-3, initialized via data-ride="carousel".
(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 }); // JQuery end