static/js/script.js
//=========== Scroll to the bottom of the chats after new message has been added to chat ======
Scroll to the bottom of the chats after new message has been added to chat
Scroll to the bottom of the chats after new message has been added to chat
function scrollToBottomOfResults() {
	var terminalResultsDiv = document.getElementById("chats");
	terminalResultsDiv.scrollTop = terminalResultsDiv.scrollHeight;
}
function scrollToBottomOfResults ( ) { var terminalResultsDiv = document . getElementById ( "chats" ) ; terminalResultsDiv . scrollTop = terminalResultsDiv . scrollHeight ; }
Scroll to the bottom of the chats after new message has been added to chat
Scroll to the bottom of the chats after new message has been added to chat