aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-03 16:14:34 -0800
committerfriendica <info@friendica.com>2012-12-03 16:14:34 -0800
commita4bae6c29b616aac9ee8a4461688e30e0eac8e38 (patch)
tree0a97778dd2d3a8f9e93b3875b7b5239d15d4ef2c /view/js
parent7b4a92146fd905c4fdecd800f07e81dabeeb6962 (diff)
downloadvolse-hubzilla-a4bae6c29b616aac9ee8a4461688e30e0eac8e38.tar.gz
volse-hubzilla-a4bae6c29b616aac9ee8a4461688e30e0eac8e38.tar.bz2
volse-hubzilla-a4bae6c29b616aac9ee8a4461688e30e0eac8e38.zip
profile viewer in iframe module, todo - magic auth
Diffstat (limited to 'view/js')
-rw-r--r--view/js/mod_chanview.js19
1 files changed, 19 insertions, 0 deletions
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;