1(function() { 2 var main = '.cycloneslider-template-thumbnails'; 3 4 jQuery(document).on('cycle-initialized', main+' .cycloneslider-slides', function( event, optionHash ) { 5 6 jQuery(this).parent().next().find('li').eq(optionHash.currSlide).addClass('current'); /* Higlight first thumb */ 7 8 }); 9 10 jQuery(document).on('cycle-before', main+' .cycloneslider-slides', function( event, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag ) { 11 var i = optionHash.nextSlide; 12 13 jQuery(this).parent().next().find('li').removeClass('current').eq(i).addClass('current'); 14 15 if(optionHash.dynamicHeight == "on" && ((optionHash.autoHeight+"").indexOf(":") == -1) ) 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) */ 16 17 }); 18 19 jQuery(document).on('click', '.cycloneslider-thumbnails li', function(){ 20 var i = jQuery(this).index(); 21 22 jQuery(this).parents('.cycloneslider-thumbnails').prev().find('.cycloneslider-slides').cycle('goto', i); 23 }); 24 25})();
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.