1(function() { 2 var speed = 'fast'; 3 var slides_selector = '.cycloneslider-template-dark .cycloneslider-slides'; 4 5 jQuery(document).on('cycle-before', slides_selector, function( event, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag ) { 6 var slide = jQuery( outgoingSlideEl ); /* Current slide */ 7 8 if(optionHash.dynamicHeight == "on" ) jQuery(this).animate({height:jQuery(incomingSlideEl).outerHeight()}, optionHash.autoHeightSpeed, optionHash.autoHeightEasing); /* Autoheight when dynamic height is on and auto height is not ratio (eg. 300:250) */ 9 10 jQuery( this ).find('.cycloneslider-caption-title').stop().fadeOut(0).end().find('.cycloneslider-caption-description').stop().fadeOut(0).end().find('.cycloneslider-caption-more').stop().fadeOut(0); 11 }); 12 13 jQuery(document).on('cycle-initialized cycle-after', slides_selector, function( event, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag ) { 14 var index = (event.type == 'cycle-initialized') ? optionHash.currSlide : optionHash.nextSlide; 15 var slide = jQuery( optionHash.slides[ index ] ); 16 17 slide.css('zIndex', parseInt(slide.css('zIndex'))+20); /* Fix for slideshow with youtube or vimeo slide */ 18 19 /* Cascade effect */ 20 slide.find('.cycloneslider-caption-title').fadeIn(speed, function(){ 21 slide.find('.cycloneslider-caption-description').fadeIn(speed, function(){ 22 slide.find('.cycloneslider-caption-more').fadeIn(speed); 23 }); 24 }); 25 }); 26 27})(); 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.