1document.addEventListener('DOMContentLoaded', function () { 2 const live = document.getElementById('fixture_iframe'); 3 const loader = document.getElementById('fake_iframeFixture'); 4 const fakeIframe = document.getElementById('appHome'); 5 6 if (live) { 7 const observer = new MutationObserver(function (mutationsList) { 8 for (const mutation of mutationsList) { 9 for (const node of mutation.addedNodes) { 10 if (node.nodeType === 1) { 11 // Kiá»m tra nếu node hoặc con cháu cá»§a node có class 'league-item' 12 if ( 13 node.classList.contains('load-more-btn') || 14 node.querySelector?.('.load-more-btn') || 15 node.querySelector?.('#tr_upper-live-titlez') || 16 node.querySelector?.('.table-no-tioem') 17 ) { 18 if (loader) { 19 live.style.opacity = 1; 20 setTimeout(() => { 21 fakeIframe.classList.add('hide-fake'); 22 loader.style.transition = 'opacity 0.5s ease'; 23 loader.style.opacity = 0; 24 loader.style.display = 'none'; 25 // loader.remove(); 26 }, 1000); 27 } 28 observer.disconnect(); // Ngừng theo dõi sau khi tìm thấy 29 return; 30 } 31 } 32 } 33 } 34 }); 35 36 observer.observe(live, { 37 childList: true, 38 subtree: true // nếu div nằm sâu bên trong 39 }); 40 } 41 42 document.addEventListener('click', function(e) { 43 const icon = e.target.closest('.Detail-icon'); 44 if (!icon) return; // chá» xá» lý khi click Äúng icon 45 46 const fullId = icon.id; // Và dụ: "detail_icon_2819489" 47 const parts = fullId.split('_'); 48 if (parts.length < 3) return; 49 const matchId = parts[2]; 50 51 const homeTeamElem = document.querySelector(`#ht_${matchId} .homeTeam`); 52 const guestTeamElem = document.querySelector(`#gt_${matchId} .guestTeam`); 53 54 const homeTeam = homeTeamElem ? homeTeamElem.textContent.trim() : ''; 55 const guestTeam = guestTeamElem ? guestTeamElem.textContent.trim() : ''; 56 57 if (window.match_detail_url && !window.Checkbox_hide_action) { 58 let slugDt = `${toThaiSlug(homeTeam)}-${toThaiSlug(guestTeam)}-${matchId}`; 59 window.open(window.match_detail_url + "/" + slugDt); 60 } 61 }); 62 63 let leagueIdsFilter = window.league_ids && typeof window.league_ids === typeof [] && window.league_ids.length > 0 64 let countryIdsFilter = window.nation_ids && typeof window.nation_ids === typeof [] && window.nation_ids.length > 0 65 if (leagueIdsFilter || countryIdsFilter) { 66 const selectLeague = document.getElementById("selectLeague"); 67 const el = document.querySelector("#scrollIframe .all-hot-filter > .button-df:first-child"); 68 if (el) { 69 el.remove(); 70 } 71 72 if (selectLeague && selectLeague.parentNode) { 73 selectLeague.parentNode.remove(); // âXóa cha 1 cấp 74 } 75 } 76});
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.