Compare commits
2 Commits
564f2c13e6
...
9c581ce346
Author | SHA1 | Date | |
---|---|---|---|
9c581ce346 | |||
1d47d34518 |
20
data.json
@ -1,27 +1,27 @@
|
|||||||
{
|
{
|
||||||
"monero": {
|
"monero": {
|
||||||
"address": "85z2KvhGAsqP3CqB4PngKZCPYRrSX6pMBEcfzhZpVb8n1bzo8NvwhxbaagjPJpnDfJPXL5WQQ8aMBTDwWTH2hfqbCvMcnxS",
|
"address": "85z2KvhGAsqP3CqB4PngKZCPYRrSX6pMBEcfzhZpVb8n1bzo8NvwhxbaagjPJpnDfJPXL5WQQ8aMBTDwWTH2hfqbCvMcnxS",
|
||||||
"qr": "qr/xmr-1.png",
|
"qr": "img/qr/xmr-1.png",
|
||||||
"icon": "icons/xmr.png"
|
"icon": "img/icon/blockchain/xmr.png"
|
||||||
},
|
},
|
||||||
"bitcoin": {
|
"bitcoin": {
|
||||||
"address": "bc1pfx4a7n6fuyum4dv6rjmg9nsuj7t9wdepjjgsp67d6n8hsdp8w47qw228fy",
|
"address": "bc1pfx4a7n6fuyum4dv6rjmg9nsuj7t9wdepjjgsp67d6n8hsdp8w47qw228fy",
|
||||||
"qr": "qr/btc-taproot.png",
|
"qr": "img/qr/btc-taproot.png",
|
||||||
"icon": "icons/btc.png"
|
"icon": "img/icon/blockchain/btc.png"
|
||||||
},
|
},
|
||||||
"eth": {
|
"eth": {
|
||||||
"address": "0x75aa91c8a00966bAc3a1a4371C8588D018Dbd7c4",
|
"address": "0x75aa91c8a00966bAc3a1a4371C8588D018Dbd7c4",
|
||||||
"qr": "qr/eth.png",
|
"qr": "img/qr/eth.png",
|
||||||
"icon": "icons/eth.png"
|
"icon": "img/icon/blockchain/eth.png"
|
||||||
},
|
},
|
||||||
"tron": {
|
"tron": {
|
||||||
"address": "TEMzQqABo7ttKioED8CVtTFkLz57cBSYc7",
|
"address": "TEMzQqABo7ttKioED8CVtTFkLz57cBSYc7",
|
||||||
"qr": "qr/trx.png",
|
"qr": "img/qr/trx.png",
|
||||||
"icon": "icons/trx.png"
|
"icon": "img/icon/blockchain/trx.png"
|
||||||
},
|
},
|
||||||
"solana": {
|
"solana": {
|
||||||
"address": "BDL89QkYohoU1zdx2wZtw2zDkcx6xth1ecrV6bhPja2a",
|
"address": "BDL89QkYohoU1zdx2wZtw2zDkcx6xth1ecrV6bhPja2a",
|
||||||
"qr": "qr/sol.png",
|
"qr": "img/qr/sol.png",
|
||||||
"icon": "icons/sol.png"
|
"icon": "img/icon/blockchain/sol.png"
|
||||||
}
|
}
|
||||||
}
|
}
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
BIN
img/bg/2.jpg
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
img/coffee.png
Before Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 277 KiB After Width: | Height: | Size: 277 KiB |
Before Width: | Height: | Size: 258 KiB After Width: | Height: | Size: 258 KiB |
Before Width: | Height: | Size: 233 KiB After Width: | Height: | Size: 233 KiB |
Before Width: | Height: | Size: 214 KiB After Width: | Height: | Size: 214 KiB |
Before Width: | Height: | Size: 284 KiB After Width: | Height: | Size: 284 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
16
index.html
@ -11,7 +11,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h1>
|
<h1>
|
||||||
<img id="title-icon" src="logo.png" alt="" /><span id="title-text"
|
<img id="title-icon" src="img/ui/logo.png" alt="" /><span id="title-text"
|
||||||
>捐赠加密货币</span
|
>捐赠加密货币</span
|
||||||
>
|
>
|
||||||
</h1>
|
</h1>
|
||||||
@ -20,16 +20,16 @@
|
|||||||
<div class="select-wrapper">
|
<div class="select-wrapper">
|
||||||
<select id="blockchain" onchange="updateDonationInfo()"></select>
|
<select id="blockchain" onchange="updateDonationInfo()"></select>
|
||||||
<div id="icon-wrapper">
|
<div id="icon-wrapper">
|
||||||
<img id="blockchain-icon" src="icons/btc.png" alt="Blockchain Icon" />
|
<img id="blockchain-icon" src="img/icon/blockchain/btc.png" alt="Blockchain Icon" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="donation-info">
|
<div id="donation-info">
|
||||||
<img id="qr-code" src="qr/btc-taproot.png" alt="QR Code" />
|
<img id="qr-code" src="img/qr/btc-taproot.png" alt="QR Code" />
|
||||||
<p id="address">
|
<p id="address">
|
||||||
bc1pfx4a7n6fuyum4dv6rjmg9nsuj7t9wdepjjgsp67d6n8hsdp8w47qw228fy
|
bc1pfx4a7n6fuyum4dv6rjmg9nsuj7t9wdepjjgsp67d6n8hsdp8w47qw228fy
|
||||||
</p>
|
</p>
|
||||||
<button onclick="copyAddress()">
|
<button onclick="copyAddress()">
|
||||||
<img id="copyIcon" src="img/copy-white.png" alt="" /><span
|
<img id="copyIcon" src="img/ui/copy-white.png" alt="" /><span
|
||||||
id="copyAddress"
|
id="copyAddress"
|
||||||
>复制地址</span
|
>复制地址</span
|
||||||
>
|
>
|
||||||
@ -45,25 +45,25 @@
|
|||||||
<a href="https://github.com/earthjasonlin" target="_blank"
|
<a href="https://github.com/earthjasonlin" target="_blank"
|
||||||
><img
|
><img
|
||||||
class="social-icon"
|
class="social-icon"
|
||||||
src="img/social/github.svg"
|
src="img/icon/social/github.svg"
|
||||||
alt="GitHub"
|
alt="GitHub"
|
||||||
/></a>
|
/></a>
|
||||||
<a href="https://x.com/earthjasonlin" target="_blank"
|
<a href="https://x.com/earthjasonlin" target="_blank"
|
||||||
><img
|
><img
|
||||||
class="social-icon"
|
class="social-icon"
|
||||||
src="img/social/twitter.svg"
|
src="img/icon/social/twitter.svg"
|
||||||
alt="X"
|
alt="X"
|
||||||
/></a>
|
/></a>
|
||||||
<a href="https://t.me/zcl1103" target="_blank"
|
<a href="https://t.me/zcl1103" target="_blank"
|
||||||
><img
|
><img
|
||||||
class="social-icon"
|
class="social-icon"
|
||||||
src="img/social/telegram.svg"
|
src="img/icon/social/telegram.svg"
|
||||||
alt="Telegram"
|
alt="Telegram"
|
||||||
/></a>
|
/></a>
|
||||||
<a href="mailto:earthjasonlin@126.com" target="_blank"
|
<a href="mailto:earthjasonlin@126.com" target="_blank"
|
||||||
><img
|
><img
|
||||||
class="social-icon"
|
class="social-icon"
|
||||||
src="img/social/email.svg"
|
src="img/icon/social/email.svg"
|
||||||
alt="e-Mail"
|
alt="e-Mail"
|
||||||
/></a>
|
/></a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -2,11 +2,19 @@ let currentLang = "zh";
|
|||||||
let data, i18n;
|
let data, i18n;
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
setRandomBackground();
|
||||||
loadData("data.json", loadBlockchainOptions);
|
loadData("data.json", loadBlockchainOptions);
|
||||||
changeLanguage(currentLang);
|
changeLanguage(currentLang);
|
||||||
updateCopyrightYear();
|
updateCopyrightYear();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function setRandomBackground() {
|
||||||
|
const images = ['1.jpg', '2.jpg'];
|
||||||
|
const randomIndex = Math.floor(Math.random() * images.length);
|
||||||
|
const selectedImage = images[randomIndex];
|
||||||
|
document.body.style.backgroundImage = `url('img/bg/${selectedImage}')`;
|
||||||
|
}
|
||||||
|
|
||||||
function updateCopyrightYear() {
|
function updateCopyrightYear() {
|
||||||
const currentYear = new Date().getFullYear();
|
const currentYear = new Date().getFullYear();
|
||||||
let copyrightText;
|
let copyrightText;
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
body {
|
body {
|
||||||
font-family: Microsoft YaHei;
|
font-family: Microsoft YaHei;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
background-image: url("img/bg.jpg");
|
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
|