menambahkan jalan dan parsil di portal

This commit is contained in:
z0rayy
2026-06-11 00:38:46 +07:00
parent 4928f53982
commit b027f02cf0
5 changed files with 627 additions and 8 deletions
+3
View File
@@ -382,6 +382,9 @@
document.getElementById('btn-location').addEventListener('click', () => {
if (!navigator.geolocation) return alert('Geolocation tidak didukung browser Anda.');
if (!window.isSecureContext) {
return alert('Fitur lokasi hanya bisa digunakan melalui HTTPS. Buka situs dengan https:// atau gunakan localhost saat development.');
}
const btn = document.getElementById('btn-location');
btn.textContent = '⏳ Mencari lokasi...';
btn.disabled = true;