15 lines
376 B
JavaScript
15 lines
376 B
JavaScript
|
|
// Check the height of the chat box and adapt the chat area for it
|
|
setInterval(function()
|
|
{
|
|
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);
|