Skip to content

Commit

Permalink
Merge pull request #2 from joesondow/master
Browse files Browse the repository at this point in the history
Override random box with specific choices
  • Loading branch information
Randgalt committed Sep 12, 2012
2 parents 943636c + fd9586b commit 2f699cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file added assets/Independent.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,18 @@
}

$(function(){
var imageUrl, imageFileName, boxArtOverride;
var projectsToBoxArtOverrides = {'asgard': 'Independent.jpg'};
var repoContent = "";
var boxArtIndex = 0;
for ( var i = 0; i < reposTab.length; ++i )
{
var thisRepo = reposTab[i];
if ( !thisRepo.private && !ignoreRepos[thisRepo.name] )
{
var imageUrl = 'assets/box-art-' + boxArtIndex + '.jpg';
boxArtOverride = projectsToBoxArtOverrides[thisRepo.name];
imageFileName = boxArtOverride ? boxArtOverride : 'box-art-' + boxArtIndex + '.jpg';
imageUrl = 'assets/' + imageFileName;

repoContent += '<a class="repo-item-anchor" href="' + thisRepo.html_url + '">';
repoContent += '<div class="repo-item-container">';
Expand Down

0 comments on commit 2f699cd

Please sign in to comment.