1$(function(){ 2 axios.get('https://www.belnatio-golf.com/wp/wp-json/wp/v2/competition/?wpse_custom_order=menu_order&order=asc') 3 .then( (response) => { 4 for(const item of response.data){ 5 let html = '' 6 if(item.acf.select == 'no'){ 7 html = ` 8 <tr class="test"> 9 <th class="w35p swauto">${item.acf.date}${item.acf.week}</th> 10 <td> 11 <div class="grid"> 12 <div class="g7 sg12 fst">${item.title.rendered}</div> 13 </div> 14 </td> 15 </tr> 16 ` 17 } else { 18 html = ` 19 <tr class="test"> 20 <th class="w35p swauto">${item.acf.date}${item.acf.week}</th> 21 <td> 22 <div class="grid"> 23 <div class="g7 sg12 fst">${item.title.rendered}</div> 24 <div class="g5 sg12"> 25 <a href="${item.acf.pdf}" target="_blank"> 26 <span class="pdf">詳細ã¯ãã¡ã</span> 27 </a> 28 </div> 29 </div> 30 </td> 31 </tr> 32 ` 33 } 34 $('.js-competition').append(html) 35 } 36 }) 37 .catch( (error) => { 38 console.log('åå¾å¤±æ', error); 39 }) 40})
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.