From ea3bad7ab829b5eee76649cd1a3509e63c0d4a48 Mon Sep 17 00:00:00 2001 From: Angel Gonzalez Date: Fri, 5 Jan 2024 23:43:21 +0100 Subject: [PATCH] scroll to bottom of the page after runSimulations is called at button click --- script.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script.js b/script.js index 9b4ef49..b19e2f3 100644 --- a/script.js +++ b/script.js @@ -117,6 +117,12 @@ function runSimulations() { } } }); + + // Scroll to the bottom of the page + window.scrollTo({ + top: document.body.scrollHeight, + behavior: 'smooth' + }); } // Initialize slider values on page load