mirror of
https://github.com/rvtr/wiki.git
synced 2025-10-31 06:31:13 -04:00
Scroll to FAQ heading, not body
This commit is contained in:
parent
f9c6125579
commit
4dea714552
@ -19,6 +19,6 @@ if(urlFaq) {
|
||||
faq = Array.from(document.getElementById("faq-container").children).filter(r => r.children[0].id == `faq-${urlFaq}`)[0];
|
||||
if(faq) {
|
||||
faq.children[0].click();
|
||||
faq.children[2].scrollIntoView();
|
||||
faq.children[1].scrollIntoView();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user