Hide 24-hours status from Rumah popups
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user