From 38b644f3faf7b739bfceeeb64456846ddeb4bb17 Mon Sep 17 00:00:00 2001 From: Dominic Grimm Date: Tue, 28 Feb 2023 13:21:00 +0100 Subject: [PATCH] Update --- bvplan/js/bvplan.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();