1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hubzilla_ynh.git synced 2024-09-03 19:26:21 +02:00
hubzilla_ynh/sources/.fr-bpZJnx/hubzilla-master/view/js/mod_chanview.js
2016-06-22 23:26:29 +05:30

19 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;