1function loadAll(e) { 2 let target = document.getElementById('loadmore'); 3 let less = document.getElementById('loadless'); 4 target.classList.add('hidden'); 5 less.classList.remove('hidden'); 6 7 let morematches = document.getElementById('finished'); 8 morematches.classList.remove('hidden'); 9} 10 11function loadLess(e) { 12 let target = document.getElementById('loadmore'); 13 let less = document.getElementById('loadless'); 14 target.classList.remove('hidden'); 15 less.classList.add('hidden'); 16 let morematches = document.getElementById('finished'); 17 morematches.classList.add('hidden'); 18} 19 20 21(function ($) { 22 23 let table = $('#match_calendar')[0]; 24 if (table) { 25 26 $(".clickable-row").click(function () { 27 window.location = $(this).data("href"); 28 }); 29 } 30 31 32 function addBasicScore(item, newRow) { 33 const matchTime = new Date(item.startDate); 34 35 var hr = matchTime.getHours(); 36 var min = matchTime.getMinutes(); 37 if (min < 10) { 38 min = "0" + min; 39 } 40 41 42 let day = matchTime.getDate(); 43 let month = matchTime.getMonth(); 44 if (month < 10) { 45 month = "0" + month; 46 } 47 let year = matchTime.getFullYear(); 48 49 let date = newRow.insertCell(); 50 let dateContent = document.createTextNode(day + '.' + month + '.' + year); 51 date.appendChild(dateContent); 52 53 let time = newRow.insertCell(); 54 let timeContent = document.createTextNode(hr + ':' + min); 55 time.appendChild(timeContent); 56 57 58 let tournement = newRow.insertCell(); 59 60 let tournementContent = ''; 61 if (item.tournamentId === 15403) { 62 tournementContent = document.createElement('img'); 63 tournementContent.src = 'http://staging-hikfodbold.kinsta.cloud/wp-content/themes/hikfodbold/images/divison.png'; 64 } else { 65 tournementContent = document.createTextNode(item.tournamentName); 66 } 67 tournement.appendChild(tournementContent); 68 69 70 let homeTeam = newRow.insertCell(); 71 72 let homeTeamContent = document.createElement('p'); 73 homeTeamContent.innerText = item.homeName; 74 var homeLogo = document.createElement('img'); 75 homeLogo.src = 'https://dxugi372p6nmc.cloudfront.net/spdk/current/256x256/' + item.homeId + '/teamlogo.png'; 76 homeTeam.classList.add('images'); 77 homeTeam.appendChild(homeLogo); 78 homeTeam.appendChild(homeTeamContent); 79 80 let awayTeam = newRow.insertCell(); 81 let awayTeamContent = document.createElement('p'); 82 awayTeamContent.innerText = item.awayName; 83 var awayLogo = document.createElement('img'); 84 awayLogo.src = 'https://dxugi372p6nmc.cloudfront.net/spdk/current/256x256/' + item.awayId + '/teamlogo.png'; 85 awayTeam.classList.add('images'); 86 awayTeam.appendChild(awayLogo); 87 awayTeam.appendChild(awayTeamContent); 88 89 let tv = newRow.insertCell(); 90 let tvContent = document.createTextNode('-'); 91 92 tv.appendChild(tvContent); 93 } 94 95 96})(jQuery);
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.