mirror of
https://github.com/baz-scm/awesome-reviewers.git
synced 2025-08-20 18:58:52 +03:00
1K reviewers
This commit is contained in:
@@ -324,14 +324,8 @@
|
||||
if (counterElement) {
|
||||
counterElement.dataset.count = count;
|
||||
|
||||
// Apply the same formatting logic as formatStats
|
||||
if (count > 1000) {
|
||||
let val = (count / 1000).toFixed(1);
|
||||
if (val.endsWith('.0')) val = val.slice(0, -2);
|
||||
counterElement.textContent = val + 'K';
|
||||
} else {
|
||||
counterElement.textContent = count;
|
||||
}
|
||||
// Format with commas instead of K notation
|
||||
counterElement.textContent = count.toLocaleString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -347,13 +341,8 @@
|
||||
document.querySelectorAll('.stat-value[data-count]').forEach(el => {
|
||||
const num = parseFloat(el.dataset.count);
|
||||
if (!isNaN(num)) {
|
||||
if (num > 1000) {
|
||||
let val = (num / 1000).toFixed(1);
|
||||
if (val.endsWith('.0')) val = val.slice(0, -2);
|
||||
el.textContent = val + 'K';
|
||||
} else {
|
||||
el.textContent = num
|
||||
}
|
||||
// Format with commas instead of K notation
|
||||
el.textContent = num.toLocaleString();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 153 KiB |
Reference in New Issue
Block a user