Costi commited on
Commit ·
083261d
1
Parent(s): ee91bfb
remove stat-pills
Browse files- index.html +1 -1
- script.js +2 -18
- style.css +0 -39
index.html
CHANGED
|
@@ -40,7 +40,7 @@
|
|
| 40 |
</header>
|
| 41 |
|
| 42 |
<!-- Stats -->
|
| 43 |
-
|
| 44 |
|
| 45 |
<!-- Controls -->
|
| 46 |
<section class="controls max-w-5xl w-full fade d3">
|
|
|
|
| 40 |
</header>
|
| 41 |
|
| 42 |
<!-- Stats -->
|
| 43 |
+
|
| 44 |
|
| 45 |
<!-- Controls -->
|
| 46 |
<section class="controls max-w-5xl w-full fade d3">
|
script.js
CHANGED
|
@@ -201,24 +201,8 @@
|
|
| 201 |
// Rendering — text-QA leaderboard
|
| 202 |
// ---------------------------------------------------------------------
|
| 203 |
|
| 204 |
-
function renderStats(
|
| 205 |
-
|
| 206 |
-
const genLabel = state.gen === "all" ? "all generations" : state.gen;
|
| 207 |
-
let bestModel = null, bestAvg = null;
|
| 208 |
-
for (const m of models) {
|
| 209 |
-
const a = avgScore(m, benches);
|
| 210 |
-
if (a !== null && (bestAvg === null || a > bestAvg)) { bestAvg = a; bestModel = m; }
|
| 211 |
-
}
|
| 212 |
-
$("#stat-row").innerHTML = `
|
| 213 |
-
<div class="stat-pill"><div class="label">Models</div>
|
| 214 |
-
<div class="value">${models.length}</div></div>
|
| 215 |
-
<div class="stat-pill"><div class="label">Benchmarks</div>
|
| 216 |
-
<div class="value">${benches.length}</div></div>
|
| 217 |
-
<div class="stat-pill"><div class="label">Best avg</div>
|
| 218 |
-
<div class="value${bestAvg !== null ? " good" : ""}">${bestAvg !== null ? bestAvg.toFixed(3) : "—"}</div>
|
| 219 |
-
<div class="sub">${bestModel ? esc(bestModel.name) : "no runs yet"}</div></div>
|
| 220 |
-
<div class="stat-pill"><div class="label">Updated</div>
|
| 221 |
-
<div class="value">${esc(latest)}</div><div class="sub">${esc(state.data.updated)}</div></div>`;
|
| 222 |
}
|
| 223 |
|
| 224 |
function renderChips() {
|
|
|
|
| 201 |
// Rendering — text-QA leaderboard
|
| 202 |
// ---------------------------------------------------------------------
|
| 203 |
|
| 204 |
+
function renderStats(_models, _benches) {
|
| 205 |
+
// stat-pills removed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 206 |
}
|
| 207 |
|
| 208 |
function renderChips() {
|
style.css
CHANGED
|
@@ -138,41 +138,6 @@ a:hover { color: var(--accent-2); text-decoration: none; }
|
|
| 138 |
.subtitle { color: var(--muted); text-shadow: 0 1px 12px rgba(0,0,0,0.45); }
|
| 139 |
.subtitle strong { color: var(--ink); font-weight: 500; }
|
| 140 |
|
| 141 |
-
/* =========== Stat pills =========== */
|
| 142 |
-
.stat-row {
|
| 143 |
-
display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
|
| 144 |
-
gap: 12px; margin-bottom: 1.2rem;
|
| 145 |
-
width: 100%;
|
| 146 |
-
}
|
| 147 |
-
.stat-pill {
|
| 148 |
-
background: rgba(255,255,255,0.07);
|
| 149 |
-
border: 1px solid var(--line);
|
| 150 |
-
border-radius: 14px;
|
| 151 |
-
padding: 0.85rem 1rem;
|
| 152 |
-
backdrop-filter: blur(14px);
|
| 153 |
-
-webkit-backdrop-filter: blur(14px);
|
| 154 |
-
box-shadow: var(--shadow-sm);
|
| 155 |
-
transition: border-color var(--t), background var(--t), transform var(--t), box-shadow var(--t);
|
| 156 |
-
}
|
| 157 |
-
.stat-pill:hover {
|
| 158 |
-
border-color: rgba(255,255,255,0.15);
|
| 159 |
-
background: rgba(255,255,255,0.09);
|
| 160 |
-
transform: translateY(-1px);
|
| 161 |
-
box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 28px rgba(0,0,0,0.4);
|
| 162 |
-
}
|
| 163 |
-
.stat-pill .label {
|
| 164 |
-
font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
|
| 165 |
-
color: var(--muted-2); font-weight: 500; margin-bottom: 4px;
|
| 166 |
-
}
|
| 167 |
-
.stat-pill .value {
|
| 168 |
-
font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em;
|
| 169 |
-
font-variant-numeric: tabular-nums; color: var(--ink);
|
| 170 |
-
}
|
| 171 |
-
.stat-pill .value.good { color: var(--green); }
|
| 172 |
-
.stat-pill .sub {
|
| 173 |
-
font-size: 11px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px;
|
| 174 |
-
}
|
| 175 |
-
|
| 176 |
/* =========== Controls =========== */
|
| 177 |
.controls {
|
| 178 |
display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
|
|
@@ -502,7 +467,6 @@ tr.detail-row td { background: rgba(255,255,255,0.07); padding: 16px 18px; white
|
|
| 502 |
@media (max-width: 768px) {
|
| 503 |
.shell { padding: 1.2rem 1rem 2rem; }
|
| 504 |
.hero h1 { font-size: 2rem !important; }
|
| 505 |
-
.stat-row { grid-template-columns: repeat(2, 1fr); }
|
| 506 |
.search-pill input { width: 130px; }
|
| 507 |
}
|
| 508 |
|
|
@@ -514,9 +478,6 @@ tr.detail-row td { background: rgba(255,255,255,0.07); padding: 16px 18px; white
|
|
| 514 |
.search-pill input { width: 100%; }
|
| 515 |
}
|
| 516 |
|
| 517 |
-
@media (max-width: 480px) {
|
| 518 |
-
.stat-row { grid-template-columns: 1fr; }
|
| 519 |
-
}
|
| 520 |
|
| 521 |
|
| 522 |
/* ============================================================
|
|
|
|
| 138 |
.subtitle { color: var(--muted); text-shadow: 0 1px 12px rgba(0,0,0,0.45); }
|
| 139 |
.subtitle strong { color: var(--ink); font-weight: 500; }
|
| 140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
/* =========== Controls =========== */
|
| 142 |
.controls {
|
| 143 |
display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
|
|
|
|
| 467 |
@media (max-width: 768px) {
|
| 468 |
.shell { padding: 1.2rem 1rem 2rem; }
|
| 469 |
.hero h1 { font-size: 2rem !important; }
|
|
|
|
| 470 |
.search-pill input { width: 130px; }
|
| 471 |
}
|
| 472 |
|
|
|
|
| 478 |
.search-pill input { width: 100%; }
|
| 479 |
}
|
| 480 |
|
|
|
|
|
|
|
|
|
|
| 481 |
|
| 482 |
|
| 483 |
/* ============================================================
|