logo

1-pixel-wealth

Source code for <https://mkorostoff.github.io/1-pixel-wealth/>: Wealth shown to scale
commit: 3dcaa8c53d8e74be414d90f98a79135ddf9b3819
parent aa76142a1c3489a3f22c1586265cf96b294d854f
Author: Matt Korostoff <MKorostoff@gmail.com>
Date:   Sun,  3 May 2020 13:16:15 -0400

Fix glitchy flashing that occasionally occurs on wealth counter; fix a bug where 400people counter remains on screen when it should hide

Diffstat:

Mmain.css1+
Mmain.js2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/main.css b/main.css @@ -329,6 +329,7 @@ h1 { transform: translate(0, 27px); color: black; padding: 5px; + min-width: 140px; } .lifetime .square { width: 41.23px; diff --git a/main.js b/main.js @@ -67,7 +67,7 @@ function update_wealth_counter() { four_hundred_counter.innerHTML = (wealth < 2960000000000) ? money.format(wealth) : "$2,960,000,000,000.00"; } else { - bezos_counter.innerHTML = ''; + four_hundred_counter.innerHTML = ''; } } function bezos_viewable() {