Site: the Android button's texts reach the page; platform links show the download heading
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run

The page script gets only the texts listed in CLIENT_KEYS; the Android ones were missing,
so a phone saw "btn_android". A test now checks every text the script uses. A link to a
platform (Android, Linux…) scrolls to the start of the download section instead of the
panel under its tabs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-22 22:20:26 +03:00
parent ba00887cc2
commit 356384b13e
2 changed files with 22 additions and 1 deletions

View file

@ -230,7 +230,9 @@
var panelId = id.replace(/^(download-(windows|macos|linux|android)).*/, "$1");
var tab = tabs.filter(function (x) { return x.getAttribute("aria-controls") === panelId; })[0];
if (tab) select(tab);
var target = $(id);
// A platform link shows the section from its heading and tabs; a link to one
// file, its row.
var target = id === panelId ? $("download") : $(id);
if (target) target.scrollIntoView();
}
// The jump is done: drop the anchor, or a reload jumps there again from wherever