1$(function(){ 2 $.ajax({ 3 type: 'GET', 4 url: 'https://lookmee.sakura.ne.jp/wp-json/wp/v2/posts?_embed&per_page=3', 5 dataType: 'json' 6 }).done(function(json){ 7 var html = ''; 8 //è¨äºã®ä»¶æ°åã¤ãã¬ã¼ããã 9 $.each(json, function( i, row ) { 10 //ããã°ã®ã¿ã¤ãã« 11 var title = row.title.rendered; 12 //æç¨¿æ¥ã®åå¾ 13 var date = new Date(row.date); 14 var year=date.getFullYear(); 15 var month=date.getMonth() + 1; 16 var day=date.getDate(); 17 //ã«ãã´ãªã¼å 18 var category = row._embedded["wp:term"][0][0].name; 19 //other_link 20 var other = row.other_link; 21 //ããã°ã®URL 22 var link = row.link.replace("lookmee.sakura.ne.jp","lookmee.jp"); 23 //other_linkããã£ãã¨ãã®åå² 24 var newsClass = ''; 25 var target = '_self'; 26 if(other){ 27 link = other; 28 newsClass = 'NewWindow'; 29 target = '_blank'; 30 } 31 32 html += '<article class="News_Item--Wrapper">'; 33 html += '<time>' + year + '.' + month + '.' + day + '</time><span class="News_Category">'+ category +'</span>'; 34 html += '<h3>' + title + '</h3><a class="' + newsClass + '" href="' + link + '" target="' + target +'"></a>'; 35 html += '</article>'; 36 }); 37 //æ´å½¢ããè¨äºã®æ å ±ããã¼ã¸ã«è¿½å ãã 38 $('.home-News_List').append(html) 39 }).fail(function(json){ 40 console.error('è¨äºåå¾ã«å¤±æãã¾ããã') 41 }); 42});
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.