jonnykates
8/1/2017 - 2:57 PM

Sets a body class if the page has a carousel with an image

Sets a body class if the page has a carousel with an image

if ($('.carouselSlide img:visible, .carouselSlide.containsVideo:visible').length > 0) {
  $('body').addClass('page-has-banner');
} else {
  $('body').addClass('page-no-banner');
}