1$(document).ready(function () { 2 MAIN.getJSON('https://www.sma.co.jp/artist/json/info/371', function (json) { 3 var data = json.info.item; 4 var len = data.length; 5 var srcPost = ''; 6 var srcList = ''; 7 var link = ''; 8 var date = ''; 9 var myData = null; 10 var $target; 11 for(var i=0; i < 10 ; i++){ 12 myData = data[i]; 13 link = ''; 14 date = myData.pubDate.replace(/\//g,'.'); 15 srcPost += '<article id="post'+myData.id+'" class="news_item">'; 16 srcPost += '<h3 class="mb15">'+myData.title+'</h3>'; 17 srcPost += '<div class="date">'+date+'</div>'; 18 srcPost += '<div class="txt">'+nl2br(myData.text)+'</div>'; 19 srcPost += '</article>'; 20 srcList += '<li><a href="#post'+myData.id+'"><span class="date">'+date+'</span><span class="text">'+myData.title+'</span></a></li>'; 21 } 22 $('#content .json').html(srcPost); 23 $('#content .lst-article').html(srcList); 24 25 $('.post iframe').each(function () { 26 var src = $(this).attr('src'); 27 28 if(src.indexOf('youtube.com/embed/')){ 29 $(this).wrap('<div class="video" />'); 30 } 31 }) 32 33 if(window.location.hash){ 34 $target = $(window.location.hash); 35 MAIN.scrollToTarget($target, 'easeOutQuart', 500); 36 } 37 }) 38});
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.