From f8c7cb085609772239f30759bf9d3b55a6da2fa0 Mon Sep 17 00:00:00 2001 From: Darren Semotiuk <106487066+DarrenSem@users.noreply.github.com> Date: Wed, 26 Jul 2023 09:18:41 -0600 Subject: [PATCH] Fixed #2. Updated index.html (not via upload) --- index.html | 72 ++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 46 insertions(+), 26 deletions(-) diff --git a/index.html b/index.html index 4c37e47..ad53b1d 100644 --- a/index.html +++ b/index.html @@ -83,7 +83,17 @@ .filter(value => value > 0) .reduce((a, c) => a + Number(c), 0); - const bonus = Math.floor(totalPrizePool * 0.05); + const CL_PERCENT = 5.0; + + const percentLink = () => ( + + {CL_PERCENT.toFixed(1)}% + + ); + + const bonus = Math.floor(totalPrizePool * ( CL_PERCENT / 100 ) ); const remaining = totalPrizePool - bonus; @@ -92,12 +102,12 @@ const chopValue = count ? Math.floor(remaining / count) : NaN; const chopTotal = count ? (chopValue * count) : NaN; - + return (