diff --git a/index.html b/index.html
index 893f52d..8c3a934 100644
--- a/index.html
+++ b/index.html
@@ -75,7 +75,6 @@
ITC Points |
W–L–T |
Win % |
- Career W% |
ITC Rank |
diff --git a/src/main.js b/src/main.js
index 430e46e..c29c9f0 100644
--- a/src/main.js
+++ b/src/main.js
@@ -108,7 +108,6 @@ const sortCols = {
wlt: { key: r => (+r.wins||0) * 10000 - (+r.losses||0) * 100 - (+r.ties||0), defaultDir: 'desc' },
wpct: { key: r => { const g=(+r.wins||0)+(+r.losses||0)+(+r.ties||0); return g?(+r.wins||0)/g:-1; }, defaultDir: 'desc' },
rank: { key: r => +(r.placing || Infinity), defaultDir: 'asc' },
- cwpct: { key: r => { const d = careerData[r.userId || r.user?.id]; if (!d) return -1; const g = d.w+d.l+d.t; return g ? d.w/g : -1; }, defaultDir: 'desc' },
};
function applySort(rows) {
@@ -262,15 +261,23 @@ function render(state) {
`${esc(name)}` +
`${u.nickname && fullName(u) ? `"${esc(u.nickname)}"` : ""} | ` +
`${fmtPts(r.ITCPoints)} | ` +
- `` +
- `${r.wins || 0}–${r.losses || 0}–${r.ties || 0} | ` +
- `${fmtWpct(r.wins, r.losses, r.ties)} | ` +
- (() => { const uid = r.userId || r.user?.id; const d = uid && careerData[uid];
- return `${
- d == null ? '…'
- : (d.w+d.l+d.t) === 0 ? '—'
- : fmtWpct(d.w, d.l, d.t)
- } | `; })() +
+ (() => {
+ const uid = r.userId || r.user?.id;
+ const d = uid && careerData[uid];
+ const careerSub = d == null
+ ? `…`
+ : (d.w + d.l + d.t) === 0 ? ''
+ : `${d.w}–${d.l}–${d.t} career`;
+ const careerPct = d == null
+ ? `…`
+ : (d.w + d.l + d.t) === 0 ? ''
+ : `${fmtWpct(d.w, d.l, d.t)} career`;
+ return `` +
+ `${r.wins || 0}–${r.losses || 0}–${r.ties || 0}` +
+ careerSub + ` | ` +
+ `${fmtWpct(r.wins, r.losses, r.ties)}` +
+ careerPct + ` | `;
+ })() +
`#${r.placing ?? "—"} | `;
tb.appendChild(tr);
});
@@ -338,7 +345,6 @@ function showSkeleton() {
` | ` +
` | ` +
` | ` +
- ` | ` +
` | `;
tb.appendChild(tr);
}