diff --git a/data.json b/data.json index acee5de..a647c63 100644 --- a/data.json +++ b/data.json @@ -24,4 +24,4 @@ "qr": "qr/sol.png", "icon": "icons/sol.png" } -} +} \ No newline at end of file diff --git a/i18n/en.json b/i18n/en.json index 985eebe..8c95454 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -9,4 +9,4 @@ "bitcoin": "Bitcoin", "solana": "Solana", "monero": "Monero" -} +} \ No newline at end of file diff --git a/i18n/zh.json b/i18n/zh.json index da47aa7..5fd48ed 100644 --- a/i18n/zh.json +++ b/i18n/zh.json @@ -9,4 +9,4 @@ "bitcoin": "比特币", "solana": "Solana", "monero": "门罗币" -} +} \ No newline at end of file diff --git a/index.html b/index.html index 4f3abd9..797ba21 100644 --- a/index.html +++ b/index.html @@ -1,43 +1,69 @@ - - - - 加密货币捐赠 - - - - -
-
-

捐赠加密货币

-
-
- -
- Blockchain Icon + + + + 加密货币捐赠 + + + + +
+
+

+ 捐赠加密货币 +

+
+
+ +
+ Blockchain Icon +
+
+
+ QR Code +

+ bc1pfx4a7n6fuyum4dv6rjmg9nsuj7t9wdepjjgsp67d6n8hsdp8w47qw228fy +

+
-
- QR Code -

bc1pfx4a7n6fuyum4dv6rjmg9nsuj7t9wdepjjgsp67d6n8hsdp8w47qw228fy

- -
+
    +
  • English
  • +
  • 中文
  • +
+ +
+

© 2024-now earthjasonlin. All rights reserved.

+
-
    -
  • English
  • -
  • 中文
  • -
- -
-

© 2024-now earthjasonlin. All rights reserved.

-
-
- - + + diff --git a/script.js b/script.js index a1573e7..326a769 100644 --- a/script.js +++ b/script.js @@ -1,16 +1,16 @@ -let currentLang = 'zh'; +let currentLang = "zh"; let data, i18n; document.addEventListener("DOMContentLoaded", () => { - loadData('data.json', loadBlockchainOptions); + loadData("data.json", loadBlockchainOptions); changeLanguage(currentLang); - updateCopyrightYear() + updateCopyrightYear(); }); function updateCopyrightYear() { const currentYear = new Date().getFullYear(); - let copyrightText - if(currentYear > 2024) { + let copyrightText; + if (currentYear > 2024) { copyrightText = `© 2024-${currentYear} earthjasonlin. All rights reserved.`; } else { copyrightText = `© 2024 earthjasonlin. All rights reserved.`; @@ -20,27 +20,27 @@ function updateCopyrightYear() { function loadData(url, callback) { fetch(url) - .then(response => response.json()) - .then(json => { + .then((response) => response.json()) + .then((json) => { data = json; callback(); }) - .catch(error => console.error('Error loading JSON:', error)); + .catch((error) => console.error("Error loading JSON:", error)); } function loadI18n(url, callback) { fetch(url) - .then(response => response.json()) - .then(json => { + .then((response) => response.json()) + .then((json) => { i18n = json; callback(); }) - .catch(error => console.error('Error loading i18n JSON:', error)); + .catch((error) => console.error("Error loading i18n JSON:", error)); } function loadBlockchainOptions() { const blockchainSelect = document.getElementById("blockchain"); - blockchainSelect.innerHTML = ''; + blockchainSelect.innerHTML = ""; for (const key in data) { const option = document.createElement("option"); diff --git a/styles.css b/styles.css index 7bbc9a9..f21ced3 100644 --- a/styles.css +++ b/styles.css @@ -30,7 +30,7 @@ h1 { } #title-icon { - width: 30px; + width: 30px; vertical-align: bottom; margin-right: 8px; } @@ -78,7 +78,7 @@ select { } button { - background-color: #4CAF50; + background-color: #4caf50; color: white; padding: 10px 20px; border: none; @@ -115,7 +115,7 @@ button:hover { } .language-list li:hover { - color: #4CAF50; + color: #4caf50; } .social-media {