From a4bae6c29b616aac9ee8a4461688e30e0eac8e38 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 3 Dec 2012 16:14:34 -0800 Subject: profile viewer in iframe module, todo - magic auth --- view/js/mod_chanview.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 view/js/mod_chanview.js (limited to 'view/js') diff --git a/view/js/mod_chanview.js b/view/js/mod_chanview.js new file mode 100644 index 000000000..0bf81ba35 --- /dev/null +++ b/view/js/mod_chanview.js @@ -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; -- cgit v1.2.3