From 89341ad213271537ff5cc80b7038d4997d0f58e4 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 25 Jul 2024 10:26:14 +0200 Subject: [PATCH] Changed the font color of selected rows in the leaderboard. --- aider/website/docs/leaderboards/index.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/aider/website/docs/leaderboards/index.md b/aider/website/docs/leaderboards/index.md index 8277fe49b..ad9359198 100644 --- a/aider/website/docs/leaderboards/index.md +++ b/aider/website/docs/leaderboards/index.md @@ -84,7 +84,11 @@ from Exercism. This benchmark measures the LLM's coding ability, but also whethe leaderboardData.datasets[0].data = []; allData.forEach(function(row, index) { - if (showAll || document.getElementById('edit-row-' + index).classList.contains('selected')) { + var rowElement = document.getElementById('edit-row-' + index); + if (showAll) { + rowElement.classList.remove('selected'); + } + if (showAll || rowElement.classList.contains('selected')) { leaderboardData.labels.push(row.model); leaderboardData.datasets[0].data.push(row.pass_rate_2); } @@ -126,7 +130,7 @@ from Exercism. This benchmark measures the LLM's coding ability, but also whethe @@ -195,7 +199,11 @@ Therefore, results are available for fewer models. leaderboardData.datasets[0].data = []; allData.forEach(function(row, index) { - if (showAll || document.getElementById('refac-row-' + index).classList.contains('selected')) { + var rowElement = document.getElementById('refac-row-' + index); + if (showAll) { + rowElement.classList.remove('selected'); + } + if (showAll || rowElement.classList.contains('selected')) { leaderboardData.labels.push(row.model); leaderboardData.datasets[0].data.push(row.pass_rate_1); }