Refactor: Embed leaderboard script using Jekyll include tag

This commit is contained in:
Paul Gauthier (aider) 2025-04-13 08:55:44 -07:00
parent 09d90b9b70
commit fe6e2e1ea7
2 changed files with 3 additions and 2 deletions

View file

@ -1,3 +1,4 @@
<script>
document.addEventListener('DOMContentLoaded', function() {
let currentMode = 'view'; // 'view', 'select'
let selectedRows = new Set(); // Store indices of selected rows
@ -386,3 +387,4 @@ document.addEventListener('DOMContentLoaded', function() {
});
</script>

View file

@ -209,10 +209,9 @@ Aider works best with high-scoring models, though it [can connect to almost any
tr.view-highlighted > td {
background-color: #f0f0f0; /* Example light grey highlight */
}
</style>
<script src="/assets/js/leaderboard_table.js"></script>
{% include leaderboard_table.js %}
<p class="post-date" style="margin-top: 20px;">
By Paul Gauthier,