1'use strict'; 2window.addEventListener('load', function () { 3 profileSlide.init(); 4 // topProfile.init(); 5 document.body.classList.add('is-json-loaded'); 6}); 7const profileSlide = { 8 instance: null, 9 set() { 10 this.instance = new Swiper('.js-profile-slide', { 11 speed: 0, 12 slidesPerView: 'auto', 13 effect: 'fade', 14 fadeEffect: { 15 crossFade: true, 16 }, 17 rewind: true, 18 // autoplay: { 19 // delay: 8000, 20 // disableOnInteraction: false, 21 // }, 22 pagination: { 23 el: '.js-profile-slide-pagination', 24 clickable: true, 25 }, 26 }); 27 }, 28 init() { 29 this.set(); 30 }, 31}; 32const topProfile = { 33 json() { 34 new DATA_BASE_JSON({ 35 target: '[data-sonymusic-base-json="profile"]', 36 targetTemplate: '[data-sonymusic-base-json="profile"] template', 37 page: 'detail', 38 dataJsonDetail: 'https://www.sonymusic.co.jp/json/v2/artist/'.concat(artistCode, '/profile'), 39 40 functions: { 41 img() { 42 return this.detail.images[0].image_original; 43 }, 44 }, 45 on: { 46 loaded(state) { 47 document.querySelector('.js-profile-detail').innerHTML = state.detail.body_text; 48 jsonLoad.on(); 49 }, 50 }, 51 }); 52 }, 53 init() { 54 this.json(); 55 }, 56};
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.