Hide 24-hours status from Rumah popups

This commit is contained in:
ilham_gmail
2026-06-11 19:18:09 +07:00
parent 0391a0a58a
commit 51411d7e76
+2 -1
View File
@@ -261,9 +261,10 @@ function loadData() {
// use circleMarker so we can change color dynamically // use circleMarker so we can change color dynamically
const color = jenis === 'masjid' ? '#1976d2' : '#d32f2f'; const color = jenis === 'masjid' ? '#1976d2' : '#d32f2f';
marker = L.circleMarker([item.latitude, item.longitude], {radius:8, color:color, fillColor:color, fillOpacity:1}); marker = L.circleMarker([item.latitude, item.longitude], {radius:8, color:color, fillColor:color, fillOpacity:1});
const statusText = jenis === 'rumah' ? '' : `${statusHtml}<br>`;
marker.bindPopup(` marker.bindPopup(`
<b>${safeNama}</b><br> <b>${safeNama}</b><br>
${statusHtml}<br> ${statusText}
<div style="font-size:12px;color:#444;margin-top:6px">${safeAlamat}</div> <div style="font-size:12px;color:#444;margin-top:6px">${safeAlamat}</div>
<br> <br>
<button onclick="hapus('${item.id}')">Hapus</button> <button onclick="hapus('${item.id}')">Hapus</button>