1 2(function($){ 3 4 $(document).ready(function() 5 { 6 $('.sc-sponsor-box > ul > li').hover( 7 function() 8 { 9 var li = $(this); 10 11 if(li.find('.sc-sponsor-image-alt').length) 12 { 13 // make sure positioning is identical for default and alt image 14 li.find('.sc-sponsor-image-alt').attr('style', 15 li.find('.sc-sponsor-image').attr('style')); 16 17 li.find('.sc-sponsor-image').hide(); 18 li.find('.sc-sponsor-image-alt').show(); 19 } 20 }, 21 function() 22 { 23 var li = $(this); 24 25 li.find('.sc-sponsor-image').show(); 26 li.find('.sc-sponsor-image-alt').hide(); 27 } 28 ); 29 }); 30 31 $(window).load(function() 32 { 33 $(".sc-sponsor-slider .flexslider").flexslider( 34 { 35 animation:"slide", 36 directionNav:true, 37 animationLoop:true, 38 slideshow:false, 39 controlNav:false, 40 pauseOnHover:true, 41 start: function() 42 { 43 centerVertically('.sc-sponsor-slider .sc-sponsor-image'); 44 centerVertically('.sc-sponsor-slider .sc-sponsor-image-alt'); 45 }, 46 before: function() 47 { 48 centerVertically('.sc-sponsor-slider .sc-sponsor-image'); 49 centerVertically('.sc-sponsor-slider .sc-sponsor-image-alt'); 50 } 51 }); 52 53 centerVertically('.sc-sponsor-box .sc-sponsor-image'); 54 centerVertically('.sc-sponsor-box .sc-sponsor-image-alt'); 55 }); 56 57 function centerVertically(pattern) 58 { 59 var a, y; 60 61 $(pattern).each(function(i, img) 62 { 63 a = $(img).parent(); 64 y = Math.floor($(a).height() / 2 - $(img).height() / 2); 65 66 $(img).css("padding-top", y + "px"); 67 }); 68 } 69 70})(jQuery);
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.