mirror of
https://github.com/schmidt1024/monero-flyer.git
synced 2025-06-15 16:53:07 +00:00
fix issues in Persian version
This commit is contained in:
@ -84,6 +84,10 @@ const categoryOrder = {
|
||||
comfort: ["cex", "kyc_light", "atomic", "no_kyc", "dex"],
|
||||
privacy: ["atomic", "dex", "no_kyc", "kyc_light", "cex"],
|
||||
}
|
||||
if (currentLanguage === "fa") {
|
||||
categoryOrder.comfort = ["cex", "no_kyc", "dex", "atomic"]
|
||||
categoryOrder.privacy = ["atomic", "dex", "no_kyc", "cex"]
|
||||
}
|
||||
|
||||
const sortCategories = (mode) => {
|
||||
const exchanges = document.querySelector("#exchanges")
|
||||
@ -152,3 +156,17 @@ const observer = new IntersectionObserver((entries) => {
|
||||
})
|
||||
})
|
||||
elements.forEach((el) => observer.observe(el))
|
||||
|
||||
// exceptions
|
||||
if (currentLanguage === "fa") {
|
||||
const krakenLink = document.querySelector('a[href="https://kraken.com"]')
|
||||
if (krakenLink) {
|
||||
krakenLink.href = "https://nobitex.ir/"
|
||||
krakenLink.textContent = "Nobitex Exchange"
|
||||
}
|
||||
krakenLink.nextElementSibling.remove()
|
||||
|
||||
document.getElementById("kyc_light").remove()
|
||||
document.getElementById("kyc_light-desc").remove()
|
||||
document.getElementById("kyc_light-providers").remove()
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
@ -127,7 +127,7 @@
|
||||
|
||||
<h3 id="kyc_light" data-i18n="kyc-light"></h3>
|
||||
<p id="kyc_light-desc"></p>
|
||||
<div class="exchange-category">
|
||||
<div id="kyc_light-providers" class="exchange-category">
|
||||
<ul>
|
||||
<li><a href="https://cakewallet.com" target="_blank">Cake Wallet</a> &
|
||||
<a href="https://dfx.swiss" target="_blank">DFX.swiss</a>
|
||||
@ -139,7 +139,7 @@
|
||||
<p id="cex-desc"></p>
|
||||
<div class="exchange-category">
|
||||
<ul>
|
||||
<li><a href="https://kraken.com" target="_blank">Kraken Exchange</a> (US, CH)</li>
|
||||
<li><a href="https://kraken.com" target="_blank">Kraken Exchange</a> <span>(US, CH)</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user