"); } // only if button was added if($(".follow-button").length) { $(".follow-button").click(function(){ var promise = isFollowing(); promise.then(function(result) { if (result) { unfollow(); } else { follow(); } }); }); // initial load toggleFollowButton(); } function toggleFollowButton() { var button = $(".follow-text"), promise = isFollowing(); promise.then(function(result) { if (result) { button.text(followingLabel); button.css("color", "#6c6d6f"); $(".follow-button").css("border-color", "#6c6d6f"); } else { button.text(followLabel); button.css("color", "#007aff"); $(".follow-button").css("border-color", "#007aff"); } }); } function isFollowing() { var promise = getMyPreferences(); return promise.then(function(result) { let myPlayers = result.myPlayers; if (myPlayers.length > 0) { for (var i = 0;i
Player Profile
Results
Videos
Photos
Menu
ESPN
scores
NFL
NBA
NHL
MLB
Soccer
Golf
WNBA
More Sports
Boxing
NCAA
Cricket
F1
Gaming
Horse
LLWS
MMA
NASCAR
NLL
NBA G League
NBA Summer League
NCAAF
NCAAM
NCAAW
NWSL
Olympics
PLL
Professional Wrestling
Racing
RN BB
RN FB
Rugby
Sports Betting
Tennis
TGL
UFL
X Games
Editions
Fantasy
Watch
ESPN BET
ESPN+
Tennis
Home
Scores
Schedule
Rankings
Players
Grand Slam History
Watch Tennis on ESPN
Tickets