Improved chat page by scrolling to the bottom after loading (#87)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2024-08-23 10:32:27 +02:00
1 parent 3409872090
commit 1b3fff67ec
9 files changed
+57 -2

No files matched your search

+4
View File
@@ -21,4 +21,8 @@ window.generateDiff = function (text1, text2, divDiff, divLegend) {
window.clearDiv = function (divName) {
let targetDiv = document.getElementById(divName);
targetDiv.innerHTML = '';
}
window.scrollToBottom = function(element) {
element.scrollIntoView();
}