ability to make chanview iframe full size (covering source window) and shrink it again

This commit is contained in:
friendica 2013-01-25 02:53:41 -08:00
parent 299507de08
commit 0f67657c44
3 changed files with 18 additions and 2 deletions

View File

@ -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();
}
}

View File

@ -1 +1,2 @@
<iframe id="remote-channel" width="100%" src="$url" onload="resize_iframe()"></iframe> <div id="chanview-iframe-border" class="fakelink" onclick="chanviewFull(); return true;" style="z-index: 100001;" >&#x2610;</div>
<iframe id="remote-channel" width="100%" style="z-index: 75000;" src="$url" onload="resize_iframe()"></iframe>

View File

@ -1 +1,2 @@
<iframe id="remote-channel" width="100%" src="{{$url}}" onload="resize_iframe()"></iframe> <div id="chanview-iframe-border" class="fakelink" onclick="chanviewFull(); return true;" style="z-index: 100001;" >&#x2610;</div>
<iframe id="remote-channel" width="100%" style="z-index: 75000;" src="{{$url}}" onload="resize_iframe()"></iframe>