Created
September 20, 2012 16:33
-
-
Save adam8810/3756941 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$(data.cast).each(function($index) | |
{ | |
// Set defaults | |
$profile_path = "/assets/img/missing_" + (($index % 5) + 1) + ".png"; | |
$position_offsets = ""; | |
// Check to see if image exists | |
if(this.profile_path != null) | |
{ | |
$profile_path = "http://cf2.imgobject.com/t/p/w185" + this.profile_path; | |
$position_offsets = "-20px -40px"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment