1(function ($) { 2 Drupal.behaviors.viewsBootstrapCarousel = { 3 attach: function(context, settings) { 4 $.each(settings.viewsBootstrap.carousel, function(id, carousel) { 5 try { 6 // Does the view have more than 1 item? 7 // If not, hide the indicators and controls. 8 if ($('#views-bootstrap-carousel-' + carousel.id + ' .carousel-inner .item').length > 1) { 9 $('#views-bootstrap-carousel-' + carousel.id, context).carousel(carousel.attributes); 10 } 11 else { 12 $('#views-bootstrap-carousel-' + carousel.id, context).find('.carousel-indicators').hide(); 13 $('#views-bootstrap-carousel-' + carousel.id, context).find('.carousel-control').hide(); 14 } 15 } 16 catch(err) { 17 console.log(err); 18 } 19 }); 20 } 21 }; 22})(jQuery);
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.