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.
37 lines
1.0 KiB
37 lines
1.0 KiB
(function ($, Drupal, drupalSettings) { |
|
Drupal.behaviors.mtOwlCarouselSquarePosts = { |
|
attach: function (context, settings) { |
|
$(context).find('.mt-carousel-square-posts').once('mtOwlCarouselSquarePostsInit').each(function() { |
|
$(this).owlCarousel({ |
|
items: 5, |
|
responsive:{ |
|
0:{ |
|
items:1, |
|
}, |
|
480:{ |
|
items:2, |
|
}, |
|
768:{ |
|
items:2, |
|
}, |
|
992:{ |
|
items:2, |
|
}, |
|
1200:{ |
|
items:4, |
|
}, |
|
1680:{ |
|
items:5, |
|
} |
|
}, |
|
autoplay: drupalSettings.magazineplus.owlCarouselSquarePostsInit.owlSquarePostsAutoPlay, |
|
autoplayTimeout: drupalSettings.magazineplus.owlCarouselSquarePostsInit.owlSquarePostsEffectTime, |
|
nav: true, |
|
dots: false, |
|
loop: true, |
|
navText: false |
|
}); |
|
}) |
|
} |
|
}; |
|
})(jQuery, Drupal, drupalSettings);
|
|
|