Revamp stork

This commit is contained in:
Elnu 2023-02-18 22:08:41 -08:00
parent 109bc0bdd6
commit 8764450423
5 changed files with 67 additions and 21 deletions

View file

@ -77,7 +77,7 @@ function renderComments(jump, comments, debug) {
}
commentContainer.innerHTML = html;
soudan.style.display = "";
if (jump && window.location.hash) {
if (jump && window.location.hash.substr(1) == parseInt(window.location.hash.substr(1))) {
const target = document.getElementById(window.location.hash.substring(1));
if (target) {
window.scrollTo(0, target.offsetTop);