Yankees officially add Cortes to roster for World Series


Nestor Cortes was the only addition made to the New York Yankeesroster for the World Series.

The veteran left-hander replaces infielder Jon Berti on the roster. The Yankees will carry 13 pitchers and 13 position players.

Watch the World Series on Sportsnet

Shohei Ohtani and the Los Angeles Dodgers face Aaron Judge and the New York Yankees in a star-powered World Series. Watch every game on Sportsnet and Sportsnet+.

Cortes has not appeared in a game since mid-September due to a flexor strain in his pitching arm. When asked earlier this week if there was a risk of further damage to his arm if he rushed back to pitch in the Fall Classic, Cortes said whatever risk there was was worth it.

“We have weighed in the consequences,” Cortes told reporters in New York. “But if I have a ring and then a year off of baseball, so be it.”

It’s unclear but unlikely that Cortes will start in the series, instead coming into games as a left-handed option against the deep Dodgers lineup. Gerrit Cole, Carlos Rodón, Clarke Schmidt and Luis Gil are the expected starters in the rotation for the Yankees.

#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 !important;
width: 100%;
padding: 0;
margin-bottom: 24px;
border-radius: 8px;
display: inline-block;
font-family: Arial, sans-serif;
}

.betmgmArticle .header {
font-weight: bold;
margin-bottom: 10px;
}

.betmgmArticle .content {
display: flex;
flex-wrap: wrap;
align-items: center;
padding: 20px 10px;
border-radius: 8px;
border: 1px solid var(–Grey-Scale-400-Grey, #CED4DA);
background: var(–Grey-Scale-0-White, #FFF);
}

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

.betmgmArticle .section {
width: 82px;
flex: 1;
text-align: center;
}

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

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

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

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

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

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

.betmgmArticle .title {
text-align: center;
font-weight: bold;
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: center;
}
}

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

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

.betmgmArticle .row {
margin-bottom: 5px;
display: flex;
justify-content: space-between;
margin: 0;
}
.betmgmArticle .row::before {
display: none;
}

.betmgmArticle .value {
font-weight: bold;
}

.betmgmArticle .red {
color: red;
}

.betmgmArticle .green {
color: green;
}

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

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

.betmgmArticle .buttonText {
position: relative;
color: #ADB5BD;
font-size: 12px;
font-style: normal;
font-weight: 500;
line-height: normal;
text-align: left;
top: -6px;
margin-bottom: 10px;
}

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

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

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

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

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

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

.betmgmArticle .content-mobile .team-logos .versus {
display: flex;
align-items: center;
}

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

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

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

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

if (!res.ok) {
throw new Error(‘Failed to fetch odds data’);
}

const data = await res.json();
const oddsData = data?.data?.game?.details?.current_line;
const visitingTeam = data?.data?.game?.visiting_team;
const visitingTeamLogo = data?.data?.game?.visiting_team?.image_url_90;
const homeTeam = data?.data?.game?.home_team;
const homeTeamLogo = data?.data?.game?.home_team?.image_url_90;
const gameTimestamp = data?.data?.game?.details?.timestamp;

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

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

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

try {
({ 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 data not available

`;
return;
}

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

container.innerHTML = `

ODDS
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}

Spread
${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/Under
O ${oddsData.total}
${oddsData.over_money > 0 ? `+${oddsData.over_money}` : oddsData.over_money}

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

`;
}

// Example usage
renderBetMGM(‘block_c908420e0c905a81502c93b562f857b8’, ‘MLB’, ‘b27bc305-7130-440e-ab5e-ac011b3cf925’);



Source link

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *