1jQuery(document).ready(function($){ 2 $.each(Drupal.settings.carousel, function(key, carousel_settings){ 3 4 // Add swipeable class to carousel wrapper for mouse styling 5 carousel_settings.onCreate = function(){ 6 checkSwipe(this, carousel_settings); 7 checkPagination(this, carousel_settings); 8 checkVertical(this, carousel_settings); 9 } 10 // Initalise carousel 11 $(carousel_settings.element).carouFredSel(carousel_settings); 12 13 // Initalise carousel and trigger resize event to prevent height 14 // $(carousel_settings.element + ' .carousel-item:first-of-type img').load(function() { 15 // $(carousel_settings.element).carouFredSel(carousel_settings); 16 // }); 17 // collapse due to flexbox and absolutly positioned slide content 18 }); 19 20 function checkSwipe(element, carousel_settings){ 21 if (typeof carousel_settings.swipe != 'undefined') { 22 $(element).parent().addClass('swipable'); 23 } 24 } 25 26 function checkPagination(element, carousel_settings){ 27 if (typeof carousel_settings.pagination != 'undefined') { 28 $(element).parent().parent().addClass('pagination'); 29 } 30 } 31 32 function checkVertical(element, carousel_settings){ 33 if (carousel_settings.direction == 'up' || carousel_settings.direction == 'down' ) { 34 $(element).parent().addClass('vertical'); 35 } 36 } 37 38});
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.