Skip to content

Commit

Permalink
scroll to bottom of the page after runSimulations is called at button…
Browse files Browse the repository at this point in the history
… click
  • Loading branch information
Angel Gonzalez committed Jan 5, 2024
1 parent c986b4e commit ea3bad7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea3bad7

Please sign in to comment.