Spaces:
Running
Running
Commit ·
c2e39a4
1
Parent(s): bf85e57
Don't scroll title and tabs
Browse filesFiles changed (4)
- AGENTS.md+2-1
- assets/app.js+25-1
- assets/style.css+20
- index.html+2-2
5 unmodified lines67891011125 unmodified lines## Files- `index.html`: the whole page: header, the four tab panels (Leaderboard, which opens first: theElo figure above the table; Performance Trade-offs: Pareto front and complete results; Stability;Validity),all user-facing text (each explanation sits next to the figure or table it describes; there is no5 unmodified lines6789101112135 unmodified lines## Files- `index.html`: the whole page: header (on screens wider than 640px it stays at the top together withthe tabs, see `initStickyHeader` in `app.js`), the four tab panels (Leaderboard, which opens first: theElo figure above the table; Performance Trade-offs: Pareto front and complete results; Stability;Validity),all user-facing text (each explanation sits next to the figure or table it describes; there is no
144 unmodified lines145146147148149150151152153211 unmodified lines36536636736836937047 unmodified lines418419420421422423144 unmodified linesif (tab === 'validity') renderValidity();writeHash();}function initTabs() {document.querySelectorAll('[role="tab"]').forEach(function (button) {button.addEventListener('click', function () { showTab(button.dataset.tab); });button.addEventListener('keydown', function (event) {var i = TABS.indexOf(button.dataset.tab);if (event.key === 'ArrowRight' || event.key === 'ArrowLeft') {211 unmodified linesrenderTheme();}// ---- "Cite" button: scroll to the BibTeX entry without replacing the selection in the URL hash ----function initCite() {$('cite-button').addEventListener('click', function (event) {47 unmodified linesfunction start() {readHash();initTabs();initCite();initCopyCitation();initTheme();144 unmodified lines145146147148149150151152153154155156157158159160161162163211 unmodified lines37537637737837938038138238338438538638738838939039139239347 unmodified lines441442443444445446447144 unmodified linesif (tab === 'validity') renderValidity();writeHash();}// A tab switched while scrolled down opens at its top (right below the tabs that stay on screen).function scrollToTabs() {// The tabs' own position is the stuck one while they stick: measure from the intro above them.var tabs = document.querySelector('.tabs');var header = document.querySelector('.header');var intro = document.querySelector('.intro');var top = intro.getBoundingClientRect().bottom + window.scrollY + parseFloat(getComputedStyle(tabs).marginTop)- header.offsetHeight;if (getComputedStyle(tabs).position === 'sticky' && window.scrollY > top) window.scrollTo(0, top);}function initTabs() {document.querySelectorAll('[role="tab"]').forEach(function (button) {button.addEventListener('click', function () { showTab(button.dataset.tab); scrollToTabs(); });button.addEventListener('keydown', function (event) {var i = TABS.indexOf(button.dataset.tab);if (event.key === 'ArrowRight' || event.key === 'ArrowLeft') {211 unmodified linesrenderTheme();}// ---- Header and tabs stay at the top on larger screens (style.css): the tabs sit right below the// header, whose height changes with the window width, so it is measured into --header-h. ----function initStickyHeader() {var header = document.querySelector('.header');if (!header) return;function update() {document.documentElement.style.setProperty('--header-h', header.offsetHeight + 'px');}update();if (window.ResizeObserver) new ResizeObserver(update).observe(header);else window.addEventListener('resize', update);}// ---- "Cite" button: scroll to the BibTeX entry without replacing the selection in the URL hash ----function initCite() {$('cite-button').addEventListener('click', function (event) {47 unmodified linesfunction start() {readHash();initTabs();initStickyHeader();initCite();initCopyCitation();initTheme();
77 unmodified lines787980818283113 unmodified lines19719819920020120220377 unmodified linescursor: pointer; white-space: nowrap;}.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }.tabs button:hover { color: var(--fg); }.tabs button:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }[role="tabpanel"][hidden] { display: none; }113 unmodified lines/* Phones: the logo, title and subtitle take two thirds of the header width and the four buttons arestacked in the remaining third; the four tabs share the full width (no sideways scrolling to reachValidity). Larger screens keep the buttons in one row. */@media (max-width: 640px) {.brand { align-items: flex-start; }.brand > div { flex: 2 1 0; }.brand > .header-actions {77 unmodified lines78798081828384858687888990919293949596979899100113 unmodified lines21421521621721821922022122222377 unmodified linescursor: pointer; white-space: nowrap;}.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }/* Larger screens: the header and the tabs stay at the top while the page scrolls (the intro scrolls awayunder the header). --header-h is the header's height, measured in app.js (initStickyHeader). Phonesscroll everything, so the small screen is left to the content. */@media (min-width: 641px) {.header {position: sticky; top: 0; z-index: 20; background: var(--bg);margin-top: -16px; padding-top: 16px;}.tabs {position: sticky; top: var(--header-h, 100px); z-index: 19; background: var(--bg);margin-bottom: 0; padding-top: 2px;}.tabs ~ [role="tabpanel"] { padding-top: 12px; }/* Anchors (e.g. "Cite" -> #citation) land below the header and the tabs, not behind them. */[id] { scroll-margin-top: calc(var(--header-h, 100px) + 56px); }}.tabs button:hover { color: var(--fg); }.tabs button:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }[role="tabpanel"][hidden] { display: none; }113 unmodified lines/* Phones: the logo, title and subtitle take two thirds of the header width and the four buttons arestacked in the remaining third; the four tabs share the full width (no sideways scrolling to reachValidity). Larger screens keep the buttons in one row. */.label-short { display: none; }@media (max-width: 640px) {.label-long { display: none; }.label-short { display: inline; }.brand { align-items: flex-start; }.brand > div { flex: 2 1 0; }.brand > .header-actions {
3 unmodified lines4567891018 unmodified lines293031323334353 unmodified lines<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><!-- Bumped with every data refresh (shown in the header). --><meta name="selectarena-version" content="0.8.3"><title>SelectArena Leaderboard</title><meta name="description" content="Leaderboard of feature selection methods on real-world tabular data."><link rel="icon" type="image/svg+xml" href="assets/logo.svg">18 unmodified lines<div class="header-actions"><a class="cite-button paper-button" href="https://arxiv.org/abs/2610.13644" target="_blank" rel="noopener" aria-label="Read our paper (arXiv)">Paper</a><a class="cite-button" id="cite-button" href="#citation" aria-label="Cite our paper">Cite</a><a class="cite-button add-button" href="https://github.com/schaeferbasti/SelectArena/tree/main#add-your-method-to-selectarena" target="_blank" rel="noopener" aria-label="Add your method (GitHub)">Add your method</a><button type="button" class="theme-button" id="theme-button" aria-label="Switch to dark mode" title="Switch to dark mode"><svg class="icon-moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z"/></svg><svg class="icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></svg>3 unmodified lines4567891018 unmodified lines293031323334353 unmodified lines<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><!-- Bumped with every data refresh (shown in the header). --><meta name="selectarena-version" content="0.8.5"><title>SelectArena Leaderboard</title><meta name="description" content="Leaderboard of feature selection methods on real-world tabular data."><link rel="icon" type="image/svg+xml" href="assets/logo.svg">18 unmodified lines<div class="header-actions"><a class="cite-button paper-button" href="https://arxiv.org/abs/2610.13644" target="_blank" rel="noopener" aria-label="Read our paper (arXiv)">Paper</a><a class="cite-button" id="cite-button" href="#citation" aria-label="Cite our paper">Cite</a><a class="cite-button add-button" href="https://github.com/schaeferbasti/SelectArena/tree/main#add-your-method-to-selectarena" target="_blank" rel="noopener" aria-label="Add your method (GitHub)"><span class="label-long">Add your method</span><span class="label-short">Add method</span></a><button type="button" class="theme-button" id="theme-button" aria-label="Switch to dark mode" title="Switch to dark mode"><svg class="icon-moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z"/></svg><svg class="icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></svg>
AGENTS.md+2-1
assets/app.js+25-1
assets/style.css+20
index.html+2-2