update: .......

This commit is contained in:
2026-03-19 01:07:49 +04:00
parent 955b26f942
commit e62b60e0fd
4 changed files with 124 additions and 86 deletions
+9 -10
View File
@@ -281,27 +281,26 @@
}
}
function syncTxids(data) {
if (!data?.txs) return;
for (const tx of data.txs) {
if (tx.txid && !watchedTxids.includes(tx.txid)) watchedTxids.push(tx.txid);
}
}
function applyStatus(status, data) {
if (status === 'underpaid') {
document.getElementById('pay-status').innerHTML = `
<span class="w-2 h-2 rounded-full bg-yellow-500 animate-pulse"></span>
<span class="text-yellow-400">Underpaid — please send the remaining amount</span>
`;
if (data?.txid) {
for (const t of data.txid.split(',')) {
if (!watchedTxids.includes(t)) watchedTxids.push(t);
}
}
syncTxids(data);
} else if (status === 'confirming') {
document.getElementById('pay-status').innerHTML = `
<span class="w-2 h-2 rounded-full bg-blue-500 animate-pulse"></span>
<span class="text-blue-400">Transaction detected, waiting for confirmation...</span>
`;
if (data?.txid) {
for (const t of data.txid.split(',')) {
if (!watchedTxids.includes(t)) watchedTxids.push(t);
}
}
syncTxids(data);
} else if (status === 'paid') {
clearInterval(pollInterval);
clearInterval(countdownInterval);