瞬息萬變的足球盛宴!球探app為你奉上荷甲實(shí)時(shí)比分直播
- 發(fā)布于:2024-10-15 10:55:42
- 來源:24直播網(wǎng)
直播信號(hào)源:
火鳳直播 {熱門推薦}NBA現(xiàn)場(chǎng)直播美女專屬解盤
瞬息萬變的足球盛宴!球探app為你奉上荷甲實(shí)時(shí)比分直播
- 阿賈克斯 vs 費(fèi)耶諾德
- PSV埃因霍溫 vs 海倫芬
- 烏德勒支 vs 格羅寧根
- 威廉二世 vs 鹿特丹斯巴達(dá)
- 福圖納錫塔德 vs 茲沃勒
比賽信息
- 時(shí)間:
- 地點(diǎn):
- 裁判:
比分
const scoreboard = document.getElementById('scoreboard');const team1Name = document.getElementById('team-1-name');const team1Score = document.getElementById('team-1-score');const team2Name = document.getElementById('team-2-name');const team2Score = document.getElementById('team-2-score');const matchEvents = document.getElementById('match-events');const matchGoals = document.getElementById('match-goals');const matchAssists = document.getElementById('match-assists');const matchYellowCards = document.getElementById('match-yellow-cards');const matchRedCards = document.getElementById('match-red-cards');let currentMatchId = 1;const socket = new WebSocket('ws://localhost:8080');socket.onopen = () => {console.log('WebSocket connection established');socket.send(JSON.stringify({ type: 'subscribe', matchId: currentMatchId }));};socket.onmessage = (event) => {const data = JSON.parse(event.data);if (data.type === 'match-update') {updateMatchDetails(data.match);}};const updateMatchDetails = (match) => {matchDetails.classList.remove('visually-hidden');matchTime.innerText = match.time;matchLocation.innerText = match.location;matchReferee.innerText = match.referee;team1Name.innerText = match.teams[0].name;team1Score.innerText = match.teams[0].score;team2Name.innerText =match.teams[1].name;team2Score.innerText = match.teams[1].score;matchGoals.innerText = match.events.filter((event) => event.type === 'goal').map((event) => event.player).join(', ');matchAssists.innerText = match.events.filter((event) => event.type === 'assist').map((event) => event.player).join(', ');matchYellowCards.innerText = match.events.filter((event) => event.type === 'yellow-card').map((event) => event.player).join(', ');matchRedCards.innerText = match.events.filter((event) => event.type === 'red-card').map((event) => event.player).join(', '); };const setActiveMatch = (matchId) => {const matchItem = matches.querySelector(`[data-match-id="${matchId}"]`);const activeMatch = matches.querySelector('.active');if (matchItem && activeMatch) {activeMatch.classList.remove('active');matchItem.classList.add('active');currentMatchId = matchId;socket.send(JSON.stringify({ type: 'subscribe', matchId: currentMatchId }));}};matches.addEventListener('click', (event) => {const matchId = event.target.getAttribute('data-match-id');if (matchId) {setActiveMatch(matchId);}});球隊(duì) | 比分 |
---|
相關(guān)資訊
- | 胡梅爾斯因病缺席訓(xùn)練無緣首發(fā)
- | 貝爾戈米指出卡爾博尼不適應(yīng)國際米蘭的352戰(zhàn)術(shù)體系
- | 埃弗頓計(jì)劃引進(jìn)羅馬22歲中場(chǎng)博韋已向其提出報(bào)價(jià)
- | 洛博特卡交易告吹:那不勒斯拒絕低價(jià)出售球星
- | 國際米蘭鋒線新秀皮奧-埃斯波西托即將加盟卡利亞里
- | 尤文圖斯有望簽下道格拉斯-路易斯
- | 亞特蘭大有意引進(jìn)薩索洛中場(chǎng)索爾茨維特
- | 尤文圖斯新任主帥要求留下潛力新星蘇萊
- | 弗拉泰西經(jīng)紀(jì)人與國米就出場(chǎng)時(shí)間問題展開磋商
- | 尤文圖斯希望以700萬歐元售出什琴斯尼
最新資訊
- | 王子銘談世預(yù)賽感受:渴望為國出戰(zhàn)
- | 足協(xié)杯決賽前瞻:山東泰山陣容回暖沖冠
- | 利雅得勝利中場(chǎng)球員塔利斯卡已同意加盟費(fèi)內(nèi)巴切
- | 馬雷斯卡談霍爾處境:從核心球員到切爾西新角色需適應(yīng)
- | 亞足聯(lián)擬推亞洲國傢聯(lián)賽引爭(zhēng)議
- | 巴薩計(jì)劃與前鋒萊萬多夫斯基續(xù)約
- | 皇馬和曼聯(lián)都對(duì)羅馬中衛(wèi)恩迪卡表示興趣
- | 申花9-3大勝浙江,斯盧茨基關(guān)注球員狀態(tài)與亞冠備戰(zhàn)
- | 胡梅爾斯因病缺席訓(xùn)練無緣首發(fā)
- | 諾伊爾提前結(jié)束訓(xùn)練預(yù)計(jì)出戰(zhàn)拜仁對(duì)奧格斯堡