version 1.49, 2014/06/17 23:22:21
|
version 1.49.2.1, 2016/08/05 21:34:54
|
Line 52 sub wrapper {
|
Line 52 sub wrapper {
|
'show' => 'Show content in pop-up window', |
'show' => 'Show content in pop-up window', |
); |
); |
|
|
my $noiframe = &Apache::loncommon::modal_link($url,$lt{'show'},500,400); |
my $anchor; |
|
if (($is_ext) && ($env{'form.symb'})) { |
|
(undef,undef,my $res) = &Apache::lonnet::decode_symb($env{'form.symb'}); |
|
if ($res =~ /(\#.+)$/) { |
|
$anchor = $1; |
|
} |
|
} |
|
|
|
my $noiframe = &Apache::loncommon::modal_link($url.$anchor,$lt{'show'},500,400); |
my $args = {'bgcolor' => '#FFFFFF'}; |
my $args = {'bgcolor' => '#FFFFFF'}; |
if ($forcereg) { |
if ($forcereg) { |
$args->{'force_register'} = $forcereg; |
$args->{'force_register'} = $forcereg; |
Line 85 sub wrapper {
|
Line 93 sub wrapper {
|
$output .= '<a href="'.$url.'">'.&mt('Link to PDF (for mobile devices)').'</a>'; |
$output .= '<a href="'.$url.'">'.&mt('Link to PDF (for mobile devices)').'</a>'; |
} else { |
} else { |
$output .= '<div style="overflow:scroll; -webkit-overflow-scrolling:touch;">'."\n". |
$output .= '<div style="overflow:scroll; -webkit-overflow-scrolling:touch;">'."\n". |
'<iframe src="'.$url.'" height="100%" width="100%" frameborder="0">'."\n". |
'<iframe src="'.$url.$anchor.'" height="100%" width="100%" frameborder="0">'."\n". |
"$lt{'noif'} $noiframe\n". |
"$lt{'noif'} $noiframe\n". |
"</iframe>\n". |
"</iframe>\n". |
"</div>\n"; |
"</div>\n"; |
Line 123 SCRIPT
|
Line 131 SCRIPT
|
$startpage |
$startpage |
$script |
$script |
<div class="LC_iframecontainer"> |
<div class="LC_iframecontainer"> |
<iframe src="$url">$lt{'noif'} $noiframe</iframe> |
<iframe src="$url$anchor">$lt{'noif'} $noiframe</iframe> |
</div> |
</div> |
$endpage |
$endpage |
ENDFRAME |
ENDFRAME |