added borders to all box art, because it looked weird

This commit is contained in:
R. Aidan Campbell 2016-07-10 16:38:26 -04:00
parent 2674de45ea
commit 96514784a9
2 changed files with 11 additions and 5 deletions

View File

@ -175,3 +175,6 @@ main {
.current-game { .current-game {
border: 3px solid green; border: 3px solid green;
} }
.not-current-game {
border: 1px solid black;
}

View File

@ -239,12 +239,15 @@ function showApps() {
$('#game-'+app.id).on('click', startGame); $('#game-'+app.id).on('click', startGame);
if (api.currentGame === app.id){ // stylize the currently running game if (api.currentGame === app.id){ // stylize the currently running game
$('#game-'+ api.currentGame).addClass("current-game"); // destylize it, if it has the not-current-game style
if ($('#game-'+ app.id).hasClass("not-current-game")) $('#game-'+ app.id).removeClass("not-current-game");
// add the current-game style
$('#game-'+ app.id).addClass("current-game");
} else { } else {
if ($('#game-'+ api.id).hasClass("current-game")) { // destylize it otherwise // destylize it, if it has the current-game style
console.log('stripping now inactive game: ' + app.title); if ($('#game-'+ app.id).hasClass("current-game")) $('#game-'+ app.id).removeClass("current-game");
$('#game-'+ api.id).removeClass("current-game"); // add the not-current-game style
} $('#game-'+ app.id).addClass('not-current-game');
} }
}, function (failedPromise) { }, function (failedPromise) {