From e0bb871eaf8202571b3e17db685e730914ee7cab Mon Sep 17 00:00:00 2001 From: nobody Date: Tue, 26 May 2020 06:05:33 +0200 Subject: [PATCH] Donation page moved from webserver into the extension --- pages/donate/donate.css | 11 +++++++++++ pages/donate/donate.html | 37 +++++++++++++++++++++++++++++++++++++ pages/popup/popup.js | 2 +- 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 pages/donate/donate.css create mode 100644 pages/donate/donate.html diff --git a/pages/donate/donate.css b/pages/donate/donate.css new file mode 100644 index 00000000..a656fbb3 --- /dev/null +++ b/pages/donate/donate.css @@ -0,0 +1,11 @@ +/** + * Donations + */ + + #table-bank-transfer { + font-family: 'monospace', Arial, sans-serif; + padding: 16px; + } + #table-bank-transfer > tbody > tr > td:nth-of-type(1) { + font-weight: bold; + } diff --git a/pages/donate/donate.html b/pages/donate/donate.html new file mode 100644 index 00000000..8f50f228 --- /dev/null +++ b/pages/donate/donate.html @@ -0,0 +1,37 @@ + + + + LocalCDN | Donate + + + + + + + + + + +
+
+
+

LocalCDN is free and open-source. If you like LocalCDN you can support continued development by making a donation. Any help would be greatly appreciated!

+
+ + + + + + + + + + +
LocalCDN
IBAN:DE44 5003 1000 1069 4660 08
BIC:TRODDEF1XXX
+

(Currently only SEPA bank transfers)

+
+
+
+
+ + diff --git a/pages/popup/popup.js b/pages/popup/popup.js index b54fdefe..91fb3f60 100644 --- a/pages/popup/popup.js +++ b/pages/popup/popup.js @@ -423,7 +423,7 @@ popup._onDonationButtonClicked = function () { if (event.button === 0 || event.button === 1) { chrome.tabs.create({ - 'url': 'https://localcdn.de/donate/', + 'url': chrome.extension.getURL('pages/donate/donate.html'), 'active': (event.button === 0) }); }