Bucks Request Waivers On Mirza Teletovic - Bucks.com

Bucks Request Waivers On Mirza Teletovic - Bucks.com
'; statsProfileHTML += ''; statsProfileHTML += ''; statsProfileHTML += '
'; $('.sidebar__player__stats--title').removeClass('hidden'); $('.sidebar__player__stats').append(statsProfileHTML); }; var getPlayerData = function(player){ $.getJSON('http://on.nba.com/2tDoyqM' + 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('http://on.nba.com/2tDoyqM' + 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); }); }); });

0 Response to "Bucks Request Waivers On Mirza Teletovic - Bucks.com"

Post a Comment