Skip to content

Commit

Permalink
remove zeros in timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
beefoo committed Oct 11, 2023
1 parent c0eb8dc commit 56137e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/timeline/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class App {
} = yearData;
const textColor = countN > 0.5 ? '#000' : '#fff';
if (countN <= 0) {
timelineHTML += '<div class="year">0</div>';
timelineHTML += '<div class="year"></div>';
} else {
timelineHTML += `<button class="year" data-year="${year}" data-subcollection="${i}" style="background: ${color}; color: ${textColor}">${count.toLocaleString()}</button>`;
}
Expand Down

0 comments on commit 56137e1

Please sign in to comment.