-
-
-
+
+
+
+
加密货币捐赠
+
+
+
+
+
+
+
+ 捐赠加密货币
+
+
+
+
+
+
+
+
+
+
+
+ bc1pfx4a7n6fuyum4dv6rjmg9nsuj7t9wdepjjgsp67d6n8hsdp8w47qw228fy
+
+
-
-
-
bc1pfx4a7n6fuyum4dv6rjmg9nsuj7t9wdepjjgsp67d6n8hsdp8w47qw228fy
-
-
+
+
+
-
-
-
-
-
-
+
+
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 {