1jQuery(document).ready(function(){ 2 3 var maxHeight = 0; 4 jQuery('#newsslideritems .slides li').each( function() { 5 if( jQuery(this).height() > maxHeight ) 6 maxHeight = jQuery(this).height(); 7 }); 8 jQuery('#newsslideritems').css( 'height', maxHeight ); 9 jQuery('#newsslideritems .slides li').css( 'height', maxHeight ); 10 11 function mycarousel_initCallback(carousel) { 12 jQuery('.jcarousel-control a').bind('click', function() { 13 carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text())); 14 return false; 15 }); 16 17 jQuery('#tscarousel-next').bind('click', function() { 18 carousel.next(); 19 return false; 20 }); 21 22 jQuery('#tscarousel-prev').bind('click', function() { 23 carousel.prev(); 24 return false; 25 }); 26 }; 27 28 jQuery('#slider').jcarousel({ 29 scroll: 1, 30 wrap:"both", 31 initCallback: mycarousel_initCallback 32 }); 33 34 //jQuery('.jcarousel-skin-tango .jcarousel-clip-vertical').css( 'height', maxHeight ); 35 36});
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.