async function getPrices() { showLoading('pricesLoading', true); const country = document.getElementById('country').value; const service = document.getElementById('service').value; if (!service) { showResult('Pilih layanan terlebih dahulu!', 'error'); showLoading('pricesLoading', false); return; } const result = await makeRequest('getPrices', { service: service, country: country }); showLoading('pricesLoading', false); if (result) { try { const prices = JSON.parse(result.status); const countryPrices = prices[country]; if (countryPrices && countryPrices[service]) { const price = countryPrices[service].cost; const count = countryPrices[service].count; showResult(`Harga: ${price} | Tersedia: ${count} nomor`, 'success'); } else { showResult('Layanan tidak tersedia untuk negara ini', 'error'); } } catch (e) { showResult('Data harga: ' + result.status, 'info'); } } } // Auto-check SMS status every 10 seconds when waiting setInterval(async () => { const activationId = document.getElementById('activationIdInput').value; if (activationId && document.getElementById('smsResult').textContent === 'Menunggu SMS...') { await checkSMSStatus(); } }, 10000); // Auto-check SMS status every 10 seconds when waiting setInterval(async () => { const activationId = document.getElementById('activationIdInput').value; if (activationId && document.getElementById('smsResult').textContent === 'Menunggu SMS...') { await checkSMSStatus(); } }, 10000);
Aplikasi pribadi untuk akses cepat ke SMSHub.org - Tidak ada data yang disimpan di server