From 4f2146e68f0459762d3f9a19718429c61299be0a Mon Sep 17 00:00:00 2001 From: Colleirose <147954091+colleirose@users.noreply.github.com> Date: Sun, 31 Mar 2024 19:44:38 -0700 Subject: [PATCH] Improve code formatting, use tinypng.com on images, and fix contrast issues on donation page --- donate.php | 301 ++++++++++++++----------- img/Miraheze-Logo-1200px.png | Bin 48942 -> 16049 bytes img/Miraheze-Logo-640px.png | Bin 23775 -> 7875 bytes img/Miraheze-Logo-800px.png | Bin 30038 -> 9835 bytes img/apple-touch-icon.png | Bin 6592 -> 2022 bytes img/bg-bottom.webp | Bin 18456 -> 3726 bytes img/bg-top.webp | Bin 18644 -> 3854 bytes img/blob-bottom-left.webp | Bin 15286 -> 474 bytes img/blob-bottom-right.webp | Bin 15414 -> 568 bytes img/blob-center.webp | Bin 16558 -> 1716 bytes img/blob-primary.webp | Bin 3678 -> 2712 bytes img/blob-secondary.webp | Bin 18184 -> 2894 bytes img/blob-top-left.webp | Bin 15314 -> 440 bytes img/blob-top-right.webp | Bin 15354 -> 500 bytes img/blob-white.webp | Bin 16942 -> 2106 bytes img/hero.webp | Bin 47688 -> 46138 bytes img/map.webp | Bin 46328 -> 25756 bytes index.php | 415 +++++++++++++++++++++-------------- 18 files changed, 422 insertions(+), 294 deletions(-) diff --git a/donate.php b/donate.php index 711daab4..91541ab2 100644 --- a/donate.php +++ b/donate.php @@ -9,10 +9,13 @@ Donate to Miraheze - + - - + + @@ -30,14 +33,16 @@ - + - + @@ -50,32 +55,35 @@ - + var _paq = window._paq = window._paq || []; + _paq.push(['disableCookies']); + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (function () { + var u = 'https://analytics.wikitide.net/'; + _paq.push(['setTrackerUrl', u + 'matomo.php']); + _paq.push(['setDocumentTitle', 'Landing - Donate']); + _paq.push(['setSiteId', 9838]); + _paq.push(['addTracker', u + 'matomo.php', 1]); + var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; + g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s); + })(); + + function _amountInput(ele) { + var value; + if (ele && ele.value) { + value = '/' + ele.value + '/'; + } else { + value = ''; + } + var a = document.getElementById('donationHref'); + a.setAttribute('href', 'https://www.paypal.com/donate/?hosted_button_id=Q8ZN29LJVXP7L' + value); + } + + @@ -84,55 +92,66 @@ function _amountInput( ele ) {
@@ -140,13 +159,13 @@ function _amountInput( ele ) {
-

- +

+


@@ -154,88 +173,118 @@ function _amountInput( ele ) {
- +
-
-
- - - - - -

-
-
+
+
+ + + + + +

+ +

+
+
- + - @@ -339,34 +391,34 @@

8800

- -

+ +

40000

- -

+ +

450000

- -

+ +

100%

- -

+ +

- + @@ -412,21 +479,27 @@
- + +
@@ -438,10 +511,14 @@ - +
- + - + + \ No newline at end of file