1async function loadLiveMatch() { 2 try { 3 const response = await fetch("/spvgg_live_match", { 4 method: "GET", 5 headers: { 6 "X-Requested-With": "XMLHttpRequest" 7 } 8 }); 9 10 if (!response.ok) { 11 throw new Error("error network response"); 12 } 13 14 const html = await response.text(); 15 16 // Append HTML inside #spvgg_live_match 17 document.querySelector("#spvgg_live_match").innerHTML = html; 18 } 19 20 catch (error) { 21 console.error("error:", error); 22 } 23 24} 25 26loadLiveMatch(); 27 28setInterval(loadLiveMatch, 600000); // seconds, 10 minutes now 29 30// scroll on matches 31/* 32const el = document.getElementById("spvgg_match_list_new"); 33 34let currentMargin = parseFloat(getComputedStyle(el).marginLeft) || 0; 35 36el.addEventListener("wheel", (e) => { 37 e.preventDefault(); 38 39 const scrollSpeed = 150; // pixels per scroll 40 const direction = e.deltaY > 0 ? 1 : -1; 41 42 // Update margin-left based on scroll 43 currentMargin -= direction * scrollSpeed; 44 45 // Optional: clamp min/max values 46 const maxScroll = 0; 47 const minScroll = -el.scrollWidth + window.innerWidth; 48 49 currentMargin = Math.min(maxScroll, Math.max(minScroll, currentMargin)); 50 51 el.style.marginLeft = `jQuery{currentMargin}px`; 52}, { passive: false }); 53*/
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.