profile viewer in iframe module, todo - magic auth

This commit is contained in:
friendica
2012-12-03 16:14:34 -08:00
parent 7b4a92146f
commit a4bae6c29b
5 changed files with 66 additions and 74 deletions

19
view/js/mod_chanview.js Normal file
View File

@@ -0,0 +1,19 @@
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;