From 958ba01f6b5aee174586aa0d00cacbf4ba4c599e Mon Sep 17 00:00:00 2001 From: adrien Date: Mon, 9 Nov 2020 12:29:43 +0100 Subject: [PATCH] display credits on game over --- app.js | 2 ++ themes/Effect/style.css | 1 + themes/Kubow/style.css | 1 + themes/default/style.css | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index fb5bf1f..4b80995 100644 --- a/app.js +++ b/app.js @@ -441,6 +441,7 @@ function newGame(startLevel) { startSection.style.display = "none" gameSection.style.display = "block" settingsSection.style.display = "none" + footer.style.display = "none" state = STATE.PLAYING pressedKeys = new Set() @@ -631,6 +632,7 @@ function gameOver() { startSection.style.display = "block" gameSection.style.display = "block" settingsSection.style.display = "none" + footer.style.display = "block" } function autorepeat() { diff --git a/themes/Effect/style.css b/themes/Effect/style.css index f1dbee0..772bae5 100644 --- a/themes/Effect/style.css +++ b/themes/Effect/style.css @@ -194,6 +194,7 @@ footer { left: 50%; bottom: 1em; transform: translateX(-50%); + display: none; } a { diff --git a/themes/Kubow/style.css b/themes/Kubow/style.css index 5987dcd..980f132 100644 --- a/themes/Kubow/style.css +++ b/themes/Kubow/style.css @@ -276,6 +276,7 @@ footer { left: 50%; bottom: 1em; transform: translateX(-50%); + display: none; } a { diff --git a/themes/default/style.css b/themes/default/style.css index 1c37d88..0b0deaa 100644 --- a/themes/default/style.css +++ b/themes/default/style.css @@ -198,6 +198,7 @@ footer { left: 50%; bottom: 1em; transform: translateX(-50%); + display: none; } a { @@ -227,7 +228,6 @@ a { border: 0 !important; } - #leaderboard td:first-child { text-align: left; }