|
320 | 320 | .btc-status {
|
321 | 321 | font-size: 1.5rem;
|
322 | 322 | font-weight: bold;
|
323 |
| - text-align: center; |
324 |
| - margin: 2rem 0; |
| 323 | + text-align: right; |
| 324 | + margin: 1rem 0; |
| 325 | + display: inline-block; |
325 | 326 | }
|
326 | 327 |
|
327 | 328 | /* BTC address text */
|
|
373 | 374 |
|
374 | 375 | .btc-status {
|
375 | 376 | font-size: 1.2rem;
|
| 377 | + margin: 0; |
376 | 378 | }
|
377 | 379 | }
|
378 | 380 |
|
@@ -452,7 +454,15 @@ <h2><i class="fa-brands fa-btc"></i> Contribute</h2>
|
452 | 454 | </span>
|
453 | 455 | </p>
|
454 | 456 | <div class="btc-status">
|
455 |
| - Raised: <span id='current-btc'>0.23</span> BTC / Target: <span id='goal-btc'>1</span> BTC |
| 457 | + <div style="display: grid; grid-template-columns: auto auto; gap: 1rem; text-align: left;"> |
| 458 | + <div>Raised:</div> |
| 459 | + <div style="text-align: right;"><span id="current-btc">0.0021</span> BTC</div> |
| 460 | + </div> |
| 461 | + <hr style="border: none; border-top: 1px solid #000; margin: 0.5rem 0;"> |
| 462 | + <div style="display: grid; grid-template-columns: auto auto; gap: 1rem; text-align: left;"> |
| 463 | + <div>Target:</div> |
| 464 | + <div style="text-align: right;"><span id="goal-btc">0.01</span> BTC</div> |
| 465 | + </div> |
456 | 466 | </div>
|
457 | 467 | <div class="btc-address">
|
458 | 468 | <a id="btcAddressLink" href="#" target="_blank" rel="noopener" title="View Bitcoin donations" aria-label="View the Bitcoin donation address on mempool.space">
|
@@ -676,16 +686,22 @@ <h2><i class="fas fa-calendar-alt"></i> Once/Year Newsletter</h2>
|
676 | 686 | let displayPrizeFundBTC;
|
677 | 687 | if (prizeFundBTC >= 10) {
|
678 | 688 | displayPrizeFundBTC = prizeFundBTC.toFixed(0);
|
| 689 | + goalBTC = goalBTC.toFixed(0); |
679 | 690 | } else if (prizeFundBTC >= 1) {
|
680 | 691 | displayPrizeFundBTC = prizeFundBTC.toFixed(1);
|
| 692 | + goalBTC = goalBTC.toFixed(1); |
681 | 693 | } else if (prizeFundBTC >= 0.1) {
|
682 | 694 | displayPrizeFundBTC = prizeFundBTC.toFixed(2);
|
| 695 | + goalBTC = goalBTC.toFixed(2); |
683 | 696 | } else if (prizeFundBTC >= 0.01) {
|
684 | 697 | displayPrizeFundBTC = prizeFundBTC.toFixed(3);
|
| 698 | + goalBTC = goalBTC.toFixed(3); |
685 | 699 | } else if (prizeFundBTC >= 0.001) {
|
686 | 700 | displayPrizeFundBTC = prizeFundBTC.toFixed(4);
|
| 701 | + goalBTC = goalBTC.toFixed(4); |
687 | 702 | } else if (prizeFundBTC >= 0.0001) {
|
688 | 703 | displayPrizeFundBTC = prizeFundBTC.toFixed(5);
|
| 704 | + goalBTC = goalBTC.toFixed(5); |
689 | 705 | }
|
690 | 706 |
|
691 | 707 | document.getElementById('current-btc').textContent = displayPrizeFundBTC;
|
|
0 commit comments