1jQuery(document).ready(function(){ 2// --------------------------------------------------------- 3// OWL Carousel init 4// --------------------------------------------------------- 5 jQuery('div[id^="owl-carousel-"]').each(function(){ 6 var carousel = jQuery(this), 7 auto_play = parseInt(carousel.attr('data-auto-play'))<1 ? false : parseInt(carousel.attr('data-auto-play')), 8 items_count = parseInt(carousel.attr('data-items')), 9 display_navs = carousel.attr('data-nav')=='true' ? true : false, 10 display_pagination = carousel.attr('data-pagination')=='true' ? true : false, 11 auto_height = items_count<=1 ? true : false; 12 13 jQuery(carousel).owlCarousel({ 14 autoPlay: auto_play, 15 items: items_count, 16 navigation: display_navs, 17 pagination: display_pagination, 18 navigationText: false, 19 autoHeight: auto_height, 20 itemsDesktop: [1170, 5], 21 itemsDesktopSmall: [980, 4], 22 itemsTablet: [768, 3], 23 itemsMobile: [480, 2] 24 }); 25 }) 26 jQuery('.owl-prev').addClass('icon-chevron-left'); 27 jQuery('.owl-next').addClass('icon-chevron-right'); 28});
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.