Mark indoor activities to exclude them from the heatmap
This commit is contained in:
parent
851ba87ef2
commit
22c4ca0964
34 changed files with 1626 additions and 58 deletions
|
|
@ -34,6 +34,9 @@
|
|||
<h2 id="activityTitle">Activity Title</h2>
|
||||
<p class="text-muted mb-2">
|
||||
<span id="activityType" class="activity-type-badge"></span>
|
||||
<span id="indoorBadge" class="badge bg-warning text-dark ms-2" style="display: none;">
|
||||
<i class="bi bi-house-door"></i> Indoor
|
||||
</span>
|
||||
<span class="ms-2">
|
||||
<i class="bi bi-calendar"></i>
|
||||
<span id="activityDate"></span>
|
||||
|
|
@ -507,6 +510,17 @@
|
|||
document.querySelector('#visibilityBadge i').className = `bi bi-${visIcon}`;
|
||||
document.getElementById('visibilityBadge').className = `ms-2 visibility-${activity.visibility.toLowerCase()}`;
|
||||
|
||||
// Indoor badge
|
||||
const indoorBadge = document.getElementById('indoorBadge');
|
||||
if (activity.indoor === true) {
|
||||
indoorBadge.style.display = 'inline-block';
|
||||
if (activity.indoorDetectionMethod) {
|
||||
indoorBadge.title = `Detected via: ${activity.indoorDetectionMethod}`;
|
||||
}
|
||||
} else {
|
||||
indoorBadge.style.display = 'none';
|
||||
}
|
||||
|
||||
// Description
|
||||
if (activity.description) {
|
||||
document.getElementById('activityDescription').textContent = activity.description;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue