1'use strict' 2 3$(window).on('load', function(){ 4 let text = "" 5 fetch('https://ssl4.eir-parts.net/V4Public/eir/8050/ja/announcement/announcement_11.js').then( 6 req => { 7 return req.text() 8 } 9 ).then( 10 result => { 11 for(let i = 25; i < (result.length - 2); i++){ 12 text = text + result[i] 13 } 14 const obj = JSON.parse(text) 15 const data = obj["item"] 16 const array = [data[0], data[1], data[2]] 17 18 for(let i = 0; i < array.length; i++){ 19 $('.ir-news__tab__body .s_eirList').append( 20 '<li class="eirItem s_eirList_item"><a class="eirItem_title_link s_eirItem" target="_blank"><div class="s_eirList_item_date s_eirModule_date"></div><div class="s_eirModule_category s_eirList_item_category"><span class="s_eirModule_category_icon"></span></div><div class="s_eirList_item_titleBox s_eirModule_titleBox"><span class="icn"></span><span class="s_eirModule_title_link"><span class="s_eirModule_title_label"></span></span><div class="eirItem_size s_eirModule_size s_titleBox_size"><span class="s_eirModule_size_item"></span></div></div></a></li>' 21 ) 22 } 23 for(let i = 0; i < $('.ir-news__tab__body .s_eirList .eirItem .eirItem_title_link').length; i++){ 24 $('.ir-news__tab__body .s_eirList .eirItem .eirItem_title_link').eq(i).attr('href', array[i]["link"]) 25 $('.ir-news__tab__body .s_eirList .eirItem .s_eirList_item_date').eq(i).text(array[i]["format_date"]) 26 let category 27 //ã«ãã´ãªåã 28 if( array[i]["news_type"] == "tanshin" || array[i]["news_type"] == "yuho" ){ 29 category = "財å" 30 }else if( array[i]["news_type"] == "press" || array[i]["news_type"] == "tanshin" ){ 31 category = "çµå¶" 32 }else if( array[i]["news_type"] == "announcement" ){ 33 category = "財å" 34 }else if( array[i]["news_type"] == "ir_material_for_fiscal_ym" ){ 35 if( array[i]["sub_type"] == "ir_material_for_fiscal_ym1" ){ 36 category = "財å" 37 }else{ 38 category = "çµå¶" 39 } 40 } 41 //pdfã¢ã¤ã³ã³å¤å® 42 if( array[i]['type'] == "pdf"){ 43 $('.ir-news__tab__body .s_eirList .eirItem .icn').eq(i).addClass('s_eirModule_type_icon-pdf') 44 } 45 $('.ir-news__tab__body .s_eirList .eirItem .s_eirModule_category_icon').eq(i).text(category) 46 $('.ir-news__tab__body .s_eirList .eirItem .s_eirModule_title_label').eq(i).text(array[i]["title"]) 47 const filesize = "ï¼" + array[i]["file_size"] + "KBï¼" 48 $('.ir-news__tab__body .s_eirList .eirItem .s_eirModule_size_item').eq(i).text(filesize) 49 } 50 } 51 ) 52})
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.