aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-25 02:53:41 -0800
committerfriendica <info@friendica.com>2013-01-25 02:53:41 -0800
commit0f67657c44da4be87944dcb92d8180bc71182097 (patch)
tree89022868c643c77411bf0bbdf78be8b4f6e1fa6c /js
parent299507de08f96160ed3e308006aeda31879e9c9b (diff)
downloadvolse-hubzilla-0f67657c44da4be87944dcb92d8180bc71182097.tar.gz
volse-hubzilla-0f67657c44da4be87944dcb92d8180bc71182097.tar.bz2
volse-hubzilla-0f67657c44da4be87944dcb92d8180bc71182097.zip
ability to make chanview iframe full size (covering source window) and shrink it again
Diffstat (limited to 'js')
-rw-r--r--js/main.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js
index e825d837a..63598f126 100644
--- a/js/main.js
+++ b/js/main.js
@@ -944,4 +944,18 @@ $(window).scroll(function () {
}
});
+var chanviewFullSize = false;
+function chanviewFull() {
+ if(chanviewFullSize) {
+ chanviewFullSize = false;
+ $('#chanview-iframe-border').css({ 'position' : 'relative' });
+ $('#remote-channel').css({ 'position' : 'relative' });
+ }
+ else {
+ chanviewFullSize = true;
+ $('#chanview-iframe-border').css({ 'position' : 'fixed', 'top' : '0', 'left' : '0' });
+ $('#remote-channel').css({ 'position' : 'fixed', 'top' : '0', 'left' : '0' });
+ resize_iframe();
+ }
+}