You are here
Home > Basketball > Gus Macker 3-on-3 Tournament Coming to Plaza in Front of Fiserv Forum on Saturday and Sunday, Sept. 14-15

Gus Macker 3-on-3 Tournament Coming to Plaza in Front of Fiserv Forum on Saturday and Sunday, Sept. 14-15

‘; statsProfileHTML += ”; statsProfileHTML += ”; statsProfileHTML += ‘

‘; $(‘.sidebar__player__stats–title’).removeClass(‘hidden’); $(‘.sidebar__player__stats’).append(statsProfileHTML); }; var getPlayerData = function(player){ $.getJSON(‘https://data.nba.com/data/v2015/json/mobile_teams/nba/’ + seasonYear + ‘/players/playercard_’ + player.pid + ‘_’ + seasontype_id + ‘.json’, function(playerData) {}) .done(function(playerData){ buildProfile(playerData); }) .error(function() { // Insert empty data if no stats exist buildProfile({“pl”:{“fn”:player.fn,”ht”:player.ht,”ln”:player.ln,”pid”:player.pid,”pos”:player.pos,”wt”:player.wt,”ca”:{“sa”:[{“val”:”-“,”gp”:”-“,”min”:”-“,”fgp”:”-“,”tpp”:”-“,”ftp”:”-“,”reb”:”-“,”ast”:”-“,”stl”:”-“,”blk”:”-“,”tov”:”-“,”pf”:”-“,”pts”:”-“,”ta”:”-“,”tn”:”-“,”tc”:”-“}]}}}); }); }; var checkRoster = function(tagPlayerName, playerList){ for (var i in playerList) { var compareName = playerList[i].ln + ‘, ‘ + playerList[i].fn; if (compareName === tagPlayerName){ getPlayerData(playerList[i]); } } }; $.getJSON(‘https://data.nba.com/data/v2015/json/mobile_teams/nba/’ + seasonYear + ‘/teams/bucks_roster.json’, function(rosterData) { var playerList = rosterData.t.pl; $(‘.tag__link’).each(function(i, tag) { var tagPlayerName = $(tag).html(); checkRoster(tagPlayerName, playerList); }); });
});

Top