Summer League 2013
' + gamesJSON[i]["homeAway"] + '
' + gamesJSON[i]["date"] + '
'; else htmlSeriesHub += '
Live!
'; // else put 'Live!' if (gamesJSON[i]["tv"] != "NULL") if (gamesJSON[i]["tv"] == "Watch Online") { htmlSeriesHub += '
' + gamesJSON[i]["tv"] + '
'; thisLink = ''; } else htmlSeriesHub += '
' + gamesJSON[i]["tv"] + '
'; } else htmlSeriesHub += '
' + gamesJSON[i]["homeAway"] + '
' + gamesJSON[i]["finalScore"] + '
'; // turn li into a link if tickets or gameday is ready if (thisLink != "NULL") htmlSeriesHub += thisLink; htmlSeriesHub += ''; thisLink = "NULL"; // reset with every iteration } $("#series-hub").html(htmlSeriesHub); /* Setup Top Story * Can't use a for() loop, elements are created in a weird order (1,3,2,4) because they are inputted vertically on the page */ htmlTopStory += '
' + topStoryJSON[0]["title"] + '
' + topStoryJSON[0]["blurb"] + '
' + topStoryJSON[2]["title"] + '
' + topStoryJSON[2]["blurb"] + '
' + topStoryJSON[1]["title"] + '
' + topStoryJSON[1]["blurb"] + '
' + topStoryJSON[3]["title"] + '
' + topStoryJSON[3]["blurb"] + '
'; $("#top-story-content").html(htmlTopStory); /* Setup Gallery */ for (i=0; i
' + galleryJSON[i]["title"] + '
'; } htmlGallery += ''; $("#photos-slides").html(htmlGallery); $("#photos-slides").slidesjs({ width: 570, height: 300, navigation: { active: false, effect: "fade" }, pagination: { active: false }, play: { active: false, effect: "fade", interval: 5000, auto: true, pauseOnHover: true, restartDelay: 2500 }, effect: { fade: { speed: 350, crossfade: true } } }); /* Setup Team Info */ /* Team News */ htmlNews += '

News & Features

    '; for (i=0; i
'; /* Team Stats */ htmlStats += '

Stats

'; htmlStats += '
POINTS PER GAME
  • ' + statsJSON[0]["ppg"][0]["player"] + '
  • ' + statsJSON[0]["ppg"][1]["player"] + '
  • ' + statsJSON[0]["ppg"][2]["player"] + '
'; htmlStats += '
ASSISTS PER GAME
  • ' + statsJSON[0]["apg"][0]["player"] + '
  • ' + statsJSON[0]["apg"][1]["player"] + '
  • ' + statsJSON[0]["apg"][2]["player"] + '
'; htmlStats += '
REBOUNDS PER GAME
  • ' + statsJSON[0]["rpg"][0]["player"] + '
  • ' + statsJSON[0]["rpg"][1]["player"] + '
  • ' + statsJSON[0]["rpg"][2]["player"] + '
'; htmlStats += 'FULL STATS'; htmlStats += '
'; /* Team Roster */ htmlRoster += '

Roster

'; for (i=0; i
'; htmlTeam = htmlNews + htmlStats + htmlRoster; $("#team-row").html(htmlTeam); } function saveDataWarriorsTV(data) { var videosJSON, videosJSONLength, i, thisTags, thisLink, thisTitle, thisImg; videosJSON = data["list"]["vid"]; videosJSONLength = videosJSON.length; for (i=0; i = videosPlayoffsLength) { upperBound = videosPlayoffsLength; $("#btn-expand-videos").hide(); // hide 'load more' button } for (videosPlayoffsIndex; videosPlayoffsIndex
' + videosPlayoffs[videosPlayoffsIndex]["title"] + '
'; } $("#videos-row").append(htmlVideosRow); } function loadBlogsRow() { var htmlBlogsRow = '', upperBound; upperBound = blogsPlayoffsIndex + 2; if (upperBound >= blogsPlayoffsLength) { upperBound = blogsPlayoffsLength; $("#btn-expand-blogs").hide(); } for (blogsPlayoffsIndex; blogsPlayoffsIndex
' + blogsPlayoffs[blogsPlayoffsIndex]["title"] +'
'; } $("#blogs-row").append(htmlBlogsRow); }
Video Coverage
Blogs
Team
Interviews and Photo Galleries