Site: the Android button's texts reach the page; platform links show the download heading
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:
parent
ba00887cc2
commit
356384b13e
2 changed files with 22 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue