Spaces:
Running
Running
Download assets/leaderboard-controls.js from SimWorld-AI/Code4Scene: direct link, hf CLI and curl.
- Browser
- Download file 574 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/Code4Scene/resolve/main/assets/leaderboard-controls.js
- Command line
-
hf download hf://spaces/SimWorld-AI/Code4Scene/assets/leaderboard-controls.js
-
curl -L -o leaderboard-controls.js https://huggingface.co/spaces/SimWorld-AI/Code4Scene/resolve/main/assets/leaderboard-controls.js
574 Bytes
| const input=document.getElementById('model-search'),tables=[...document.querySelectorAll('table.board')]; | |
| function filter(){let shown=0;for(const table of tables){let rank=0;for(const row of table.tBodies[0].rows){row.hidden=!row.dataset.search.includes(input.value.trim().toLowerCase());if(!row.hidden)row.cells[0].textContent=++rank;}shown=rank;}document.getElementById('ranking-count').textContent=shown+' of 14 configurations';} | |
| input.addEventListener('input',filter);tables.forEach(t=>t.querySelectorAll('th[data-k]').forEach(th=>th.addEventListener('click',filter))); | |