chat-client/scripts/scripts.js

15 lines
376 B
JavaScript
Raw Normal View History

2019-04-13 16:34:16 +10:00
// Check the height of the chat box and adapt the chat area for it
setInterval(function()
2019-04-09 19:18:47 +10:00
{
2019-04-13 16:34:16 +10:00
if(
// Do these exist yet
document.getElementById("chat-content") &&
document.getElementById("chat-content-send")
){
document.getElementById("chat-content").style.bottom =
document.getElementById("chat-content-send").offsetHeight.toString()+"px";
}
},
10);