blind inline oop
All checks were successful
Jenkins
Ellpeck/Web/pipeline/head This commit looks good
All checks were successful
Jenkins
Ellpeck/Web/pipeline/head This commit looks good
This commit is contained in:
parent
11c00e85b3
commit
a4b5dae3ad
1 changed files with 3 additions and 4 deletions
|
@ -45,10 +45,9 @@ function populateManual(lang) {
|
||||||
entries.append(t);
|
entries.append(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
let anchor = undefined || location.hash;
|
// force-scroll to proper anchor
|
||||||
// this is probably a terrible hack
|
if (location.hash.startsWith("#")) {
|
||||||
if (anchor.startsWith("#")) {
|
let element = $(location.hash);
|
||||||
let element = $(anchor);
|
|
||||||
if (element.length) {
|
if (element.length) {
|
||||||
$('html, body').animate({
|
$('html, body').animate({
|
||||||
scrollTop: element.offset().top
|
scrollTop: element.offset().top
|
||||||
|
|
Loading…
Reference in a new issue