1$(function() { 2 $('.tt-ad-container').each(function() { 3 var $container = $(this); 4 var $images = $container.find('img'); 5 6 if ( $container.hasClass('tt-ad-container-footer') ) { 7 adverts_SetWidthOfImages($container); 8 } 9 10 if ($images.length > 1) { 11 var $slideShow = $container.find('.tt-ad-slideshow'); 12 13 // Hide all but first 14 $slideShow.children('div:gt(0)').hide(); 15 16 setInterval(function() { 17 $slideShow.children('div:first') 18 .hide() 19 .next() 20 .show() 21 .end(2000) 22 .appendTo($slideShow); 23 }, 3000); 24 } 25 }); 26 27 $(window).on('resize', function() { 28 $('.tt-ad-container.tt-ad-container-footer').each(function() { 29 adverts_SetWidthOfImages($(this)); 30 }); 31 }); 32}); 33 34 35 36function adverts_SetWidthOfImages($container) { 37 $container.find('img').css('maxWidth', $(window).width() + 'px'); 38} 39 40 41
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.