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