diff --git a/bvplan/js/bvplan.js b/bvplan/js/bvplan.js index ebc93c2..c46034d 100644 --- a/bvplan/js/bvplan.js +++ b/bvplan/js/bvplan.js @@ -8,7 +8,8 @@ window.onerror = function () { const elementCount = JSON.parse($("#data-element-count").text()); const waitDelay = 15_000; -const scrollDuration = elementCount * 200; +const scrollDuration = + ($(document).height() / $(window).height()) * elementCount * 200; function reload() { window.location.reload();