menambahkan jalan dan parsil di portal
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user