logo

1-pixel-wealth

Source code for <https://mkorostoff.github.io/1-pixel-wealth/>: Wealth shown to scale
commit: 1a484cb962bea79ad40461958c84e2a5d4554181
parent 0403feb8f01168afb7790549a5a134726021cc13
Author: Matt Korostoff <mkorostoff@gmail.com>
Date:   Fri, 17 Jul 2020 13:25:15 +0200

200 BILLION

Diffstat:

Mindex.html4++--
Mmain.css6+++---
Mmain.js2+-
3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/index.html b/index.html @@ -67,7 +67,7 @@ <div name="bezos" class="wealth-wrapper bezos"> <div id="bezos" class="wealth ruler"> - <h2 class="wealth-title">$171 billion (wealth of Jeff Bezos)</h2> + <h2 class="wealth-title">$200 billion (wealth of Jeff Bezos)</h2> <div class="counter" id="bezos-counter"></div> <div class="key"> <span>$80 million</span> @@ -131,7 +131,7 @@ <div class="square shadow"> <div class="title">Annual cost of chemotherapy for all cancer patients ($9 billion)</div> <div class="midtext-wrapper"> - <div class="midtext">In 2018, Jeff Bezos made $9 billion in about 40 days.</div> + <div class="midtext">On July 20th 2020 Jeff Bezos made <a href="https://www.cnbc.com/2020/07/21/bezos-record-multibillion-dollar-net-worth-gain-bloomberg.html" target="_blank">$13 billion</a> in a single day.</div> </div> </div> </div> diff --git a/main.css b/main.css @@ -226,8 +226,8 @@ h1 { } .infobox { z-index: 1; - margin-left: 6000px; - width: 12000px; + margin-left: 8000px; + width: 15000px; } .four-hundred .infobox { width: 4000px; @@ -295,7 +295,7 @@ h1 { background-color: #03A9F4; } .bezos .wealth { - width: 342000px; + width: 400000px; height: 500px; background-color: orange; } diff --git a/main.js b/main.js @@ -79,7 +79,7 @@ function update_wealth_counter() { if (bezos_viewable()) { if (bezos_counter_viewable()) { let wealth = (window.scrollX - bezos.offsetLeft + 175) * 500000; - bezos_counter.innerHTML = (wealth < 171000000000) ? money.format(wealth) : "$171,000,000,000"; + bezos_counter.innerHTML = (wealth < 200000000000) ? money.format(wealth) : "$200,000,000,000"; } else { bezos_counter.innerHTML = '';