1var Usas = Usas || {}; 2 3(function () { 4 function FeaturedVideos_Index(divId) { 5 function initialize() { 6 divideThumbs(); 7 } 8 function divideThumbs() { 9 $('#' + divId + '-Thumbs').children('div:visible').each(function (index, div) { 10 if (index == 0) { 11 $(div).css('border-top', 'none'); 12 } 13 else { 14 $(div).css('border-top', 'solid 1px #0b3a7b'); 15 } 16 }); 17 } 18 function filter(span) { 19 $('#' + divId).find('.usas-content-featuredvideos-category').each(function (index, span) { 20 $(span).removeClass('usas-content-featuredvideos-category-selected'); 21 }); 22 $(span).addClass('usas-content-featuredvideos-category-selected'); 23 var foundFirst = false; 24 $('#' + divId + '-Thumbs').children('div').each(function (index, div) { 25 if ($(div).attr('data-usas-category-ids').indexOf($(span).attr('data-usas-category-id')) == -1) { 26 $(div).hide(); 27 } 28 else { 29 $(div).show(); 30 if (!foundFirst) { 31 var img = $(div).find('img'); 32 play(img); 33 foundFirst = true; 34 } 35 } 36 }); 37 divideThumbs(); 38 } 39 function play(img) { 40 var html = ''; 41 switch ($(img).attr('data-usas-link-source')) { 42 default: 43 case 'YouTube': 44 html = '<iframe allowfullscreen frameborder="0" src="' + $(img).attr('data-usas-link') + '?autoplay=1" style="height: 100%; width: 100%;"></iframe>'; 45 break; 46 } 47 $('#' + divId + '-Player').html(html); 48 } 49 return { 50 Filter: filter, 51 Initialize: initialize, 52 Play: play 53 }; 54 } 55 Usas.Content_FeaturedVideos = Usas.Content_FeaturedVideos || {}; 56 Usas.Content_FeaturedVideos.Index = Usas.Content_FeaturedVideos.Index || {}; 57 Usas.Content_FeaturedVideos.Index.WireUp = function (divId) { 58 Usas.Content_FeaturedVideos.Index[divId] = new FeaturedVideos_Index(divId); 59 Usas.Content_FeaturedVideos.Index[divId].Initialize(); 60 }; 61})();
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.