$(document).ready(function() {
const $flexCardContainer = $('.flex-card-container');
const $flexCardItems = $('.flex-card-item');
if (window.innerWidth < 768) {
$flexCardContainer.addClass('owl-carousel owl-theme');
$flexCardItems.addClass('flex-card-hover');
$flexCardContainer.owlCarousel({
loop: false,
nav: false,
dots: false,
items: 1
});
} else {
$flexCardItems.on('mouseenter', function() {
$flexCardItems.removeClass('flex-card-hover');
$(this).addClass('flex-card-hover');
});
}
$('.speed-slider').owlCarousel({
loop: false,
margin: 10,
nav: false,
items: 1,
dots: true,
});
});