Created
December 29, 2013 18:19
-
-
Save chrisjdavis/8173116 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// an array to hold our parsed shots. | |
var str = []; | |
// next we iterate over the shots and find the URL we want to update. | |
var shots = function() { | |
$.getShotsByPlayerId( "popular", function(data) { | |
$.each(data.shots, function( i, shot ) { | |
var shot_url = shot.image_image_url.replace("http", "https"); | |
str.push('<li><a href="' + shot.url + '"><img src="' + shot_url+ '" alt="' + shot.title + '">'); | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment