1(function ($, Drupal, drupalSettings, once) { 2 Drupal.behaviors.mtowlCarouselPromotedPosts = { 3 attach: function (context, settings) { 4 once('mtowlCarouselPromotedPostsInit', ".mt-carousel-promoted-posts", context).forEach(function(item) { 5 $(item).owlCarousel({ 6 items: 2, 7 responsive:{ 8 0:{ 9 items:1, 10 }, 11 480:{ 12 items:1, 13 }, 14 768:{ 15 items:1, 16 }, 17 992:{ 18 items:2, 19 }, 20 1200:{ 21 items:4, 22 }, 23 1680:{ 24 items:4, 25 } 26 }, 27 autoplay: true, 28 autoplayTimeout: 5000, 29 nav: true, 30 dots: false, 31 loop: true, 32 navText: [Drupal.t('prev', {}, {context: "Owl Carousel prev text"}),Drupal.t('next', {}, {context: "Owl Carousel next text"})] 33 }); 34 }); 35 } 36 }; 37})(jQuery, Drupal, drupalSettings, once);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.