ZamPost.top
ZamPost.top, is an Internet media, news and entertainment company with a focus on digital media.

NFL Week 10 Pick ‘Em: Why Joe Burrow will save the day for the Bengals

0

Heading into Week 10, the Kansas Metropolis Chiefs are nonetheless unbeaten at 8-0 following an additional time win on Monday Night time Soccer.

Their NFL odds for the Tremendous Bowl are +400, and you may wager on Ok.C. and each crew at the best online sportsbook, BetMGM.

After this week’s football odds, listed below are my predictions and picks for this week’s video games towards the unfold:

Cincinnati Bengals vs. Baltimore Ravens
Kicking off Week 10 are the Bengals on the highway towards the Ravens of their second matchup of the season. The Bengals misplaced by three in additional time to Baltimore earlier this yr regardless of 5 landing passes from Joe Burrow. He had 5 landing passes once more in Week 9 towards the Las Vegas Raiders. Burrow’s passing skill will preserve this beneath six factors.
PICK: Bengals +6.5 (-120)

#betmgm-odds {
@media (max-width: 767px) {
margin: 0 20px 20px 20px;
}
}
#betmgm-odds {
@media (min-width: 768px) and (max-width: 1023px) {
width: 83%;
margin: 0px auto 20px auto;
}
}
.betmgmArticle {
font-family: “protipo-narrow”, sans-serif !vital;
width: 100%;
padding: 0;
margin-bottom: 24px;
border-radius: 8px;
show: inline-block;
font-family: Arial, sans-serif;
}

