Northwest Division
'; } else if (sportType == 'ncf'){ tAbbrev = item.id logo = ''; } else if (sportType == 'ncb'){ tAbbrev = item.id logo = ''; } else if (sportType == 'ncw'){ // ncaa tAbbrev = item.id; logoAbbrev = tAbbrev if (item.sport == 54 && item.id == 2633){ logoAbbrev = tAbbrev + '_ncw'; } logo = ''; } else if (sportType == 'soccer'){ // all inclusive soccer list logo = ''; } if (count == 0 && !displayModule){ $('.mod-myespn .personalization-teams').html(''); } if (logo != ''){ if (checkTeam == item.id && checkSport == item.sport){ $('.mod-myespn .personalization-teams').append(logo).fadeIn(fadeTime, function(){ espn.core.init.faves(); }); } else{ $('.mod-myespn .personalization-teams').append(logo); } } count++; } if (count == 1 && !displayModule){ $('#myespn-personalization').show(); displayModule = true; } } }); } } }); } } $(document).ready(function() { var teamId = $('body').metadata()['teamId']; var sportId = $('body').metadata()['sportId']; var groupId = $('body').metadata()['groupId']; var teamName = 'Oklahoma City Thunder'; var abbrevs = {10:'mlb',46:'nba',28:'nfl',90:'nhl',23:'ncf',41:'ncb',54:'ncw'} var teamAbbrev = abbrevs[sportId]; 'espn.nav.tier3'.namespace(); espn.nav.tier3.teamId = teamId; espn.nav.tier3.sportId = sportId; //disallow favorting for d2 schools based off of the groupId var showFavorites = false;//!((groupId == 35 && sportId == 23) || (groupId == 51 && (sportId == 54 || sportId == 41))) if(showFavorites){ if (loggedIn){ if ($('#sub-branding h1').length > 0){ $('#sub-branding h1').after(''); } else{ $('#sub-branding h2').after(''); } resetData(0, 0); espn.p13n.get({ "success" : function(data) { if (data!=null && data!='UNDEF' && typeof(data.myTeams) != 'UNDEF' && data.myTeams != null) { $.each(data.myTeams, function(i,item) { if (typeof(item.sport) != 'UNDEF' && item.sport != null) { if (item.sport == sportId && item.id == teamId){ showAddButton = false; } } }); } if (showAddButton){ $('#sub-branding a.btn-add-fave-team').html('Agregar a mis favoritos').show().attr("onclick","anTrackLink(this,'espn','teamclubhouse','" + teamAbbrev + "_" + teamName.toLowerCase().replace(' ','') + "_addfavorite_loggedin-add'); return false;"); } }, "error" : function(){ $('body.clubhouse #clubhouse-city-teams').show(); } }); $('#sub-branding a.btn-add-fave-team').click(function(){ if (showAddButton){ // don't allow the button to click through if it is informing you of their favorite team showAddButton = false; // don't allow multiple clicks during the transition espn.p13n.add( { "teams": sportId+":"+teamId }, { "success" : function() { $('#sub-branding a.btn-add-fave-team').html('Agregados').addClass('favorite').css('cursor','default'); setTimeout(function(){ resetData(sportId,teamId); }, fadeTime ); if (!!espn.fanapi && typeof espn.fanapi.emptyCache === "function") { espn.fanapi.emptyCache(); window.location.reload(); } }, "error" : function() { } } ); } }); } else{ $('body.clubhouse #clubhouse-city-teams').show(); if ($('#sub-branding h1').length > 0){ $('#sub-branding h1').after('Regstrate para personalizar'); } else{ $('#sub-branding h2').after('Regstrate para personalizar'); } $('#sub-branding a.btn-add-fave-team').show().attr('href','').attr('name','&lops=teamclubhouse&lid=' + teamAbbrev + '_' + teamName.toLowerCase().replace(' ','') + '_addfavorite_loggedout').attr('tref','//v3_1/').attr('data-options','{"addTeams":"'+sportId+':'+teamId+'","width":"820","height":"385"}').attr({"data-behavior":"overlay","data--team":"true"}); } $('#sub-branding a.btn-add-fave-team').hover( function(){ $(this).addClass('favorite').css('font-size','10px'); }, function(){ if (showAddButton){ $(this).removeClass('favorite').css('font-size','11px'); } } ); $('.inline-header ul.links li a').attr('data-behavior','clubhouse_favorite').attr({href:'',tref:'/personalization/v3_1/personalization','data-language':lang.toLowerCase(),tab:'teams'}); } }); })(jQuery);

Plantilla Oklahoma City Thunder - 2024-2025 3w2n2f