You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
861 B
29 lines
861 B
6 years ago
|
(function ($, Drupal, drupalSettings) {
|
||
|
Drupal.behaviors.mtOwlCarouselTestimonials = {
|
||
|
attach: function (context, settings) {
|
||
|
$(context).find('.mt-carousel-testimonials').once('mtOwlCarouselTestimonialsInit').each(function() {
|
||
|
$(this).owlCarousel({
|
||
|
items: 2,
|
||
|
responsive:{
|
||
|
0:{
|
||
|
items:1,
|
||
|
},
|
||
|
480:{
|
||
|
items:1,
|
||
|
},
|
||
|
1200:{
|
||
|
items:2,
|
||
|
}
|
||
|
},
|
||
|
autoplay: drupalSettings.magazineplus.owlCarouselTestimonialsInit.owlTestimonialsAutoPlay,
|
||
|
autoplayTimeout: drupalSettings.magazineplus.owlCarouselTestimonialsInit.owlTestimonialsEffectTime,
|
||
|
nav: true,
|
||
|
dots: false,
|
||
|
loop: true,
|
||
|
navText: false
|
||
|
});
|
||
|
})
|
||
|
}
|
||
|
};
|
||
|
})(jQuery, Drupal, drupalSettings);
|