1$(function(){ 2 var initNews = function() { 3 var newsList = $('.top-info-news-list'); 4 var newsListOrg = $('tbody', newsList).clone(); 5 6 newsListOrg = $('tr', newsListOrg).sort(function(a, b){ 7 var dateA = parseInt($(a).data('date').split('-')[0]); 8 var dateB = parseInt($(b).data('date').split('-')[0]); 9 10 return dateB - dateA; 11 }); 12 13 newsListOrg.each(function(){ 14 var category = $('> p', $('td', this).eq(1)).text().trim(); 15 if(category == '®') category = '®ñ'; 16 $('> p', $('td', this).eq(1)).text(category); 17 }); 18 19 var setNews = function(category){ 20 $('tbody', newsList).empty(); 21 var cnt = 10; 22 23 $(newsListOrg).each(function(){ 24 var tpl = $(this).clone(); 25 var tplCategory = $('> p', $('td', tpl).eq(1)).text().trim(); 26 27 if(category == '·×Ä' || tplCategory == category) { 28 cnt--; 29 30 $('tbody', newsList).append(tpl); 31 32 if(cnt < 0) return false; 33 } 34 }); 35 36 newsList.css('visibility', ''); 37 newsList.scrollTop(0); 38 }; 39 40 $('.top-info-news-tab a').on('click', function(){ 41 $('.top-info-news-tab a').removeClass('on'); 42 $(this).addClass('on'); 43 44 var category = $(this).text(); 45 setNews(category); 46 47 return false; 48 }); 49 50 setNews('·×Ä'); 51 }; 52 53 initNews(); 54});
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.