function getOdds(includes, showFlow) { getData('fixtures/' + fixtureId + '/analysis/odds', null, (data) => { // console.log(data); if (!data?.bookmarkers?.length) { return; } const bookmarkers = data.bookmarkers; let html = `
`; html += `

เปรียบเทียบอัตราต่อรอง

`; html += ``; html += ``; html += ``; html += ``; html += ``; html += ``; html += ``; html += ``; if (showFlow !== false) { html += ``; } html += ``; html += ``; html += ``; html += ``; html += ``; html += ``; html += ``; html += ``; html += ``; html += ``; html += ``; html += ``; html += ``; html += ``; for (const k in bookmarkers) { const b = bookmarkers[k]; for (const kk in b.odds) { const o = b.odds[kk]; b.name = b.name.trim(); if (!includes || includes.indexOf(b.name) !== -1) { html += ``; if (kk == 0) { html += ``; html += ``; } else if (kk == 1) { html += ``; } else { html += ``; } html += ``; html += ``; html += ``; html += ``; html += ``; html += ``; html += ``; html += ``; html += ``; if (kk == 0) { if (showFlow != false) { html += ``; } } else if (kk == 1) { } else { } html += ``; } } } html += ``; html += `
บริษัทแฮนดิแคปเอเชีย1X2 ออดซสูง/ต่ำบอลไหล
ทีมเหย้าAHทีมเยือนทีมเหย้าเสมอทีมเยือนสูงออดชต่ำ
${ b.name.replace(/bet|BET|Bet/gi, '') }${ o.status }${ o.status }${ o.status }${ o.hc_home }${ o.hc_odds }${ o.hc_away }${ o.odds_home }${ o.odds }${ o.odds_away }${ o.lo_home }${ o.lo_draw }${ o.hc_away }`; html += ``; html += `ราคาบอลไหล ${ b.name }`; html += ``; html += `
`; html += `
`; $('#oddsSection').html(html); }, (error) => { console.log(error); }); }