function getOddsOu(fixtureId, thn, tan) { getData('fixtures/' + fixtureId + '/analysis/odds/ou', null, (data) => { // console.log(data); if (!data?.odds?.length) { return; } const odds = data?.odds; const teams = { 'home': [], 'away': [] }; const teamTypes = ['home', 'away']; for (const i in odds) { const o = odds[i]; teams[o.team].push(o); } html = ``; html += `
`; } else { html += ` | `; } html += ` | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
`; html += ` | สูง | `; html += `ต่ำ | `; html += `เสมอ | `; html += `คี่ | `; html += `คู่ | `; html += `||||||
${o.name} | `; html += `${o.over} | `; html += `${o.under} | `; html += `${o.draw} | `; html += `${o.odd} | `; html += `${o.even} | `; html += `