.betmgmArticle .header {
font-weight: daring;
margin-bottom: 10px;
show: block;
colour: var(–core-sn-blue-800-blue, #06192F);
text-decoration: none;
}

.betmgmArticle .content material {
show: flex;
flex-wrap: wrap;
align-items: middle;
padding: 20px 10px;
border-radius: 8px;
border: 1px strong var(–Gray-Scale-400-Gray, #CED4DA);
background: var(–Gray-Scale-0-White, #FFF);
}

@media (max-width: 767px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 1250px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}

.betmgmArticle .part {
width: 82px;
flex: 1;
text-align: middle;
}

.betmgmArticle .part .row {
font-size: 14px;
line-height: 22px;
}

.betmgmArticle .section-info {
flex: 2;
}

.betmgmArticle .section-info .gameDate {
colour: var(–core-sn-blue-800-blue, #06192F);
text-align: middle;
font-size: 14px;
font-style: regular;
font-weight: 700;
line-height: regular;
margin-bottom: 14px;
}

.betmgmArticle .section-info .team-logo {
width: 48px;
peak: 48px;
show: inline-block;
}

.betmgmArticle .section-info .versus {
show: inline-block;
margin: 0 16px;
font-size: 14px;
colour: #495057;
font-weight: 500;
}

.betmgmArticle .divider {
width: 1px;
background-color: #ddd;
background: var(–Gray-Scale-400-Gray, #CED4DA);
peak: 82px;
margin: 0 16px;
}

.betmgmArticle .title {
text-align: middle;
font-weight: daring;
margin-bottom: 8px;
font-size: 16px;
}
@media (max-width: 767px) {
.betmgmArticle .title {
text-align: left;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .title {
text-align: middle;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .title {
text-align: left;
}
}

@media (min-width: 1250px) {
.betmgmArticle .title {
text-align: middle;
}
}

.betmgmArticle .row {
margin-bottom: 5px;
show: flex;
justify-content: space-between;
margin: 0;
}
.betmgmArticle .row::earlier than {
show: none;
}

.betmgmArticle .worth {
font-weight: daring;
}

.betmgmArticle .purple {
colour: purple;
}

.betmgmArticle .inexperienced {
colour: inexperienced;
}

.betmgmArticle .betmgm-button {
cursor: pointer;
}
.betmgmArticle .betmgm-button a {
text-decoration: none;
}

.betmgmArticle .button button {
background-color: #005EB8;
colour: white;
padding: 6px 16px 14px 16px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: daring;
}

.betmgmArticle .buttonText {
place: relative;
colour: #ADB5BD;
font-size: 12px;
font-style: regular;
font-weight: 500;
line-height: regular;
text-align: left;
high: -6px;
margin-bottom: 10px;
}

.betmgmArticle .betMGMLogo {
text-align: left;
width: 150px;
peak: 42px;

@media (max-width: 767px) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-Black.svg’) no-repeat;
background-size: cowl;

@media (prefers-color-scheme: darkish) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-White.svg’) no-repeat;
}
}
}

.betmgmArticle .betMGMLogo img {
text-align: left;
width: 150px;
peak: 42px;
}

.betmgmArticle .content-mobile {
show: flex;
justify-content: space-around;
width: 100%;
margin-top: 20px;
}

@media (max-width: 767px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content-mobile {
show: none;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}

@media (min-width: 1250px) {
.betmgmArticle .content-mobile {
show: none;
}
}

.betmgmArticle .content-mobile .team-logos {
show: flex;
justify-content: flex-start;
width: 100%;
}

.betmgmArticle .content-mobile .team-logos .versus {
show: flex;
align-items: middle;
}

.betmgmArticle .content-mobile .gameDate {
text-align: left;
margin-bottom: 8px;
}

.betmgmArticle .content-mobile .buttonText {
text-align: left;
high: 0;
margin-bottom: 12px;
text-decoration: none;
colour: #ADB5BD;
}

@media (max-width: 767px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .desktop-only {
show: block;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 1250px) {
.betmgmArticle .desktop-only {
show: block;
}
}

async perform fetchOddsData(league, gameId) {
const res = await fetch(`https://stats-api.sportsnet.ca/livetracker?league=${league}&id=${gameId}`, {
cache: ‘no-store’,
});

if (!res.okay) {
throw new Error(‘Did not fetch odds knowledge’);
}

const knowledge = await res.json();
const oddsData = knowledge?.knowledge?.recreation?.particulars?.current_line;
const visitingTeam = knowledge?.knowledge?.recreation?.visiting_team;
const visitingTeamLogo = knowledge?.knowledge?.recreation?.visiting_team?.image_url_90;
const homeTeam = knowledge?.knowledge?.recreation?.home_team;
const homeTeamLogo = knowledge?.knowledge?.recreation?.home_team?.image_url_90;
const gameTimestamp = knowledge?.knowledge?.recreation?.particulars?.timestamp;

return { oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp };
}

async perform renderBetMGM(componentId, league, gameId) {
let oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp, error;

const container = doc.getElementById(componentId + ‘-odds’);
if (!container) return;

attempt {
({ oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp } = await fetchOddsData(league, gameId));
} catch (err) {
error = err.message;
}

if (error) {
container.innerHTML = `

Error: ${error}

`;
return;
}

if (!oddsData) {
container.innerHTML = `

Odds knowledge not out there

`;
return;
}

let gameDate = new Date(gameTimestamp * 1000);
const gameDateFormatted = gameDate.toLocaleDateString(‘en-US’, { yr: ‘numeric’, month: ‘lengthy’, day: ‘numeric’ });

container.innerHTML = `

BetMGM Odds

${gameDateFormatted}

VS

Moneyline

${visitingTeam.short_name}
${oddsData.away_money > 0 ? `+${oddsData.away_money}` : oddsData.away_money}

${homeTeam.short_name}
${oddsData.home_money > 0 ? `+${oddsData.home_money}` : oddsData.home_money}

Unfold

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

${oddsData.fav_id === homeTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}
${oddsData.fav_id === homeTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

Over/Underneath

O ${oddsData.complete}
${oddsData.over_money > 0 ? `+${oddsData.over_money}` : oddsData.over_money}

U ${oddsData.complete}
${oddsData.under_money > 0 ? `+${oddsData.under_money}` : oddsData.under_money}

Powered by

BetMGM Logo

${gameDateFormatted}

VS

Powered by

`;
}

// Instance utilization
renderBetMGM(‘block_720961fb849ea62115fc5bc954cf3822’, ‘NFL’, ‘54476ab9-3491-4a7c-80cb-fea915914640’);

New York Giants vs. Carolina Panthers
Given the five-point unfold, making a case for both crew is troublesome, however I will reluctantly facet with the Giants. The Panthers enable opposing receivers practically 140 receiving yards and one landing. The Giants have a rookie receiver, Malik Nabers, who has caught seven passes or extra in 5 video games. The Panthers gained in Week 9, however the QB continues to be a difficulty. Bryce Younger accomplished simply 61.5 per cent of his passes in that recreation.
PICK: Giants -5 (-110)

#betmgm-odds {
@media (max-width: 767px) {
margin: 0 20px 20px 20px;
}
}
#betmgm-odds {
@media (min-width: 768px) and (max-width: 1023px) {
width: 83%;
margin: 0px auto 20px auto;
}
}
.betmgmArticle {
font-family: “protipo-narrow”, sans-serif !vital;
width: 100%;
padding: 0;
margin-bottom: 24px;
border-radius: 8px;
show: inline-block;
font-family: Arial, sans-serif;
}

.betmgmArticle .header {
font-weight: daring;
margin-bottom: 10px;
show: block;
colour: var(–core-sn-blue-800-blue, #06192F);
text-decoration: none;
}

.betmgmArticle .content material {
show: flex;
flex-wrap: wrap;
align-items: middle;
padding: 20px 10px;
border-radius: 8px;
border: 1px strong var(–Gray-Scale-400-Gray, #CED4DA);
background: var(–Gray-Scale-0-White, #FFF);
}

@media (max-width: 767px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 1250px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}

.betmgmArticle .part {
width: 82px;
flex: 1;
text-align: middle;
}

.betmgmArticle .part .row {
font-size: 14px;
line-height: 22px;
}

.betmgmArticle .section-info {
flex: 2;
}

.betmgmArticle .section-info .gameDate {
colour: var(–core-sn-blue-800-blue, #06192F);
text-align: middle;
font-size: 14px;
font-style: regular;
font-weight: 700;
line-height: regular;
margin-bottom: 14px;
}

.betmgmArticle .section-info .team-logo {
width: 48px;
peak: 48px;
show: inline-block;
}

.betmgmArticle .section-info .versus {
show: inline-block;
margin: 0 16px;
font-size: 14px;
colour: #495057;
font-weight: 500;
}

.betmgmArticle .divider {
width: 1px;
background-color: #ddd;
background: var(–Gray-Scale-400-Gray, #CED4DA);
peak: 82px;
margin: 0 16px;
}

.betmgmArticle .title {
text-align: middle;
font-weight: daring;
margin-bottom: 8px;
font-size: 16px;
}
@media (max-width: 767px) {
.betmgmArticle .title {
text-align: left;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .title {
text-align: middle;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .title {
text-align: left;
}
}

@media (min-width: 1250px) {
.betmgmArticle .title {
text-align: middle;
}
}

.betmgmArticle .row {
margin-bottom: 5px;
show: flex;
justify-content: space-between;
margin: 0;
}
.betmgmArticle .row::earlier than {
show: none;
}

.betmgmArticle .worth {
font-weight: daring;
}

.betmgmArticle .purple {
colour: purple;
}

.betmgmArticle .inexperienced {
colour: inexperienced;
}

.betmgmArticle .betmgm-button {
cursor: pointer;
}
.betmgmArticle .betmgm-button a {
text-decoration: none;
}

.betmgmArticle .button button {
background-color: #005EB8;
colour: white;
padding: 6px 16px 14px 16px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: daring;
}

.betmgmArticle .buttonText {
place: relative;
colour: #ADB5BD;
font-size: 12px;
font-style: regular;
font-weight: 500;
line-height: regular;
text-align: left;
high: -6px;
margin-bottom: 10px;
}

.betmgmArticle .betMGMLogo {
text-align: left;
width: 150px;
peak: 42px;

@media (max-width: 767px) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-Black.svg’) no-repeat;
background-size: cowl;

@media (prefers-color-scheme: darkish) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-White.svg’) no-repeat;
}
}
}

.betmgmArticle .betMGMLogo img {
text-align: left;
width: 150px;
peak: 42px;
}

.betmgmArticle .content-mobile {
show: flex;
justify-content: space-around;
width: 100%;
margin-top: 20px;
}

@media (max-width: 767px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content-mobile {
show: none;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}

@media (min-width: 1250px) {
.betmgmArticle .content-mobile {
show: none;
}
}

.betmgmArticle .content-mobile .team-logos {
show: flex;
justify-content: flex-start;
width: 100%;
}

.betmgmArticle .content-mobile .team-logos .versus {
show: flex;
align-items: middle;
}

.betmgmArticle .content-mobile .gameDate {
text-align: left;
margin-bottom: 8px;
}

.betmgmArticle .content-mobile .buttonText {
text-align: left;
high: 0;
margin-bottom: 12px;
text-decoration: none;
colour: #ADB5BD;
}

@media (max-width: 767px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .desktop-only {
show: block;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 1250px) {
.betmgmArticle .desktop-only {
show: block;
}
}

async perform fetchOddsData(league, gameId) {
const res = await fetch(`https://stats-api.sportsnet.ca/livetracker?league=${league}&id=${gameId}`, {
cache: ‘no-store’,
});

if (!res.okay) {
throw new Error(‘Did not fetch odds knowledge’);
}

const knowledge = await res.json();
const oddsData = knowledge?.knowledge?.recreation?.particulars?.current_line;
const visitingTeam = knowledge?.knowledge?.recreation?.visiting_team;
const visitingTeamLogo = knowledge?.knowledge?.recreation?.visiting_team?.image_url_90;
const homeTeam = knowledge?.knowledge?.recreation?.home_team;
const homeTeamLogo = knowledge?.knowledge?.recreation?.home_team?.image_url_90;
const gameTimestamp = knowledge?.knowledge?.recreation?.particulars?.timestamp;

return { oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp };
}

async perform renderBetMGM(componentId, league, gameId) {
let oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp, error;

const container = doc.getElementById(componentId + ‘-odds’);
if (!container) return;

attempt {
({ oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp } = await fetchOddsData(league, gameId));
} catch (err) {
error = err.message;
}

if (error) {
container.innerHTML = `

Error: ${error}

`;
return;
}

if (!oddsData) {
container.innerHTML = `

Odds knowledge not out there

`;
return;
}

let gameDate = new Date(gameTimestamp * 1000);
const gameDateFormatted = gameDate.toLocaleDateString(‘en-US’, { yr: ‘numeric’, month: ‘lengthy’, day: ‘numeric’ });

container.innerHTML = `

BetMGM Odds

${gameDateFormatted}

VS

Moneyline

${visitingTeam.short_name}
${oddsData.away_money > 0 ? `+${oddsData.away_money}` : oddsData.away_money}

${homeTeam.short_name}
${oddsData.home_money > 0 ? `+${oddsData.home_money}` : oddsData.home_money}

Unfold

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

${oddsData.fav_id === homeTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}
${oddsData.fav_id === homeTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

Over/Underneath

O ${oddsData.complete}
${oddsData.over_money > 0 ? `+${oddsData.over_money}` : oddsData.over_money}

U ${oddsData.complete}
${oddsData.under_money > 0 ? `+${oddsData.under_money}` : oddsData.under_money}

Powered by

BetMGM Logo

${gameDateFormatted}

VS

Powered by

`;
}

// Instance utilization
renderBetMGM(‘block_ad0ca759dadbed4ff5894265805e2975’, ‘NFL’, ‘99300f01-62f0-4829-a685-d5c0b6c4a0f2’);

New England Patriots vs. Chicago Bears
Along with a unbelievable scramble by Patriots quarterback Drake Maye, which resulted in a miraculous TD go to ship final week’s recreation into additional time, he was efficient on the floor, speeding for 95 yards. Bears QB Caleb Williams injured his ankle on the ultimate sequence of their matchup. Williams is averaging simply 174 passing yards over the final two video games and hasn’t thrown a landing in that span. The Patriots preserve this one shut, due to Maye’s speeding skill to assist transfer the chains.
PICK: Patriots +6.5 (-110)

#betmgm-odds {
@media (max-width: 767px) {
margin: 0 20px 20px 20px;
}
}
#betmgm-odds {
@media (min-width: 768px) and (max-width: 1023px) {
width: 83%;
margin: 0px auto 20px auto;
}
}
.betmgmArticle {
font-family: “protipo-narrow”, sans-serif !vital;
width: 100%;
padding: 0;
margin-bottom: 24px;
border-radius: 8px;
show: inline-block;
font-family: Arial, sans-serif;
}

.betmgmArticle .header {
font-weight: daring;
margin-bottom: 10px;
show: block;
colour: var(–core-sn-blue-800-blue, #06192F);
text-decoration: none;
}

.betmgmArticle .content material {
show: flex;
flex-wrap: wrap;
align-items: middle;
padding: 20px 10px;
border-radius: 8px;
border: 1px strong var(–Gray-Scale-400-Gray, #CED4DA);
background: var(–Gray-Scale-0-White, #FFF);
}

@media (max-width: 767px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 1250px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}

.betmgmArticle .part {
width: 82px;
flex: 1;
text-align: middle;
}

.betmgmArticle .part .row {
font-size: 14px;
line-height: 22px;
}

.betmgmArticle .section-info {
flex: 2;
}

.betmgmArticle .section-info .gameDate {
colour: var(–core-sn-blue-800-blue, #06192F);
text-align: middle;
font-size: 14px;
font-style: regular;
font-weight: 700;
line-height: regular;
margin-bottom: 14px;
}

.betmgmArticle .section-info .team-logo {
width: 48px;
peak: 48px;
show: inline-block;
}

.betmgmArticle .section-info .versus {
show: inline-block;
margin: 0 16px;
font-size: 14px;
colour: #495057;
font-weight: 500;
}

.betmgmArticle .divider {
width: 1px;
background-color: #ddd;
background: var(–Gray-Scale-400-Gray, #CED4DA);
peak: 82px;
margin: 0 16px;
}

.betmgmArticle .title {
text-align: middle;
font-weight: daring;
margin-bottom: 8px;
font-size: 16px;
}
@media (max-width: 767px) {
.betmgmArticle .title {
text-align: left;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .title {
text-align: middle;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .title {
text-align: left;
}
}

@media (min-width: 1250px) {
.betmgmArticle .title {
text-align: middle;
}
}

.betmgmArticle .row {
margin-bottom: 5px;
show: flex;
justify-content: space-between;
margin: 0;
}
.betmgmArticle .row::earlier than {
show: none;
}

.betmgmArticle .worth {
font-weight: daring;
}

.betmgmArticle .purple {
colour: purple;
}

.betmgmArticle .inexperienced {
colour: inexperienced;
}

.betmgmArticle .betmgm-button {
cursor: pointer;
}
.betmgmArticle .betmgm-button a {
text-decoration: none;
}

.betmgmArticle .button button {
background-color: #005EB8;
colour: white;
padding: 6px 16px 14px 16px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: daring;
}

.betmgmArticle .buttonText {
place: relative;
colour: #ADB5BD;
font-size: 12px;
font-style: regular;
font-weight: 500;
line-height: regular;
text-align: left;
high: -6px;
margin-bottom: 10px;
}

.betmgmArticle .betMGMLogo {
text-align: left;
width: 150px;
peak: 42px;

@media (max-width: 767px) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-Black.svg’) no-repeat;
background-size: cowl;

@media (prefers-color-scheme: darkish) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-White.svg’) no-repeat;
}
}
}

.betmgmArticle .betMGMLogo img {
text-align: left;
width: 150px;
peak: 42px;
}

.betmgmArticle .content-mobile {
show: flex;
justify-content: space-around;
width: 100%;
margin-top: 20px;
}

@media (max-width: 767px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content-mobile {
show: none;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}

@media (min-width: 1250px) {
.betmgmArticle .content-mobile {
show: none;
}
}

.betmgmArticle .content-mobile .team-logos {
show: flex;
justify-content: flex-start;
width: 100%;
}

.betmgmArticle .content-mobile .team-logos .versus {
show: flex;
align-items: middle;
}

.betmgmArticle .content-mobile .gameDate {
text-align: left;
margin-bottom: 8px;
}

.betmgmArticle .content-mobile .buttonText {
text-align: left;
high: 0;
margin-bottom: 12px;
text-decoration: none;
colour: #ADB5BD;
}

@media (max-width: 767px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .desktop-only {
show: block;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 1250px) {
.betmgmArticle .desktop-only {
show: block;
}
}

async perform fetchOddsData(league, gameId) {
const res = await fetch(`https://stats-api.sportsnet.ca/livetracker?league=${league}&id=${gameId}`, {
cache: ‘no-store’,
});

if (!res.okay) {
throw new Error(‘Did not fetch odds knowledge’);
}

const knowledge = await res.json();
const oddsData = knowledge?.knowledge?.recreation?.particulars?.current_line;
const visitingTeam = knowledge?.knowledge?.recreation?.visiting_team;
const visitingTeamLogo = knowledge?.knowledge?.recreation?.visiting_team?.image_url_90;
const homeTeam = knowledge?.knowledge?.recreation?.home_team;
const homeTeamLogo = knowledge?.knowledge?.recreation?.home_team?.image_url_90;
const gameTimestamp = knowledge?.knowledge?.recreation?.particulars?.timestamp;

return { oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp };
}

async perform renderBetMGM(componentId, league, gameId) {
let oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp, error;

const container = doc.getElementById(componentId + ‘-odds’);
if (!container) return;

attempt {
({ oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp } = await fetchOddsData(league, gameId));
} catch (err) {
error = err.message;
}

if (error) {
container.innerHTML = `

Error: ${error}

`;
return;
}

if (!oddsData) {
container.innerHTML = `

Odds knowledge not out there

`;
return;
}

let gameDate = new Date(gameTimestamp * 1000);
const gameDateFormatted = gameDate.toLocaleDateString(‘en-US’, { yr: ‘numeric’, month: ‘lengthy’, day: ‘numeric’ });

container.innerHTML = `

BetMGM Odds

${gameDateFormatted}

VS

Moneyline

${visitingTeam.short_name}
${oddsData.away_money > 0 ? `+${oddsData.away_money}` : oddsData.away_money}

${homeTeam.short_name}
${oddsData.home_money > 0 ? `+${oddsData.home_money}` : oddsData.home_money}

Unfold

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

${oddsData.fav_id === homeTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}
${oddsData.fav_id === homeTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

Over/Underneath

O ${oddsData.complete}
${oddsData.over_money > 0 ? `+${oddsData.over_money}` : oddsData.over_money}

U ${oddsData.complete}
${oddsData.under_money > 0 ? `+${oddsData.under_money}` : oddsData.under_money}

Powered by

BetMGM Logo

${gameDateFormatted}

VS

Powered by

`;
}

// Instance utilization
renderBetMGM(‘block_013df1ca9d0685d8cc7bce3ad0d2cc25’, ‘NFL’, ‘d0664c51-1740-49ed-b489-afb65cc3bb39’);

San Francisco 49ers vs. Tampa Bay Buccaneers
The Buccaneers are underdogs as soon as once more. They misplaced by six in additional time to the Chiefs as nine-point underdogs. The 49ers will win as the Buccaneers proceed to permit ample passing manufacturing (291 yards and three touchdowns in Week 9). Nonetheless, Buccaneers QB Baker Mayfield, who accomplished 74.2 per cent of his passes in Week 9, will preserve this one shut as he continues to work with out vast receivers Mike Evans and Chris Godwin.
PICK: Payments -6 (-110)

#betmgm-odds {
@media (max-width: 767px) {
margin: 0 20px 20px 20px;
}
}
#betmgm-odds {
@media (min-width: 768px) and (max-width: 1023px) {
width: 83%;
margin: 0px auto 20px auto;
}
}
.betmgmArticle {
font-family: “protipo-narrow”, sans-serif !vital;
width: 100%;
padding: 0;
margin-bottom: 24px;
border-radius: 8px;
show: inline-block;
font-family: Arial, sans-serif;
}

.betmgmArticle .header {
font-weight: daring;
margin-bottom: 10px;
show: block;
colour: var(–core-sn-blue-800-blue, #06192F);
text-decoration: none;
}

.betmgmArticle .content material {
show: flex;
flex-wrap: wrap;
align-items: middle;
padding: 20px 10px;
border-radius: 8px;
border: 1px strong var(–Gray-Scale-400-Gray, #CED4DA);
background: var(–Gray-Scale-0-White, #FFF);
}

@media (max-width: 767px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 1250px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}

.betmgmArticle .part {
width: 82px;
flex: 1;
text-align: middle;
}

.betmgmArticle .part .row {
font-size: 14px;
line-height: 22px;
}

.betmgmArticle .section-info {
flex: 2;
}

.betmgmArticle .section-info .gameDate {
colour: var(–core-sn-blue-800-blue, #06192F);
text-align: middle;
font-size: 14px;
font-style: regular;
font-weight: 700;
line-height: regular;
margin-bottom: 14px;
}

.betmgmArticle .section-info .team-logo {
width: 48px;
peak: 48px;
show: inline-block;
}

.betmgmArticle .section-info .versus {
show: inline-block;
margin: 0 16px;
font-size: 14px;
colour: #495057;
font-weight: 500;
}

.betmgmArticle .divider {
width: 1px;
background-color: #ddd;
background: var(–Gray-Scale-400-Gray, #CED4DA);
peak: 82px;
margin: 0 16px;
}

.betmgmArticle .title {
text-align: middle;
font-weight: daring;
margin-bottom: 8px;
font-size: 16px;
}
@media (max-width: 767px) {
.betmgmArticle .title {
text-align: left;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .title {
text-align: middle;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .title {
text-align: left;
}
}

@media (min-width: 1250px) {
.betmgmArticle .title {
text-align: middle;
}
}

.betmgmArticle .row {
margin-bottom: 5px;
show: flex;
justify-content: space-between;
margin: 0;
}
.betmgmArticle .row::earlier than {
show: none;
}

.betmgmArticle .worth {
font-weight: daring;
}

.betmgmArticle .purple {
colour: purple;
}

.betmgmArticle .inexperienced {
colour: inexperienced;
}

.betmgmArticle .betmgm-button {
cursor: pointer;
}
.betmgmArticle .betmgm-button a {
text-decoration: none;
}

.betmgmArticle .button button {
background-color: #005EB8;
colour: white;
padding: 6px 16px 14px 16px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: daring;
}

.betmgmArticle .buttonText {
place: relative;
colour: #ADB5BD;
font-size: 12px;
font-style: regular;
font-weight: 500;
line-height: regular;
text-align: left;
high: -6px;
margin-bottom: 10px;
}

.betmgmArticle .betMGMLogo {
text-align: left;
width: 150px;
peak: 42px;

@media (max-width: 767px) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-Black.svg’) no-repeat;
background-size: cowl;

@media (prefers-color-scheme: darkish) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-White.svg’) no-repeat;
}
}
}

.betmgmArticle .betMGMLogo img {
text-align: left;
width: 150px;
peak: 42px;
}

.betmgmArticle .content-mobile {
show: flex;
justify-content: space-around;
width: 100%;
margin-top: 20px;
}

@media (max-width: 767px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content-mobile {
show: none;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}

@media (min-width: 1250px) {
.betmgmArticle .content-mobile {
show: none;
}
}

.betmgmArticle .content-mobile .team-logos {
show: flex;
justify-content: flex-start;
width: 100%;
}

.betmgmArticle .content-mobile .team-logos .versus {
show: flex;
align-items: middle;
}

.betmgmArticle .content-mobile .gameDate {
text-align: left;
margin-bottom: 8px;
}

.betmgmArticle .content-mobile .buttonText {
text-align: left;
high: 0;
margin-bottom: 12px;
text-decoration: none;
colour: #ADB5BD;
}

@media (max-width: 767px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .desktop-only {
show: block;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 1250px) {
.betmgmArticle .desktop-only {
show: block;
}
}

async perform fetchOddsData(league, gameId) {
const res = await fetch(`https://stats-api.sportsnet.ca/livetracker?league=${league}&id=${gameId}`, {
cache: ‘no-store’,
});

if (!res.okay) {
throw new Error(‘Did not fetch odds knowledge’);
}

const knowledge = await res.json();
const oddsData = knowledge?.knowledge?.recreation?.particulars?.current_line;
const visitingTeam = knowledge?.knowledge?.recreation?.visiting_team;
const visitingTeamLogo = knowledge?.knowledge?.recreation?.visiting_team?.image_url_90;
const homeTeam = knowledge?.knowledge?.recreation?.home_team;
const homeTeamLogo = knowledge?.knowledge?.recreation?.home_team?.image_url_90;
const gameTimestamp = knowledge?.knowledge?.recreation?.particulars?.timestamp;

return { oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp };
}

async perform renderBetMGM(componentId, league, gameId) {
let oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp, error;

const container = doc.getElementById(componentId + ‘-odds’);
if (!container) return;

attempt {
({ oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp } = await fetchOddsData(league, gameId));
} catch (err) {
error = err.message;
}

if (error) {
container.innerHTML = `

Error: ${error}

`;
return;
}

if (!oddsData) {
container.innerHTML = `

Odds knowledge not out there

`;
return;
}

let gameDate = new Date(gameTimestamp * 1000);
const gameDateFormatted = gameDate.toLocaleDateString(‘en-US’, { yr: ‘numeric’, month: ‘lengthy’, day: ‘numeric’ });

container.innerHTML = `

BetMGM Odds

${gameDateFormatted}

VS

Moneyline

${visitingTeam.short_name}
${oddsData.away_money > 0 ? `+${oddsData.away_money}` : oddsData.away_money}

${homeTeam.short_name}
${oddsData.home_money > 0 ? `+${oddsData.home_money}` : oddsData.home_money}

Unfold

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

${oddsData.fav_id === homeTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}
${oddsData.fav_id === homeTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

Over/Underneath

O ${oddsData.complete}
${oddsData.over_money > 0 ? `+${oddsData.over_money}` : oddsData.over_money}

U ${oddsData.complete}
${oddsData.under_money > 0 ? `+${oddsData.under_money}` : oddsData.under_money}

Powered by

BetMGM Logo

${gameDateFormatted}

VS

Powered by

`;
}

// Instance utilization
renderBetMGM(‘block_c18d50384db0dd5f14a7bac955d13427’, ‘NFL’, ‘3d4eb251-7fa3-4d18-90de-889d8a267316’);

Denver Broncos vs. Kansas Metropolis Chiefs
Chiefs QB Patrick Mahomes is coming off his greatest recreation of the season, throwing for 291 yards and three touchdowns in a win over the Buccaneers in additional time. The Broncos defence has allowed 5 landing passes over the previous two weeks. Moreover, the Chiefs have held opposing RBs to only 2.88 yards per carry over the final 4 weeks, permitting only one landing. The Chiefs defence and passing assault lead to a canopy.
PICK: Chiefs -8.5 (-110)

#betmgm-odds {
@media (max-width: 767px) {
margin: 0 20px 20px 20px;
}
}
#betmgm-odds {
@media (min-width: 768px) and (max-width: 1023px) {
width: 83%;
margin: 0px auto 20px auto;
}
}
.betmgmArticle {
font-family: “protipo-narrow”, sans-serif !vital;
width: 100%;
padding: 0;
margin-bottom: 24px;
border-radius: 8px;
show: inline-block;
font-family: Arial, sans-serif;
}

.betmgmArticle .header {
font-weight: daring;
margin-bottom: 10px;
show: block;
colour: var(–core-sn-blue-800-blue, #06192F);
text-decoration: none;
}

.betmgmArticle .content material {
show: flex;
flex-wrap: wrap;
align-items: middle;
padding: 20px 10px;
border-radius: 8px;
border: 1px strong var(–Gray-Scale-400-Gray, #CED4DA);
background: var(–Gray-Scale-0-White, #FFF);
}

@media (max-width: 767px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 1250px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}

.betmgmArticle .part {
width: 82px;
flex: 1;
text-align: middle;
}

.betmgmArticle .part .row {
font-size: 14px;
line-height: 22px;
}

.betmgmArticle .section-info {
flex: 2;
}

.betmgmArticle .section-info .gameDate {
colour: var(–core-sn-blue-800-blue, #06192F);
text-align: middle;
font-size: 14px;
font-style: regular;
font-weight: 700;
line-height: regular;
margin-bottom: 14px;
}

.betmgmArticle .section-info .team-logo {
width: 48px;
peak: 48px;
show: inline-block;
}

.betmgmArticle .section-info .versus {
show: inline-block;
margin: 0 16px;
font-size: 14px;
colour: #495057;
font-weight: 500;
}

.betmgmArticle .divider {
width: 1px;
background-color: #ddd;
background: var(–Gray-Scale-400-Gray, #CED4DA);
peak: 82px;
margin: 0 16px;
}

.betmgmArticle .title {
text-align: middle;
font-weight: daring;
margin-bottom: 8px;
font-size: 16px;
}
@media (max-width: 767px) {
.betmgmArticle .title {
text-align: left;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .title {
text-align: middle;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .title {
text-align: left;
}
}

@media (min-width: 1250px) {
.betmgmArticle .title {
text-align: middle;
}
}

.betmgmArticle .row {
margin-bottom: 5px;
show: flex;
justify-content: space-between;
margin: 0;
}
.betmgmArticle .row::earlier than {
show: none;
}

.betmgmArticle .worth {
font-weight: daring;
}

.betmgmArticle .purple {
colour: purple;
}

.betmgmArticle .inexperienced {
colour: inexperienced;
}

.betmgmArticle .betmgm-button {
cursor: pointer;
}
.betmgmArticle .betmgm-button a {
text-decoration: none;
}

.betmgmArticle .button button {
background-color: #005EB8;
colour: white;
padding: 6px 16px 14px 16px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: daring;
}

.betmgmArticle .buttonText {
place: relative;
colour: #ADB5BD;
font-size: 12px;
font-style: regular;
font-weight: 500;
line-height: regular;
text-align: left;
high: -6px;
margin-bottom: 10px;
}

.betmgmArticle .betMGMLogo {
text-align: left;
width: 150px;
peak: 42px;

@media (max-width: 767px) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-Black.svg’) no-repeat;
background-size: cowl;

@media (prefers-color-scheme: darkish) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-White.svg’) no-repeat;
}
}
}

.betmgmArticle .betMGMLogo img {
text-align: left;
width: 150px;
peak: 42px;
}

.betmgmArticle .content-mobile {
show: flex;
justify-content: space-around;
width: 100%;
margin-top: 20px;
}

@media (max-width: 767px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content-mobile {
show: none;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}

@media (min-width: 1250px) {
.betmgmArticle .content-mobile {
show: none;
}
}

.betmgmArticle .content-mobile .team-logos {
show: flex;
justify-content: flex-start;
width: 100%;
}

.betmgmArticle .content-mobile .team-logos .versus {
show: flex;
align-items: middle;
}

.betmgmArticle .content-mobile .gameDate {
text-align: left;
margin-bottom: 8px;
}

.betmgmArticle .content-mobile .buttonText {
text-align: left;
high: 0;
margin-bottom: 12px;
text-decoration: none;
colour: #ADB5BD;
}

@media (max-width: 767px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .desktop-only {
show: block;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 1250px) {
.betmgmArticle .desktop-only {
show: block;
}
}

async perform fetchOddsData(league, gameId) {
const res = await fetch(`https://stats-api.sportsnet.ca/livetracker?league=${league}&id=${gameId}`, {
cache: ‘no-store’,
});

if (!res.okay) {
throw new Error(‘Did not fetch odds knowledge’);
}

const knowledge = await res.json();
const oddsData = knowledge?.knowledge?.recreation?.particulars?.current_line;
const visitingTeam = knowledge?.knowledge?.recreation?.visiting_team;
const visitingTeamLogo = knowledge?.knowledge?.recreation?.visiting_team?.image_url_90;
const homeTeam = knowledge?.knowledge?.recreation?.home_team;
const homeTeamLogo = knowledge?.knowledge?.recreation?.home_team?.image_url_90;
const gameTimestamp = knowledge?.knowledge?.recreation?.particulars?.timestamp;

return { oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp };
}

async perform renderBetMGM(componentId, league, gameId) {
let oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp, error;

const container = doc.getElementById(componentId + ‘-odds’);
if (!container) return;

attempt {
({ oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp } = await fetchOddsData(league, gameId));
} catch (err) {
error = err.message;
}

if (error) {
container.innerHTML = `

Error: ${error}

`;
return;
}

if (!oddsData) {
container.innerHTML = `

Odds knowledge not out there

`;
return;
}

let gameDate = new Date(gameTimestamp * 1000);
const gameDateFormatted = gameDate.toLocaleDateString(‘en-US’, { yr: ‘numeric’, month: ‘lengthy’, day: ‘numeric’ });

container.innerHTML = `

BetMGM Odds

${gameDateFormatted}

VS

Moneyline

${visitingTeam.short_name}
${oddsData.away_money > 0 ? `+${oddsData.away_money}` : oddsData.away_money}

${homeTeam.short_name}
${oddsData.home_money > 0 ? `+${oddsData.home_money}` : oddsData.home_money}

Unfold

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

${oddsData.fav_id === homeTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}
${oddsData.fav_id === homeTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

Over/Underneath

O ${oddsData.complete}
${oddsData.over_money > 0 ? `+${oddsData.over_money}` : oddsData.over_money}

U ${oddsData.complete}
${oddsData.under_money > 0 ? `+${oddsData.under_money}` : oddsData.under_money}

Powered by

BetMGM Logo

${gameDateFormatted}

VS

Powered by

`;
}

// Instance utilization
renderBetMGM(‘block_ac93bcee7ab3af4da327ff8fb0af14ad’, ‘NFL’, ‘7c6fbd50-b651-42b6-9e8d-758b27e88ecc’);

Buffalo Payments vs. Indianapolis Colts
The Colts managed simply 13 factors in Week 9 and tackle a Payments crew that’s intercepted at the very least one go in all however three video games. They’ve additionally solely allowed a number of landing passes 3 times this season. Payments QB Josh Allen had three landing passes final week. That efficiency got here with out WR Amari Cooper, who was out with a wrist/hand damage. The Payments will keep away from turnovers, and Allen will proceed to throw a number of landing passes.
PICK: Payments -4 (-110)

#betmgm-odds {
@media (max-width: 767px) {
margin: 0 20px 20px 20px;
}
}
#betmgm-odds {
@media (min-width: 768px) and (max-width: 1023px) {
width: 83%;
margin: 0px auto 20px auto;
}
}
.betmgmArticle {
font-family: “protipo-narrow”, sans-serif !vital;
width: 100%;
padding: 0;
margin-bottom: 24px;
border-radius: 8px;
show: inline-block;
font-family: Arial, sans-serif;
}

.betmgmArticle .header {
font-weight: daring;
margin-bottom: 10px;
show: block;
colour: var(–core-sn-blue-800-blue, #06192F);
text-decoration: none;
}

.betmgmArticle .content material {
show: flex;
flex-wrap: wrap;
align-items: middle;
padding: 20px 10px;
border-radius: 8px;
border: 1px strong var(–Gray-Scale-400-Gray, #CED4DA);
background: var(–Gray-Scale-0-White, #FFF);
}

@media (max-width: 767px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 1250px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}

.betmgmArticle .part {
width: 82px;
flex: 1;
text-align: middle;
}

.betmgmArticle .part .row {
font-size: 14px;
line-height: 22px;
}

.betmgmArticle .section-info {
flex: 2;
}

.betmgmArticle .section-info .gameDate {
colour: var(–core-sn-blue-800-blue, #06192F);
text-align: middle;
font-size: 14px;
font-style: regular;
font-weight: 700;
line-height: regular;
margin-bottom: 14px;
}

.betmgmArticle .section-info .team-logo {
width: 48px;
peak: 48px;
show: inline-block;
}

.betmgmArticle .section-info .versus {
show: inline-block;
margin: 0 16px;
font-size: 14px;
colour: #495057;
font-weight: 500;
}

.betmgmArticle .divider {
width: 1px;
background-color: #ddd;
background: var(–Gray-Scale-400-Gray, #CED4DA);
peak: 82px;
margin: 0 16px;
}

.betmgmArticle .title {
text-align: middle;
font-weight: daring;
margin-bottom: 8px;
font-size: 16px;
}
@media (max-width: 767px) {
.betmgmArticle .title {
text-align: left;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .title {
text-align: middle;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .title {
text-align: left;
}
}

@media (min-width: 1250px) {
.betmgmArticle .title {
text-align: middle;
}
}

.betmgmArticle .row {
margin-bottom: 5px;
show: flex;
justify-content: space-between;
margin: 0;
}
.betmgmArticle .row::earlier than {
show: none;
}

.betmgmArticle .worth {
font-weight: daring;
}

.betmgmArticle .purple {
colour: purple;
}

.betmgmArticle .inexperienced {
colour: inexperienced;
}

.betmgmArticle .betmgm-button {
cursor: pointer;
}
.betmgmArticle .betmgm-button a {
text-decoration: none;
}

.betmgmArticle .button button {
background-color: #005EB8;
colour: white;
padding: 6px 16px 14px 16px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: daring;
}

.betmgmArticle .buttonText {
place: relative;
colour: #ADB5BD;
font-size: 12px;
font-style: regular;
font-weight: 500;
line-height: regular;
text-align: left;
high: -6px;
margin-bottom: 10px;
}

.betmgmArticle .betMGMLogo {
text-align: left;
width: 150px;
peak: 42px;

@media (max-width: 767px) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-Black.svg’) no-repeat;
background-size: cowl;

@media (prefers-color-scheme: darkish) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-White.svg’) no-repeat;
}
}
}

.betmgmArticle .betMGMLogo img {
text-align: left;
width: 150px;
peak: 42px;
}

.betmgmArticle .content-mobile {
show: flex;
justify-content: space-around;
width: 100%;
margin-top: 20px;
}

@media (max-width: 767px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content-mobile {
show: none;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}

@media (min-width: 1250px) {
.betmgmArticle .content-mobile {
show: none;
}
}

.betmgmArticle .content-mobile .team-logos {
show: flex;
justify-content: flex-start;
width: 100%;
}

.betmgmArticle .content-mobile .team-logos .versus {
show: flex;
align-items: middle;
}

.betmgmArticle .content-mobile .gameDate {
text-align: left;
margin-bottom: 8px;
}

.betmgmArticle .content-mobile .buttonText {
text-align: left;
high: 0;
margin-bottom: 12px;
text-decoration: none;
colour: #ADB5BD;
}

@media (max-width: 767px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .desktop-only {
show: block;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 1250px) {
.betmgmArticle .desktop-only {
show: block;
}
}

async perform fetchOddsData(league, gameId) {
const res = await fetch(`https://stats-api.sportsnet.ca/livetracker?league=${league}&id=${gameId}`, {
cache: ‘no-store’,
});

if (!res.okay) {
throw new Error(‘Did not fetch odds knowledge’);
}

const knowledge = await res.json();
const oddsData = knowledge?.knowledge?.recreation?.particulars?.current_line;
const visitingTeam = knowledge?.knowledge?.recreation?.visiting_team;
const visitingTeamLogo = knowledge?.knowledge?.recreation?.visiting_team?.image_url_90;
const homeTeam = knowledge?.knowledge?.recreation?.home_team;
const homeTeamLogo = knowledge?.knowledge?.recreation?.home_team?.image_url_90;
const gameTimestamp = knowledge?.knowledge?.recreation?.particulars?.timestamp;

return { oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp };
}

async perform renderBetMGM(componentId, league, gameId) {
let oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp, error;

const container = doc.getElementById(componentId + ‘-odds’);
if (!container) return;

attempt {
({ oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp } = await fetchOddsData(league, gameId));
} catch (err) {
error = err.message;
}

if (error) {
container.innerHTML = `

Error: ${error}

`;
return;
}

if (!oddsData) {
container.innerHTML = `

Odds knowledge not out there

`;
return;
}

let gameDate = new Date(gameTimestamp * 1000);
const gameDateFormatted = gameDate.toLocaleDateString(‘en-US’, { yr: ‘numeric’, month: ‘lengthy’, day: ‘numeric’ });

container.innerHTML = `

BetMGM Odds

${gameDateFormatted}

VS

Moneyline

${visitingTeam.short_name}
${oddsData.away_money > 0 ? `+${oddsData.away_money}` : oddsData.away_money}

${homeTeam.short_name}
${oddsData.home_money > 0 ? `+${oddsData.home_money}` : oddsData.home_money}

Unfold

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

${oddsData.fav_id === homeTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}
${oddsData.fav_id === homeTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

Over/Underneath

O ${oddsData.complete}
${oddsData.over_money > 0 ? `+${oddsData.over_money}` : oddsData.over_money}

U ${oddsData.complete}
${oddsData.under_money > 0 ? `+${oddsData.under_money}` : oddsData.under_money}

Powered by

BetMGM Logo

${gameDateFormatted}

VS

Powered by

`;
}

// Instance utilization
renderBetMGM(‘block_8c990b03683a584444855977203883e2’, ‘NFL’, ’85ad8e2a-4187-4943-aeb3-d978d3352e89′);

Pittsburgh Steelers vs. Washington Commanders
The Commanders have been wonderful offensively, however their Achilles heel is opposing RBs. They permit 5.23 yards per carry and 115 speeding yards per recreation. RBs have scored in all however three video games this season. This comes as Steelers RB Najee Harris has run for 102 yards or extra in three straight video games and has scored two touchdowns in that span. Harris will be the catalyst to maintain this inside hanging distance.
PICK: Steelers +2.5 (-110)

#betmgm-odds {
@media (max-width: 767px) {
margin: 0 20px 20px 20px;
}
}
#betmgm-odds {
@media (min-width: 768px) and (max-width: 1023px) {
width: 83%;
margin: 0px auto 20px auto;
}
}
.betmgmArticle {
font-family: “protipo-narrow”, sans-serif !vital;
width: 100%;
padding: 0;
margin-bottom: 24px;
border-radius: 8px;
show: inline-block;
font-family: Arial, sans-serif;
}

.betmgmArticle .header {
font-weight: daring;
margin-bottom: 10px;
show: block;
colour: var(–core-sn-blue-800-blue, #06192F);
text-decoration: none;
}

.betmgmArticle .content material {
show: flex;
flex-wrap: wrap;
align-items: middle;
padding: 20px 10px;
border-radius: 8px;
border: 1px strong var(–Gray-Scale-400-Gray, #CED4DA);
background: var(–Gray-Scale-0-White, #FFF);
}

@media (max-width: 767px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 1250px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}

.betmgmArticle .part {
width: 82px;
flex: 1;
text-align: middle;
}

.betmgmArticle .part .row {
font-size: 14px;
line-height: 22px;
}

.betmgmArticle .section-info {
flex: 2;
}

.betmgmArticle .section-info .gameDate {
colour: var(–core-sn-blue-800-blue, #06192F);
text-align: middle;
font-size: 14px;
font-style: regular;
font-weight: 700;
line-height: regular;
margin-bottom: 14px;
}

.betmgmArticle .section-info .team-logo {
width: 48px;
peak: 48px;
show: inline-block;
}

.betmgmArticle .section-info .versus {
show: inline-block;
margin: 0 16px;
font-size: 14px;
colour: #495057;
font-weight: 500;
}

.betmgmArticle .divider {
width: 1px;
background-color: #ddd;
background: var(–Gray-Scale-400-Gray, #CED4DA);
peak: 82px;
margin: 0 16px;
}

.betmgmArticle .title {
text-align: middle;
font-weight: daring;
margin-bottom: 8px;
font-size: 16px;
}
@media (max-width: 767px) {
.betmgmArticle .title {
text-align: left;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .title {
text-align: middle;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .title {
text-align: left;
}
}

@media (min-width: 1250px) {
.betmgmArticle .title {
text-align: middle;
}
}

.betmgmArticle .row {
margin-bottom: 5px;
show: flex;
justify-content: space-between;
margin: 0;
}
.betmgmArticle .row::earlier than {
show: none;
}

.betmgmArticle .worth {
font-weight: daring;
}

.betmgmArticle .purple {
colour: purple;
}

.betmgmArticle .inexperienced {
colour: inexperienced;
}

.betmgmArticle .betmgm-button {
cursor: pointer;
}
.betmgmArticle .betmgm-button a {
text-decoration: none;
}

.betmgmArticle .button button {
background-color: #005EB8;
colour: white;
padding: 6px 16px 14px 16px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: daring;
}

.betmgmArticle .buttonText {
place: relative;
colour: #ADB5BD;
font-size: 12px;
font-style: regular;
font-weight: 500;
line-height: regular;
text-align: left;
high: -6px;
margin-bottom: 10px;
}

.betmgmArticle .betMGMLogo {
text-align: left;
width: 150px;
peak: 42px;

@media (max-width: 767px) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-Black.svg’) no-repeat;
background-size: cowl;

@media (prefers-color-scheme: darkish) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-White.svg’) no-repeat;
}
}
}

.betmgmArticle .betMGMLogo img {
text-align: left;
width: 150px;
peak: 42px;
}

.betmgmArticle .content-mobile {
show: flex;
justify-content: space-around;
width: 100%;
margin-top: 20px;
}

@media (max-width: 767px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content-mobile {
show: none;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}

@media (min-width: 1250px) {
.betmgmArticle .content-mobile {
show: none;
}
}

.betmgmArticle .content-mobile .team-logos {
show: flex;
justify-content: flex-start;
width: 100%;
}

.betmgmArticle .content-mobile .team-logos .versus {
show: flex;
align-items: middle;
}

.betmgmArticle .content-mobile .gameDate {
text-align: left;
margin-bottom: 8px;
}

.betmgmArticle .content-mobile .buttonText {
text-align: left;
high: 0;
margin-bottom: 12px;
text-decoration: none;
colour: #ADB5BD;
}

@media (max-width: 767px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .desktop-only {
show: block;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 1250px) {
.betmgmArticle .desktop-only {
show: block;
}
}

async perform fetchOddsData(league, gameId) {
const res = await fetch(`https://stats-api.sportsnet.ca/livetracker?league=${league}&id=${gameId}`, {
cache: ‘no-store’,
});

if (!res.okay) {
throw new Error(‘Did not fetch odds knowledge’);
}

const knowledge = await res.json();
const oddsData = knowledge?.knowledge?.recreation?.particulars?.current_line;
const visitingTeam = knowledge?.knowledge?.recreation?.visiting_team;
const visitingTeamLogo = knowledge?.knowledge?.recreation?.visiting_team?.image_url_90;
const homeTeam = knowledge?.knowledge?.recreation?.home_team;
const homeTeamLogo = knowledge?.knowledge?.recreation?.home_team?.image_url_90;
const gameTimestamp = knowledge?.knowledge?.recreation?.particulars?.timestamp;

return { oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp };
}

async perform renderBetMGM(componentId, league, gameId) {
let oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp, error;

const container = doc.getElementById(componentId + ‘-odds’);
if (!container) return;

attempt {
({ oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp } = await fetchOddsData(league, gameId));
} catch (err) {
error = err.message;
}

if (error) {
container.innerHTML = `

Error: ${error}

`;
return;
}

if (!oddsData) {
container.innerHTML = `

Odds knowledge not out there

`;
return;
}

let gameDate = new Date(gameTimestamp * 1000);
const gameDateFormatted = gameDate.toLocaleDateString(‘en-US’, { yr: ‘numeric’, month: ‘lengthy’, day: ‘numeric’ });

container.innerHTML = `

BetMGM Odds

${gameDateFormatted}

VS

Moneyline

${visitingTeam.short_name}
${oddsData.away_money > 0 ? `+${oddsData.away_money}` : oddsData.away_money}

${homeTeam.short_name}
${oddsData.home_money > 0 ? `+${oddsData.home_money}` : oddsData.home_money}

Unfold

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

${oddsData.fav_id === homeTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}
${oddsData.fav_id === homeTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

Over/Underneath

O ${oddsData.complete}
${oddsData.over_money > 0 ? `+${oddsData.over_money}` : oddsData.over_money}

U ${oddsData.complete}
${oddsData.under_money > 0 ? `+${oddsData.under_money}` : oddsData.under_money}

Powered by

BetMGM Logo

${gameDateFormatted}

VS

Powered by

`;
}

// Instance utilization
renderBetMGM(‘block_439faf0dfb04d94744582681ff022eb4’, ‘NFL’, ‘a7d4d517-a5bf-49a6-9828-5e3a6f1c5737’);

Minnesota Vikings vs. Jacksonville Jaguars
The Vikings enable a median of 271 passing yards per recreation, however there have been instances, like Week 9, when the defence reveals up. Towards the Colts, the Vikings allowed a single-game low of 179 passing yards. The Vikings additionally intercept 1.62 passes per outing, they usually’ll tackle Jaguars QB Trevor Lawrence, who has three interceptions over the previous two video games. Look for the Vikings to create a number of turnovers and win decisively.
PICK: Vikings -4 (-110)

#betmgm-odds {
@media (max-width: 767px) {
margin: 0 20px 20px 20px;
}
}
#betmgm-odds {
@media (min-width: 768px) and (max-width: 1023px) {
width: 83%;
margin: 0px auto 20px auto;
}
}
.betmgmArticle {
font-family: “protipo-narrow”, sans-serif !vital;
width: 100%;
padding: 0;
margin-bottom: 24px;
border-radius: 8px;
show: inline-block;
font-family: Arial, sans-serif;
}

.betmgmArticle .header {
font-weight: daring;
margin-bottom: 10px;
show: block;
colour: var(–core-sn-blue-800-blue, #06192F);
text-decoration: none;
}

.betmgmArticle .content material {
show: flex;
flex-wrap: wrap;
align-items: middle;
padding: 20px 10px;
border-radius: 8px;
border: 1px strong var(–Gray-Scale-400-Gray, #CED4DA);
background: var(–Gray-Scale-0-White, #FFF);
}

@media (max-width: 767px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 1250px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}

.betmgmArticle .part {
width: 82px;
flex: 1;
text-align: middle;
}

.betmgmArticle .part .row {
font-size: 14px;
line-height: 22px;
}

.betmgmArticle .section-info {
flex: 2;
}

.betmgmArticle .section-info .gameDate {
colour: var(–core-sn-blue-800-blue, #06192F);
text-align: middle;
font-size: 14px;
font-style: regular;
font-weight: 700;
line-height: regular;
margin-bottom: 14px;
}

.betmgmArticle .section-info .team-logo {
width: 48px;
peak: 48px;
show: inline-block;
}

.betmgmArticle .section-info .versus {
show: inline-block;
margin: 0 16px;
font-size: 14px;
colour: #495057;
font-weight: 500;
}

.betmgmArticle .divider {
width: 1px;
background-color: #ddd;
background: var(–Gray-Scale-400-Gray, #CED4DA);
peak: 82px;
margin: 0 16px;
}

.betmgmArticle .title {
text-align: middle;
font-weight: daring;
margin-bottom: 8px;
font-size: 16px;
}
@media (max-width: 767px) {
.betmgmArticle .title {
text-align: left;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .title {
text-align: middle;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .title {
text-align: left;
}
}

@media (min-width: 1250px) {
.betmgmArticle .title {
text-align: middle;
}
}

.betmgmArticle .row {
margin-bottom: 5px;
show: flex;
justify-content: space-between;
margin: 0;
}
.betmgmArticle .row::earlier than {
show: none;
}

.betmgmArticle .worth {
font-weight: daring;
}

.betmgmArticle .purple {
colour: purple;
}

.betmgmArticle .inexperienced {
colour: inexperienced;
}

.betmgmArticle .betmgm-button {
cursor: pointer;
}
.betmgmArticle .betmgm-button a {
text-decoration: none;
}

.betmgmArticle .button button {
background-color: #005EB8;
colour: white;
padding: 6px 16px 14px 16px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: daring;
}

.betmgmArticle .buttonText {
place: relative;
colour: #ADB5BD;
font-size: 12px;
font-style: regular;
font-weight: 500;
line-height: regular;
text-align: left;
high: -6px;
margin-bottom: 10px;
}

.betmgmArticle .betMGMLogo {
text-align: left;
width: 150px;
peak: 42px;

@media (max-width: 767px) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-Black.svg’) no-repeat;
background-size: cowl;

@media (prefers-color-scheme: darkish) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-White.svg’) no-repeat;
}
}
}

.betmgmArticle .betMGMLogo img {
text-align: left;
width: 150px;
peak: 42px;
}

.betmgmArticle .content-mobile {
show: flex;
justify-content: space-around;
width: 100%;
margin-top: 20px;
}

@media (max-width: 767px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content-mobile {
show: none;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}

@media (min-width: 1250px) {
.betmgmArticle .content-mobile {
show: none;
}
}

.betmgmArticle .content-mobile .team-logos {
show: flex;
justify-content: flex-start;
width: 100%;
}

.betmgmArticle .content-mobile .team-logos .versus {
show: flex;
align-items: middle;
}

.betmgmArticle .content-mobile .gameDate {
text-align: left;
margin-bottom: 8px;
}

.betmgmArticle .content-mobile .buttonText {
text-align: left;
high: 0;
margin-bottom: 12px;
text-decoration: none;
colour: #ADB5BD;
}

@media (max-width: 767px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .desktop-only {
show: block;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 1250px) {
.betmgmArticle .desktop-only {
show: block;
}
}

async perform fetchOddsData(league, gameId) {
const res = await fetch(`https://stats-api.sportsnet.ca/livetracker?league=${league}&id=${gameId}`, {
cache: ‘no-store’,
});

if (!res.okay) {
throw new Error(‘Did not fetch odds knowledge’);
}

const knowledge = await res.json();
const oddsData = knowledge?.knowledge?.recreation?.particulars?.current_line;
const visitingTeam = knowledge?.knowledge?.recreation?.visiting_team;
const visitingTeamLogo = knowledge?.knowledge?.recreation?.visiting_team?.image_url_90;
const homeTeam = knowledge?.knowledge?.recreation?.home_team;
const homeTeamLogo = knowledge?.knowledge?.recreation?.home_team?.image_url_90;
const gameTimestamp = knowledge?.knowledge?.recreation?.particulars?.timestamp;

return { oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp };
}

async perform renderBetMGM(componentId, league, gameId) {
let oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp, error;

const container = doc.getElementById(componentId + ‘-odds’);
if (!container) return;

attempt {
({ oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp } = await fetchOddsData(league, gameId));
} catch (err) {
error = err.message;
}

if (error) {
container.innerHTML = `

Error: ${error}

`;
return;
}

if (!oddsData) {
container.innerHTML = `

Odds knowledge not out there

`;
return;
}

let gameDate = new Date(gameTimestamp * 1000);
const gameDateFormatted = gameDate.toLocaleDateString(‘en-US’, { yr: ‘numeric’, month: ‘lengthy’, day: ‘numeric’ });

container.innerHTML = `

BetMGM Odds

${gameDateFormatted}

VS

Moneyline

${visitingTeam.short_name}
${oddsData.away_money > 0 ? `+${oddsData.away_money}` : oddsData.away_money}

${homeTeam.short_name}
${oddsData.home_money > 0 ? `+${oddsData.home_money}` : oddsData.home_money}

Unfold

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

${oddsData.fav_id === homeTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}
${oddsData.fav_id === homeTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

Over/Underneath

O ${oddsData.complete}
${oddsData.over_money > 0 ? `+${oddsData.over_money}` : oddsData.over_money}

U ${oddsData.complete}
${oddsData.under_money > 0 ? `+${oddsData.under_money}` : oddsData.under_money}

Powered by

BetMGM Logo

${gameDateFormatted}

VS

Powered by

`;
}

// Instance utilization
renderBetMGM(‘block_ea470196fe9f3ac2f986fc7d5d8fc6a2’, ‘NFL’, ‘b28247c0-6946-4f14-9a1e-b28c0a1e42cc’);

Atlanta Falcons vs. New Orleans Saints
The Saints fired head coach Dennis Allen on Monday after going 0-7 following a 2-0 begin. We may see much more change by the Saints after dealing cornerback Marshon Lattimore to Washington forward of the Nov. 5 commerce deadline. The Saints are a large number, and the Falcons, who’ve scored 26 factors or extra in six straight video games, will simply win.
PICK: Falcons -3.5 (-105)

#betmgm-odds {
@media (max-width: 767px) {
margin: 0 20px 20px 20px;
}
}
#betmgm-odds {
@media (min-width: 768px) and (max-width: 1023px) {
width: 83%;
margin: 0px auto 20px auto;
}
}
.betmgmArticle {
font-family: “protipo-narrow”, sans-serif !vital;
width: 100%;
padding: 0;
margin-bottom: 24px;
border-radius: 8px;
show: inline-block;
font-family: Arial, sans-serif;
}

.betmgmArticle .header {
font-weight: daring;
margin-bottom: 10px;
show: block;
colour: var(–core-sn-blue-800-blue, #06192F);
text-decoration: none;
}

.betmgmArticle .content material {
show: flex;
flex-wrap: wrap;
align-items: middle;
padding: 20px 10px;
border-radius: 8px;
border: 1px strong var(–Gray-Scale-400-Gray, #CED4DA);
background: var(–Gray-Scale-0-White, #FFF);
}

@media (max-width: 767px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 1250px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}

.betmgmArticle .part {
width: 82px;
flex: 1;
text-align: middle;
}

.betmgmArticle .part .row {
font-size: 14px;
line-height: 22px;
}

.betmgmArticle .section-info {
flex: 2;
}

.betmgmArticle .section-info .gameDate {
colour: var(–core-sn-blue-800-blue, #06192F);
text-align: middle;
font-size: 14px;
font-style: regular;
font-weight: 700;
line-height: regular;
margin-bottom: 14px;
}

.betmgmArticle .section-info .team-logo {
width: 48px;
peak: 48px;
show: inline-block;
}

.betmgmArticle .section-info .versus {
show: inline-block;
margin: 0 16px;
font-size: 14px;
colour: #495057;
font-weight: 500;
}

.betmgmArticle .divider {
width: 1px;
background-color: #ddd;
background: var(–Gray-Scale-400-Gray, #CED4DA);
peak: 82px;
margin: 0 16px;
}

.betmgmArticle .title {
text-align: middle;
font-weight: daring;
margin-bottom: 8px;
font-size: 16px;
}
@media (max-width: 767px) {
.betmgmArticle .title {
text-align: left;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .title {
text-align: middle;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .title {
text-align: left;
}
}

@media (min-width: 1250px) {
.betmgmArticle .title {
text-align: middle;
}
}

.betmgmArticle .row {
margin-bottom: 5px;
show: flex;
justify-content: space-between;
margin: 0;
}
.betmgmArticle .row::earlier than {
show: none;
}

.betmgmArticle .worth {
font-weight: daring;
}

.betmgmArticle .purple {
colour: purple;
}

.betmgmArticle .inexperienced {
colour: inexperienced;
}

.betmgmArticle .betmgm-button {
cursor: pointer;
}
.betmgmArticle .betmgm-button a {
text-decoration: none;
}

.betmgmArticle .button button {
background-color: #005EB8;
colour: white;
padding: 6px 16px 14px 16px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: daring;
}

.betmgmArticle .buttonText {
place: relative;
colour: #ADB5BD;
font-size: 12px;
font-style: regular;
font-weight: 500;
line-height: regular;
text-align: left;
high: -6px;
margin-bottom: 10px;
}

.betmgmArticle .betMGMLogo {
text-align: left;
width: 150px;
peak: 42px;

@media (max-width: 767px) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-Black.svg’) no-repeat;
background-size: cowl;

@media (prefers-color-scheme: darkish) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-White.svg’) no-repeat;
}
}
}

.betmgmArticle .betMGMLogo img {
text-align: left;
width: 150px;
peak: 42px;
}

.betmgmArticle .content-mobile {
show: flex;
justify-content: space-around;
width: 100%;
margin-top: 20px;
}

@media (max-width: 767px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content-mobile {
show: none;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}

@media (min-width: 1250px) {
.betmgmArticle .content-mobile {
show: none;
}
}

.betmgmArticle .content-mobile .team-logos {
show: flex;
justify-content: flex-start;
width: 100%;
}

.betmgmArticle .content-mobile .team-logos .versus {
show: flex;
align-items: middle;
}

.betmgmArticle .content-mobile .gameDate {
text-align: left;
margin-bottom: 8px;
}

.betmgmArticle .content-mobile .buttonText {
text-align: left;
high: 0;
margin-bottom: 12px;
text-decoration: none;
colour: #ADB5BD;
}

@media (max-width: 767px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .desktop-only {
show: block;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 1250px) {
.betmgmArticle .desktop-only {
show: block;
}
}

async perform fetchOddsData(league, gameId) {
const res = await fetch(`https://stats-api.sportsnet.ca/livetracker?league=${league}&id=${gameId}`, {
cache: ‘no-store’,
});

if (!res.okay) {
throw new Error(‘Did not fetch odds knowledge’);
}

const knowledge = await res.json();
const oddsData = knowledge?.knowledge?.recreation?.particulars?.current_line;
const visitingTeam = knowledge?.knowledge?.recreation?.visiting_team;
const visitingTeamLogo = knowledge?.knowledge?.recreation?.visiting_team?.image_url_90;
const homeTeam = knowledge?.knowledge?.recreation?.home_team;
const homeTeamLogo = knowledge?.knowledge?.recreation?.home_team?.image_url_90;
const gameTimestamp = knowledge?.knowledge?.recreation?.particulars?.timestamp;

return { oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp };
}

async perform renderBetMGM(componentId, league, gameId) {
let oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp, error;

const container = doc.getElementById(componentId + ‘-odds’);
if (!container) return;

attempt {
({ oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp } = await fetchOddsData(league, gameId));
} catch (err) {
error = err.message;
}

if (error) {
container.innerHTML = `

Error: ${error}

`;
return;
}

if (!oddsData) {
container.innerHTML = `

Odds knowledge not out there

`;
return;
}

let gameDate = new Date(gameTimestamp * 1000);
const gameDateFormatted = gameDate.toLocaleDateString(‘en-US’, { yr: ‘numeric’, month: ‘lengthy’, day: ‘numeric’ });

container.innerHTML = `

BetMGM Odds

${gameDateFormatted}

VS

Moneyline

${visitingTeam.short_name}
${oddsData.away_money > 0 ? `+${oddsData.away_money}` : oddsData.away_money}

${homeTeam.short_name}
${oddsData.home_money > 0 ? `+${oddsData.home_money}` : oddsData.home_money}

Unfold

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

${oddsData.fav_id === homeTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}
${oddsData.fav_id === homeTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

Over/Underneath

O ${oddsData.complete}
${oddsData.over_money > 0 ? `+${oddsData.over_money}` : oddsData.over_money}

U ${oddsData.complete}
${oddsData.under_money > 0 ? `+${oddsData.under_money}` : oddsData.under_money}

Powered by

BetMGM Logo

${gameDateFormatted}

VS

Powered by

`;
}

// Instance utilization
renderBetMGM(‘block_a12f8eb69985345ae15acc99d899574d’, ‘NFL’, ‘63055699-75b9-46d4-8039-140a8bba006d’);

Tennessee Titans vs. Los Angeles Chargers
The Chargers defence is phenomenal. Its coming off a recreation with three interceptions and surrenders fewer than one passing landing per recreation on the season. Towards the run, opposing RBs have scored simply as soon as on the floor. Neither QB can penetrate this defence, whether or not the Titans begin Mason Rudolph or Will Levis. Rudolph is finishing lower than 60 per cent of his passes and has the identical variety of interceptions as touchdowns (4).
PICK: Chargers -7.5 (-115)

#betmgm-odds {
@media (max-width: 767px) {
margin: 0 20px 20px 20px;
}
}
#betmgm-odds {
@media (min-width: 768px) and (max-width: 1023px) {
width: 83%;
margin: 0px auto 20px auto;
}
}
.betmgmArticle {
font-family: “protipo-narrow”, sans-serif !vital;
width: 100%;
padding: 0;
margin-bottom: 24px;
border-radius: 8px;
show: inline-block;
font-family: Arial, sans-serif;
}

.betmgmArticle .header {
font-weight: daring;
margin-bottom: 10px;
show: block;
colour: var(–core-sn-blue-800-blue, #06192F);
text-decoration: none;
}

.betmgmArticle .content material {
show: flex;
flex-wrap: wrap;
align-items: middle;
padding: 20px 10px;
border-radius: 8px;
border: 1px strong var(–Gray-Scale-400-Gray, #CED4DA);
background: var(–Gray-Scale-0-White, #FFF);
}

@media (max-width: 767px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 1250px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}

.betmgmArticle .part {
width: 82px;
flex: 1;
text-align: middle;
}

.betmgmArticle .part .row {
font-size: 14px;
line-height: 22px;
}

.betmgmArticle .section-info {
flex: 2;
}

.betmgmArticle .section-info .gameDate {
colour: var(–core-sn-blue-800-blue, #06192F);
text-align: middle;
font-size: 14px;
font-style: regular;
font-weight: 700;
line-height: regular;
margin-bottom: 14px;
}

.betmgmArticle .section-info .team-logo {
width: 48px;
peak: 48px;
show: inline-block;
}

.betmgmArticle .section-info .versus {
show: inline-block;
margin: 0 16px;
font-size: 14px;
colour: #495057;
font-weight: 500;
}

.betmgmArticle .divider {
width: 1px;
background-color: #ddd;
background: var(–Gray-Scale-400-Gray, #CED4DA);
peak: 82px;
margin: 0 16px;
}

.betmgmArticle .title {
text-align: middle;
font-weight: daring;
margin-bottom: 8px;
font-size: 16px;
}
@media (max-width: 767px) {
.betmgmArticle .title {
text-align: left;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .title {
text-align: middle;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .title {
text-align: left;
}
}

@media (min-width: 1250px) {
.betmgmArticle .title {
text-align: middle;
}
}

.betmgmArticle .row {
margin-bottom: 5px;
show: flex;
justify-content: space-between;
margin: 0;
}
.betmgmArticle .row::earlier than {
show: none;
}

.betmgmArticle .worth {
font-weight: daring;
}

.betmgmArticle .purple {
colour: purple;
}

.betmgmArticle .inexperienced {
colour: inexperienced;
}

.betmgmArticle .betmgm-button {
cursor: pointer;
}
.betmgmArticle .betmgm-button a {
text-decoration: none;
}

.betmgmArticle .button button {
background-color: #005EB8;
colour: white;
padding: 6px 16px 14px 16px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: daring;
}

.betmgmArticle .buttonText {
place: relative;
colour: #ADB5BD;
font-size: 12px;
font-style: regular;
font-weight: 500;
line-height: regular;
text-align: left;
high: -6px;
margin-bottom: 10px;
}

.betmgmArticle .betMGMLogo {
text-align: left;
width: 150px;
peak: 42px;

@media (max-width: 767px) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-Black.svg’) no-repeat;
background-size: cowl;

@media (prefers-color-scheme: darkish) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-White.svg’) no-repeat;
}
}
}

.betmgmArticle .betMGMLogo img {
text-align: left;
width: 150px;
peak: 42px;
}

.betmgmArticle .content-mobile {
show: flex;
justify-content: space-around;
width: 100%;
margin-top: 20px;
}

@media (max-width: 767px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content-mobile {
show: none;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}

@media (min-width: 1250px) {
.betmgmArticle .content-mobile {
show: none;
}
}

.betmgmArticle .content-mobile .team-logos {
show: flex;
justify-content: flex-start;
width: 100%;
}

.betmgmArticle .content-mobile .team-logos .versus {
show: flex;
align-items: middle;
}

.betmgmArticle .content-mobile .gameDate {
text-align: left;
margin-bottom: 8px;
}

.betmgmArticle .content-mobile .buttonText {
text-align: left;
high: 0;
margin-bottom: 12px;
text-decoration: none;
colour: #ADB5BD;
}

@media (max-width: 767px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .desktop-only {
show: block;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 1250px) {
.betmgmArticle .desktop-only {
show: block;
}
}

async perform fetchOddsData(league, gameId) {
const res = await fetch(`https://stats-api.sportsnet.ca/livetracker?league=${league}&id=${gameId}`, {
cache: ‘no-store’,
});

if (!res.okay) {
throw new Error(‘Did not fetch odds knowledge’);
}

const knowledge = await res.json();
const oddsData = knowledge?.knowledge?.recreation?.particulars?.current_line;
const visitingTeam = knowledge?.knowledge?.recreation?.visiting_team;
const visitingTeamLogo = knowledge?.knowledge?.recreation?.visiting_team?.image_url_90;
const homeTeam = knowledge?.knowledge?.recreation?.home_team;
const homeTeamLogo = knowledge?.knowledge?.recreation?.home_team?.image_url_90;
const gameTimestamp = knowledge?.knowledge?.recreation?.particulars?.timestamp;

return { oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp };
}

async perform renderBetMGM(componentId, league, gameId) {
let oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp, error;

const container = doc.getElementById(componentId + ‘-odds’);
if (!container) return;

attempt {
({ oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp } = await fetchOddsData(league, gameId));
} catch (err) {
error = err.message;
}

if (error) {
container.innerHTML = `

Error: ${error}

`;
return;
}

if (!oddsData) {
container.innerHTML = `

Odds knowledge not out there

`;
return;
}

let gameDate = new Date(gameTimestamp * 1000);
const gameDateFormatted = gameDate.toLocaleDateString(‘en-US’, { yr: ‘numeric’, month: ‘lengthy’, day: ‘numeric’ });

container.innerHTML = `

BetMGM Odds

${gameDateFormatted}

VS

Moneyline

${visitingTeam.short_name}
${oddsData.away_money > 0 ? `+${oddsData.away_money}` : oddsData.away_money}

${homeTeam.short_name}
${oddsData.home_money > 0 ? `+${oddsData.home_money}` : oddsData.home_money}

Unfold

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

${oddsData.fav_id === homeTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}
${oddsData.fav_id === homeTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

Over/Underneath

O ${oddsData.complete}
${oddsData.over_money > 0 ? `+${oddsData.over_money}` : oddsData.over_money}

U ${oddsData.complete}
${oddsData.under_money > 0 ? `+${oddsData.under_money}` : oddsData.under_money}

Powered by

BetMGM Logo

${gameDateFormatted}

VS

Powered by

`;
}

// Instance utilization
renderBetMGM(‘block_f1bdbed6f8e1ec01c06b488f5d7221e9’, ‘NFL’, ‘a4bb6cc0-fabc-441e-a4f4-d8f809e1695e’);

New York Jets vs. Arizona Cardinals
This could possibly be recency bias, however the Jets offence lastly got here to life in a win towards Houston. QB Aaron Rodgers accomplished 68.8 per cent of his passes for 211 yards, three touchdowns and nil interceptions. The Cardinals will preserve this shut due to their speeding assault, which scored 3 times in Week 9. Nevertheless, Cardinals QB Kyler Murray is in for a troublesome recreation, as the Jets have allowed solely six passing touchdowns all season.
PICK: Jets +1.5 (-110)

#betmgm-odds {
@media (max-width: 767px) {
margin: 0 20px 20px 20px;
}
}
#betmgm-odds {
@media (min-width: 768px) and (max-width: 1023px) {
width: 83%;
margin: 0px auto 20px auto;
}
}
.betmgmArticle {
font-family: “protipo-narrow”, sans-serif !vital;
width: 100%;
padding: 0;
margin-bottom: 24px;
border-radius: 8px;
show: inline-block;
font-family: Arial, sans-serif;
}

.betmgmArticle .header {
font-weight: daring;
margin-bottom: 10px;
show: block;
colour: var(–core-sn-blue-800-blue, #06192F);
text-decoration: none;
}

.betmgmArticle .content material {
show: flex;
flex-wrap: wrap;
align-items: middle;
padding: 20px 10px;
border-radius: 8px;
border: 1px strong var(–Gray-Scale-400-Gray, #CED4DA);
background: var(–Gray-Scale-0-White, #FFF);
}

@media (max-width: 767px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 1250px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}

.betmgmArticle .part {
width: 82px;
flex: 1;
text-align: middle;
}

.betmgmArticle .part .row {
font-size: 14px;
line-height: 22px;
}

.betmgmArticle .section-info {
flex: 2;
}

.betmgmArticle .section-info .gameDate {
colour: var(–core-sn-blue-800-blue, #06192F);
text-align: middle;
font-size: 14px;
font-style: regular;
font-weight: 700;
line-height: regular;
margin-bottom: 14px;
}

.betmgmArticle .section-info .team-logo {
width: 48px;
peak: 48px;
show: inline-block;
}

.betmgmArticle .section-info .versus {
show: inline-block;
margin: 0 16px;
font-size: 14px;
colour: #495057;
font-weight: 500;
}

.betmgmArticle .divider {
width: 1px;
background-color: #ddd;
background: var(–Gray-Scale-400-Gray, #CED4DA);
peak: 82px;
margin: 0 16px;
}

.betmgmArticle .title {
text-align: middle;
font-weight: daring;
margin-bottom: 8px;
font-size: 16px;
}
@media (max-width: 767px) {
.betmgmArticle .title {
text-align: left;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .title {
text-align: middle;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .title {
text-align: left;
}
}

@media (min-width: 1250px) {
.betmgmArticle .title {
text-align: middle;
}
}

.betmgmArticle .row {
margin-bottom: 5px;
show: flex;
justify-content: space-between;
margin: 0;
}
.betmgmArticle .row::earlier than {
show: none;
}

.betmgmArticle .worth {
font-weight: daring;
}

.betmgmArticle .purple {
colour: purple;
}

.betmgmArticle .inexperienced {
colour: inexperienced;
}

.betmgmArticle .betmgm-button {
cursor: pointer;
}
.betmgmArticle .betmgm-button a {
text-decoration: none;
}

.betmgmArticle .button button {
background-color: #005EB8;
colour: white;
padding: 6px 16px 14px 16px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: daring;
}

.betmgmArticle .buttonText {
place: relative;
colour: #ADB5BD;
font-size: 12px;
font-style: regular;
font-weight: 500;
line-height: regular;
text-align: left;
high: -6px;
margin-bottom: 10px;
}

.betmgmArticle .betMGMLogo {
text-align: left;
width: 150px;
peak: 42px;

@media (max-width: 767px) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-Black.svg’) no-repeat;
background-size: cowl;

@media (prefers-color-scheme: darkish) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-White.svg’) no-repeat;
}
}
}

.betmgmArticle .betMGMLogo img {
text-align: left;
width: 150px;
peak: 42px;
}

.betmgmArticle .content-mobile {
show: flex;
justify-content: space-around;
width: 100%;
margin-top: 20px;
}

@media (max-width: 767px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content-mobile {
show: none;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}

@media (min-width: 1250px) {
.betmgmArticle .content-mobile {
show: none;
}
}

.betmgmArticle .content-mobile .team-logos {
show: flex;
justify-content: flex-start;
width: 100%;
}

.betmgmArticle .content-mobile .team-logos .versus {
show: flex;
align-items: middle;
}

.betmgmArticle .content-mobile .gameDate {
text-align: left;
margin-bottom: 8px;
}

.betmgmArticle .content-mobile .buttonText {
text-align: left;
high: 0;
margin-bottom: 12px;
text-decoration: none;
colour: #ADB5BD;
}

@media (max-width: 767px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .desktop-only {
show: block;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 1250px) {
.betmgmArticle .desktop-only {
show: block;
}
}

async perform fetchOddsData(league, gameId) {
const res = await fetch(`https://stats-api.sportsnet.ca/livetracker?league=${league}&id=${gameId}`, {
cache: ‘no-store’,
});

if (!res.okay) {
throw new Error(‘Did not fetch odds knowledge’);
}

const knowledge = await res.json();
const oddsData = knowledge?.knowledge?.recreation?.particulars?.current_line;
const visitingTeam = knowledge?.knowledge?.recreation?.visiting_team;
const visitingTeamLogo = knowledge?.knowledge?.recreation?.visiting_team?.image_url_90;
const homeTeam = knowledge?.knowledge?.recreation?.home_team;
const homeTeamLogo = knowledge?.knowledge?.recreation?.home_team?.image_url_90;
const gameTimestamp = knowledge?.knowledge?.recreation?.particulars?.timestamp;

return { oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp };
}

async perform renderBetMGM(componentId, league, gameId) {
let oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp, error;

const container = doc.getElementById(componentId + ‘-odds’);
if (!container) return;

attempt {
({ oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp } = await fetchOddsData(league, gameId));
} catch (err) {
error = err.message;
}

if (error) {
container.innerHTML = `

Error: ${error}

`;
return;
}

if (!oddsData) {
container.innerHTML = `

Odds knowledge not out there

`;
return;
}

let gameDate = new Date(gameTimestamp * 1000);
const gameDateFormatted = gameDate.toLocaleDateString(‘en-US’, { yr: ‘numeric’, month: ‘lengthy’, day: ‘numeric’ });

container.innerHTML = `

BetMGM Odds

${gameDateFormatted}

VS

Moneyline

${visitingTeam.short_name}
${oddsData.away_money > 0 ? `+${oddsData.away_money}` : oddsData.away_money}

${homeTeam.short_name}
${oddsData.home_money > 0 ? `+${oddsData.home_money}` : oddsData.home_money}

Unfold

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

${oddsData.fav_id === homeTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}
${oddsData.fav_id === homeTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

Over/Underneath

O ${oddsData.complete}
${oddsData.over_money > 0 ? `+${oddsData.over_money}` : oddsData.over_money}

U ${oddsData.complete}
${oddsData.under_money > 0 ? `+${oddsData.under_money}` : oddsData.under_money}

Powered by

BetMGM Logo

${gameDateFormatted}

VS

Powered by

`;
}

// Instance utilization
renderBetMGM(‘block_386fb9384bfb22b740ea8f1dc472f0d8’, ‘NFL’, ‘b93cae46-a2e7-4889-8141-12c6109f1b06’);

Philadelphia Eagles vs. Dallas Cowboys
The Cowboys are spiraling. They’ve misplaced three straight video games, and now quarterback Dak Prescott is coping with a hamstring damage that stored him out of the fourth quarter towards the Falcons. He’s been positioned on injured reserve. Moreover, the Cowboys have given up three passing touchdowns in two of the final three video games. Falcons QB Kirk Cousins has thrown seven touchdowns over his final two video games.
PICK: Eagles -7.5 (-110)

#betmgm-odds {
@media (max-width: 767px) {
margin: 0 20px 20px 20px;
}
}
#betmgm-odds {
@media (min-width: 768px) and (max-width: 1023px) {
width: 83%;
margin: 0px auto 20px auto;
}
}
.betmgmArticle {
font-family: “protipo-narrow”, sans-serif !vital;
width: 100%;
padding: 0;
margin-bottom: 24px;
border-radius: 8px;
show: inline-block;
font-family: Arial, sans-serif;
}

.betmgmArticle .header {
font-weight: daring;
margin-bottom: 10px;
show: block;
colour: var(–core-sn-blue-800-blue, #06192F);
text-decoration: none;
}

.betmgmArticle .content material {
show: flex;
flex-wrap: wrap;
align-items: middle;
padding: 20px 10px;
border-radius: 8px;
border: 1px strong var(–Gray-Scale-400-Gray, #CED4DA);
background: var(–Gray-Scale-0-White, #FFF);
}

@media (max-width: 767px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 1250px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}

.betmgmArticle .part {
width: 82px;
flex: 1;
text-align: middle;
}

.betmgmArticle .part .row {
font-size: 14px;
line-height: 22px;
}

.betmgmArticle .section-info {
flex: 2;
}

.betmgmArticle .section-info .gameDate {
colour: var(–core-sn-blue-800-blue, #06192F);
text-align: middle;
font-size: 14px;
font-style: regular;
font-weight: 700;
line-height: regular;
margin-bottom: 14px;
}

.betmgmArticle .section-info .team-logo {
width: 48px;
peak: 48px;
show: inline-block;
}

.betmgmArticle .section-info .versus {
show: inline-block;
margin: 0 16px;
font-size: 14px;
colour: #495057;
font-weight: 500;
}

.betmgmArticle .divider {
width: 1px;
background-color: #ddd;
background: var(–Gray-Scale-400-Gray, #CED4DA);
peak: 82px;
margin: 0 16px;
}

.betmgmArticle .title {
text-align: middle;
font-weight: daring;
margin-bottom: 8px;
font-size: 16px;
}
@media (max-width: 767px) {
.betmgmArticle .title {
text-align: left;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .title {
text-align: middle;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .title {
text-align: left;
}
}

@media (min-width: 1250px) {
.betmgmArticle .title {
text-align: middle;
}
}

.betmgmArticle .row {
margin-bottom: 5px;
show: flex;
justify-content: space-between;
margin: 0;
}
.betmgmArticle .row::earlier than {
show: none;
}

.betmgmArticle .worth {
font-weight: daring;
}

.betmgmArticle .purple {
colour: purple;
}

.betmgmArticle .inexperienced {
colour: inexperienced;
}

.betmgmArticle .betmgm-button {
cursor: pointer;
}
.betmgmArticle .betmgm-button a {
text-decoration: none;
}

.betmgmArticle .button button {
background-color: #005EB8;
colour: white;
padding: 6px 16px 14px 16px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: daring;
}

.betmgmArticle .buttonText {
place: relative;
colour: #ADB5BD;
font-size: 12px;
font-style: regular;
font-weight: 500;
line-height: regular;
text-align: left;
high: -6px;
margin-bottom: 10px;
}

.betmgmArticle .betMGMLogo {
text-align: left;
width: 150px;
peak: 42px;

@media (max-width: 767px) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-Black.svg’) no-repeat;
background-size: cowl;

@media (prefers-color-scheme: darkish) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-White.svg’) no-repeat;
}
}
}

.betmgmArticle .betMGMLogo img {
text-align: left;
width: 150px;
peak: 42px;
}

.betmgmArticle .content-mobile {
show: flex;
justify-content: space-around;
width: 100%;
margin-top: 20px;
}

@media (max-width: 767px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content-mobile {
show: none;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}

@media (min-width: 1250px) {
.betmgmArticle .content-mobile {
show: none;
}
}

.betmgmArticle .content-mobile .team-logos {
show: flex;
justify-content: flex-start;
width: 100%;
}

.betmgmArticle .content-mobile .team-logos .versus {
show: flex;
align-items: middle;
}

.betmgmArticle .content-mobile .gameDate {
text-align: left;
margin-bottom: 8px;
}

.betmgmArticle .content-mobile .buttonText {
text-align: left;
high: 0;
margin-bottom: 12px;
text-decoration: none;
colour: #ADB5BD;
}

@media (max-width: 767px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .desktop-only {
show: block;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 1250px) {
.betmgmArticle .desktop-only {
show: block;
}
}

async perform fetchOddsData(league, gameId) {
const res = await fetch(`https://stats-api.sportsnet.ca/livetracker?league=${league}&id=${gameId}`, {
cache: ‘no-store’,
});

if (!res.okay) {
throw new Error(‘Did not fetch odds knowledge’);
}

const knowledge = await res.json();
const oddsData = knowledge?.knowledge?.recreation?.particulars?.current_line;
const visitingTeam = knowledge?.knowledge?.recreation?.visiting_team;
const visitingTeamLogo = knowledge?.knowledge?.recreation?.visiting_team?.image_url_90;
const homeTeam = knowledge?.knowledge?.recreation?.home_team;
const homeTeamLogo = knowledge?.knowledge?.recreation?.home_team?.image_url_90;
const gameTimestamp = knowledge?.knowledge?.recreation?.particulars?.timestamp;

return { oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp };
}

async perform renderBetMGM(componentId, league, gameId) {
let oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp, error;

const container = doc.getElementById(componentId + ‘-odds’);
if (!container) return;

attempt {
({ oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp } = await fetchOddsData(league, gameId));
} catch (err) {
error = err.message;
}

if (error) {
container.innerHTML = `

Error: ${error}

`;
return;
}

if (!oddsData) {
container.innerHTML = `

Odds knowledge not out there

`;
return;
}

let gameDate = new Date(gameTimestamp * 1000);
const gameDateFormatted = gameDate.toLocaleDateString(‘en-US’, { yr: ‘numeric’, month: ‘lengthy’, day: ‘numeric’ });

container.innerHTML = `

BetMGM Odds

${gameDateFormatted}

VS

Moneyline

${visitingTeam.short_name}
${oddsData.away_money > 0 ? `+${oddsData.away_money}` : oddsData.away_money}

${homeTeam.short_name}
${oddsData.home_money > 0 ? `+${oddsData.home_money}` : oddsData.home_money}

Unfold

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

${oddsData.fav_id === homeTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}
${oddsData.fav_id === homeTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

Over/Underneath

O ${oddsData.complete}
${oddsData.over_money > 0 ? `+${oddsData.over_money}` : oddsData.over_money}

U ${oddsData.complete}
${oddsData.under_money > 0 ? `+${oddsData.under_money}` : oddsData.under_money}

Powered by

BetMGM Logo

${gameDateFormatted}

VS

Powered by

`;
}

// Instance utilization
renderBetMGM(‘block_cc5a2815b30dcffc091a6dfef0220b88’, ‘NFL’, ‘6d5cb94f-b388-4ee2-8ebd-338808bff30b’);

Detroit Lions v. Houston Texans
The Lions, winners of six straight, tackle a beat-up Texans roster that scored simply 13 factors in a Week 9 loss to the Jets. The Texans’ key weapon is RB Joe Mixon. He’ll face a Lions defence that’s given up simply six touchdowns to the place this season. QB C.J. Stroud threw zero touchdowns final week and could possibly be in for a repeat. The Lions held Packers QB Jordan Love touchdown-less in Week 9.
PICK: Lions -3 (-110)

#betmgm-odds {
@media (max-width: 767px) {
margin: 0 20px 20px 20px;
}
}
#betmgm-odds {
@media (min-width: 768px) and (max-width: 1023px) {
width: 83%;
margin: 0px auto 20px auto;
}
}
.betmgmArticle {
font-family: “protipo-narrow”, sans-serif !vital;
width: 100%;
padding: 0;
margin-bottom: 24px;
border-radius: 8px;
show: inline-block;
font-family: Arial, sans-serif;
}

.betmgmArticle .header {
font-weight: daring;
margin-bottom: 10px;
show: block;
colour: var(–core-sn-blue-800-blue, #06192F);
text-decoration: none;
}

.betmgmArticle .content material {
show: flex;
flex-wrap: wrap;
align-items: middle;
padding: 20px 10px;
border-radius: 8px;
border: 1px strong var(–Gray-Scale-400-Gray, #CED4DA);
background: var(–Gray-Scale-0-White, #FFF);
}

@media (max-width: 767px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 1250px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}

.betmgmArticle .part {
width: 82px;
flex: 1;
text-align: middle;
}

.betmgmArticle .part .row {
font-size: 14px;
line-height: 22px;
}

.betmgmArticle .section-info {
flex: 2;
}

.betmgmArticle .section-info .gameDate {
colour: var(–core-sn-blue-800-blue, #06192F);
text-align: middle;
font-size: 14px;
font-style: regular;
font-weight: 700;
line-height: regular;
margin-bottom: 14px;
}

.betmgmArticle .section-info .team-logo {
width: 48px;
peak: 48px;
show: inline-block;
}

.betmgmArticle .section-info .versus {
show: inline-block;
margin: 0 16px;
font-size: 14px;
colour: #495057;
font-weight: 500;
}

.betmgmArticle .divider {
width: 1px;
background-color: #ddd;
background: var(–Gray-Scale-400-Gray, #CED4DA);
peak: 82px;
margin: 0 16px;
}

.betmgmArticle .title {
text-align: middle;
font-weight: daring;
margin-bottom: 8px;
font-size: 16px;
}
@media (max-width: 767px) {
.betmgmArticle .title {
text-align: left;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .title {
text-align: middle;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .title {
text-align: left;
}
}

@media (min-width: 1250px) {
.betmgmArticle .title {
text-align: middle;
}
}

.betmgmArticle .row {
margin-bottom: 5px;
show: flex;
justify-content: space-between;
margin: 0;
}
.betmgmArticle .row::earlier than {
show: none;
}

.betmgmArticle .worth {
font-weight: daring;
}

.betmgmArticle .purple {
colour: purple;
}

.betmgmArticle .inexperienced {
colour: inexperienced;
}

.betmgmArticle .betmgm-button {
cursor: pointer;
}
.betmgmArticle .betmgm-button a {
text-decoration: none;
}

.betmgmArticle .button button {
background-color: #005EB8;
colour: white;
padding: 6px 16px 14px 16px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: daring;
}

.betmgmArticle .buttonText {
place: relative;
colour: #ADB5BD;
font-size: 12px;
font-style: regular;
font-weight: 500;
line-height: regular;
text-align: left;
high: -6px;
margin-bottom: 10px;
}

.betmgmArticle .betMGMLogo {
text-align: left;
width: 150px;
peak: 42px;

@media (max-width: 767px) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-Black.svg’) no-repeat;
background-size: cowl;

@media (prefers-color-scheme: darkish) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-White.svg’) no-repeat;
}
}
}

.betmgmArticle .betMGMLogo img {
text-align: left;
width: 150px;
peak: 42px;
}

.betmgmArticle .content-mobile {
show: flex;
justify-content: space-around;
width: 100%;
margin-top: 20px;
}

@media (max-width: 767px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content-mobile {
show: none;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}

@media (min-width: 1250px) {
.betmgmArticle .content-mobile {
show: none;
}
}

.betmgmArticle .content-mobile .team-logos {
show: flex;
justify-content: flex-start;
width: 100%;
}

.betmgmArticle .content-mobile .team-logos .versus {
show: flex;
align-items: middle;
}

.betmgmArticle .content-mobile .gameDate {
text-align: left;
margin-bottom: 8px;
}

.betmgmArticle .content-mobile .buttonText {
text-align: left;
high: 0;
margin-bottom: 12px;
text-decoration: none;
colour: #ADB5BD;
}

@media (max-width: 767px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .desktop-only {
show: block;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 1250px) {
.betmgmArticle .desktop-only {
show: block;
}
}

async perform fetchOddsData(league, gameId) {
const res = await fetch(`https://stats-api.sportsnet.ca/livetracker?league=${league}&id=${gameId}`, {
cache: ‘no-store’,
});

if (!res.okay) {
throw new Error(‘Did not fetch odds knowledge’);
}

const knowledge = await res.json();
const oddsData = knowledge?.knowledge?.recreation?.particulars?.current_line;
const visitingTeam = knowledge?.knowledge?.recreation?.visiting_team;
const visitingTeamLogo = knowledge?.knowledge?.recreation?.visiting_team?.image_url_90;
const homeTeam = knowledge?.knowledge?.recreation?.home_team;
const homeTeamLogo = knowledge?.knowledge?.recreation?.home_team?.image_url_90;
const gameTimestamp = knowledge?.knowledge?.recreation?.particulars?.timestamp;

return { oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp };
}

async perform renderBetMGM(componentId, league, gameId) {
let oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp, error;

const container = doc.getElementById(componentId + ‘-odds’);
if (!container) return;

attempt {
({ oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp } = await fetchOddsData(league, gameId));
} catch (err) {
error = err.message;
}

if (error) {
container.innerHTML = `

Error: ${error}

`;
return;
}

if (!oddsData) {
container.innerHTML = `

Odds knowledge not out there

`;
return;
}

let gameDate = new Date(gameTimestamp * 1000);
const gameDateFormatted = gameDate.toLocaleDateString(‘en-US’, { yr: ‘numeric’, month: ‘lengthy’, day: ‘numeric’ });

container.innerHTML = `

BetMGM Odds

${gameDateFormatted}

VS

Moneyline

${visitingTeam.short_name}
${oddsData.away_money > 0 ? `+${oddsData.away_money}` : oddsData.away_money}

${homeTeam.short_name}
${oddsData.home_money > 0 ? `+${oddsData.home_money}` : oddsData.home_money}

Unfold

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

${oddsData.fav_id === homeTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}
${oddsData.fav_id === homeTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

Over/Underneath

O ${oddsData.complete}
${oddsData.over_money > 0 ? `+${oddsData.over_money}` : oddsData.over_money}

U ${oddsData.complete}
${oddsData.under_money > 0 ? `+${oddsData.under_money}` : oddsData.under_money}

Powered by

BetMGM Logo

${gameDateFormatted}

VS

Powered by

`;
}

// Instance utilization
renderBetMGM(‘block_0a01b9d9e0eb33cf080c9378de54501c’, ‘NFL’, ‘fbc64144-b913-472d-8df9-96db6a2749ae’);

Miami Dolphins vs. Los Angeles Rams
The important thing to a Rams win right here is their run defence. Over the final two weeks, they held the Seahawks and Vikings to three.37 yards per carry or much less and haven’t surrendered a speeding landing in three video games. The Dolphins have RB De’Von Achane, who can run and catch, however RBs don’t have a receiving landing towards the Rams this yr. The Rams edge this one out.
PICK: Rams -2.5 (-110)

#betmgm-odds {
@media (max-width: 767px) {
margin: 0 20px 20px 20px;
}
}
#betmgm-odds {
@media (min-width: 768px) and (max-width: 1023px) {
width: 83%;
margin: 0px auto 20px auto;
}
}
.betmgmArticle {
font-family: “protipo-narrow”, sans-serif !vital;
width: 100%;
padding: 0;
margin-bottom: 24px;
border-radius: 8px;
show: inline-block;
font-family: Arial, sans-serif;
}

.betmgmArticle .header {
font-weight: daring;
margin-bottom: 10px;
show: block;
colour: var(–core-sn-blue-800-blue, #06192F);
text-decoration: none;
}

.betmgmArticle .content material {
show: flex;
flex-wrap: wrap;
align-items: middle;
padding: 20px 10px;
border-radius: 8px;
border: 1px strong var(–Gray-Scale-400-Gray, #CED4DA);
background: var(–Gray-Scale-0-White, #FFF);
}

@media (max-width: 767px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content material {
padding: 20px;
}
}
@media (min-width: 1250px) {
.betmgmArticle .content material {
padding: 20px 10px;
}
}

.betmgmArticle .part {
width: 82px;
flex: 1;
text-align: middle;
}

.betmgmArticle .part .row {
font-size: 14px;
line-height: 22px;
}

.betmgmArticle .section-info {
flex: 2;
}

.betmgmArticle .section-info .gameDate {
colour: var(–core-sn-blue-800-blue, #06192F);
text-align: middle;
font-size: 14px;
font-style: regular;
font-weight: 700;
line-height: regular;
margin-bottom: 14px;
}

.betmgmArticle .section-info .team-logo {
width: 48px;
peak: 48px;
show: inline-block;
}

.betmgmArticle .section-info .versus {
show: inline-block;
margin: 0 16px;
font-size: 14px;
colour: #495057;
font-weight: 500;
}

.betmgmArticle .divider {
width: 1px;
background-color: #ddd;
background: var(–Gray-Scale-400-Gray, #CED4DA);
peak: 82px;
margin: 0 16px;
}

.betmgmArticle .title {
text-align: middle;
font-weight: daring;
margin-bottom: 8px;
font-size: 16px;
}
@media (max-width: 767px) {
.betmgmArticle .title {
text-align: left;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .title {
text-align: middle;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .title {
text-align: left;
}
}

@media (min-width: 1250px) {
.betmgmArticle .title {
text-align: middle;
}
}

.betmgmArticle .row {
margin-bottom: 5px;
show: flex;
justify-content: space-between;
margin: 0;
}
.betmgmArticle .row::earlier than {
show: none;
}

.betmgmArticle .worth {
font-weight: daring;
}

.betmgmArticle .purple {
colour: purple;
}

.betmgmArticle .inexperienced {
colour: inexperienced;
}

.betmgmArticle .betmgm-button {
cursor: pointer;
}
.betmgmArticle .betmgm-button a {
text-decoration: none;
}

.betmgmArticle .button button {
background-color: #005EB8;
colour: white;
padding: 6px 16px 14px 16px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: daring;
}

.betmgmArticle .buttonText {
place: relative;
colour: #ADB5BD;
font-size: 12px;
font-style: regular;
font-weight: 500;
line-height: regular;
text-align: left;
high: -6px;
margin-bottom: 10px;
}

.betmgmArticle .betMGMLogo {
text-align: left;
width: 150px;
peak: 42px;

@media (max-width: 767px) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-Black.svg’) no-repeat;
background-size: cowl;

@media (prefers-color-scheme: darkish) {
background: url(‘../../../wp-content/themes/sportsnet-nhl/photographs/BetMGM-White.svg’) no-repeat;
}
}
}

.betmgmArticle .betMGMLogo img {
text-align: left;
width: 150px;
peak: 42px;
}

.betmgmArticle .content-mobile {
show: flex;
justify-content: space-around;
width: 100%;
margin-top: 20px;
}

@media (max-width: 767px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .content-mobile {
show: none;
}
}

@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .content-mobile {
show: flex;
margin: 20px 0;
}
}

@media (min-width: 1250px) {
.betmgmArticle .content-mobile {
show: none;
}
}

.betmgmArticle .content-mobile .team-logos {
show: flex;
justify-content: flex-start;
width: 100%;
}

.betmgmArticle .content-mobile .team-logos .versus {
show: flex;
align-items: middle;
}

.betmgmArticle .content-mobile .gameDate {
text-align: left;
margin-bottom: 8px;
}

.betmgmArticle .content-mobile .buttonText {
text-align: left;
high: 0;
margin-bottom: 12px;
text-decoration: none;
colour: #ADB5BD;
}

@media (max-width: 767px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 768px) and (max-width: 1023px) {
.betmgmArticle .desktop-only {
show: block;
}
}
@media (min-width: 1024px) and (max-width: 1249px) {
.betmgmArticle .desktop-only {
show: none;
}
}
@media (min-width: 1250px) {
.betmgmArticle .desktop-only {
show: block;
}
}

async perform fetchOddsData(league, gameId) {
const res = await fetch(`https://stats-api.sportsnet.ca/livetracker?league=${league}&id=${gameId}`, {
cache: ‘no-store’,
});

if (!res.okay) {
throw new Error(‘Did not fetch odds knowledge’);
}

const knowledge = await res.json();
const oddsData = knowledge?.knowledge?.recreation?.particulars?.current_line;
const visitingTeam = knowledge?.knowledge?.recreation?.visiting_team;
const visitingTeamLogo = knowledge?.knowledge?.recreation?.visiting_team?.image_url_90;
const homeTeam = knowledge?.knowledge?.recreation?.home_team;
const homeTeamLogo = knowledge?.knowledge?.recreation?.home_team?.image_url_90;
const gameTimestamp = knowledge?.knowledge?.recreation?.particulars?.timestamp;

return { oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp };
}

async perform renderBetMGM(componentId, league, gameId) {
let oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp, error;

const container = doc.getElementById(componentId + ‘-odds’);
if (!container) return;

attempt {
({ oddsData, visitingTeam, visitingTeamLogo, homeTeam, homeTeamLogo, gameTimestamp } = await fetchOddsData(league, gameId));
} catch (err) {
error = err.message;
}

if (error) {
container.innerHTML = `

Error: ${error}

`;
return;
}

if (!oddsData) {
container.innerHTML = `

Odds knowledge not out there

`;
return;
}

let gameDate = new Date(gameTimestamp * 1000);
const gameDateFormatted = gameDate.toLocaleDateString(‘en-US’, { yr: ‘numeric’, month: ‘lengthy’, day: ‘numeric’ });

container.innerHTML = `

BetMGM Odds

${gameDateFormatted}

VS

Moneyline

${visitingTeam.short_name}
${oddsData.away_money > 0 ? `+${oddsData.away_money}` : oddsData.away_money}

${homeTeam.short_name}
${oddsData.home_money > 0 ? `+${oddsData.home_money}` : oddsData.home_money}

Unfold

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}

${oddsData.fav_id === visitingTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

${oddsData.fav_id === homeTeam.id
? oddsData.fav_points
: oddsData.fav_points > 0 ? `-${oddsData.fav_points}` : `+${Math.abs(oddsData.fav_points)}`}
${oddsData.fav_id === homeTeam.id
? oddsData.fav_money > 0 ? `+${oddsData.fav_money}` : oddsData.fav_money
: oddsData.underdog_money > 0 ? `+${oddsData.underdog_money}` : oddsData.underdog_money}

Over/Underneath

O ${oddsData.complete}
${oddsData.over_money > 0 ? `+${oddsData.over_money}` : oddsData.over_money}

U ${oddsData.complete}
${oddsData.under_money > 0 ? `+${oddsData.under_money}` : oddsData.under_money}

Powered by

BetMGM Logo

${gameDateFormatted}

VS

Powered by

`;
}

// Instance utilization
renderBetMGM(‘block_822f25d5dfe6c6da6209b0897ed1cfc7’, ‘NFL’, ‘b1eb63ec-bd2c-46fe-884c-edd703565ddd’);

You might also like
Leave A Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. AcceptRead More

Privacy & Cookies Policy