1/* 2 * Initialization script for Screenshot Carousel 3 */ 4jQuery(function($){ 5 "use strict"; 6 7 var carousel = $('.thescreenshot'); 8 if(carousel){ 9 var enable_screenshot_box = function( content ){ 10 var elements = content.find('.screenshot-carousel'); 11 if(elements && (typeof($.fn.carouFredSel) != 'undefined')){ 12 $.each(elements, function(i, e){ 13 var self = $(e), 14 _pDataAttr = self.attr('data-carousel-pagination'); 15 16 var options = { 17 scroll: { fx: "crossfade", duration: "1500" }, 18 auto: true, 19 responsive: true, 20 prev : { 21 button : function(){return self.closest('.thescreenshot').find('.prev');}, 22 key : "left" 23 }, 24 next : { 25 button : function(){return self.closest('.thescreenshot').find('.next');}, 26 key : "right" 27 }, 28 swipe: { 29 onTouch: true, 30 onMouse: true, 31 options: { 32 excludedElements: "button, input, select, textarea, .noSwipe", 33 } 34 35 } 36 }; 37 38 if(typeof(_pDataAttr) != 'undefined'){ 39 options['pagination'] = _pDataAttr; 40 } 41 42 self.imagesLoaded( function() { 43 self.carouFredSel(options); 44 }); 45 46 }); 47 } 48 }; 49 enable_screenshot_box( carousel ); 50 } 51 52});
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.