1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2024-12-22 08:04:10 +01:00

Donation page moved from webserver into the extension

This commit is contained in:
nobody 2020-05-26 06:05:33 +02:00
parent e21ada5182
commit e0bb871eaf
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
3 changed files with 49 additions and 1 deletions

11
pages/donate/donate.css Normal file
View File

@ -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;
}

37
pages/donate/donate.html Normal file
View File

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>LocalCDN | Donate</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="../welcome/welcome.css">
<link rel="stylesheet" type="text/css" href="../updates/updates.css">
<link rel="stylesheet" type="text/css" href="donate.css">
<link rel="shortcut icon" href="../welcome/favicon.ico" type="image/x-icon">
<link rel="icon" href="../welcome/favicon.ico" type="image/x-icon">
</head>
<body>
<img src="../welcome/logo.svg" alt="Decentraleyes" class="logo"/>
<div class="container">
<div class="notice">
<div class="subtle-hint">
<p>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!</p>
<div id="div-bank-transfer">
<table id="table-bank-transfer"><tbody>
<tr>
<td></td><td>LocalCDN</td>
</tr>
<tr>
<td>IBAN:</td><td>DE44&nbsp;5003&nbsp;1000&nbsp;1069&nbsp;4660&nbsp;08</td>
</tr>
<tr>
<td>BIC:</td><td>TRODDEF1XXX</td>
</tr>
</tbody></table>
<p>(Currently only SEPA bank transfers)</p>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@ -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)
});
}