This repository has been archived on 2024-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
core/view/js/mod_chanview.js

20 lines
512 B
JavaScript

function resize_iframe()
{
if(typeof(window.innerHeight) != 'undefined') {
var height=window.innerHeight;//Firefox
}
else {
if (typeof(document.body.clientHeight) != 'undefined')
{
var height=document.body.clientHeight;//IE
}
}
//resize the iframe according to the size of the
//window (all these should be on the same line)
document.getElementById("remote-channel").style.height=parseInt(height-document.getElementById("remote-channel").offsetTop-8)+"px";
}
window.onresize=resize_iframe;