From 0f67657c44da4be87944dcb92d8180bc71182097 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 25 Jan 2013 02:53:41 -0800 Subject: [PATCH] ability to make chanview iframe full size (covering source window) and shrink it again --- js/main.js | 14 ++++++++++++++ view/tpl/chanview.tpl | 3 ++- view/tpl/smarty3/chanview.tpl | 3 ++- 3 files changed, 18 insertions(+), 2 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(); + } +} diff --git a/view/tpl/chanview.tpl b/view/tpl/chanview.tpl index 641294feb..d4587bc2a 100644 --- a/view/tpl/chanview.tpl +++ b/view/tpl/chanview.tpl @@ -1 +1,2 @@ - + + diff --git a/view/tpl/smarty3/chanview.tpl b/view/tpl/smarty3/chanview.tpl index 7e375d3e6..502e33667 100644 --- a/view/tpl/smarty3/chanview.tpl +++ b/view/tpl/smarty3/chanview.tpl @@ -1 +1,2 @@ - + +