version 1.49.2.11.2.4, 2023/07/06 19:53:17
|
version 1.81, 2022/10/29 18:52:58
|
Line 334 ENDLINK
|
Line 334 ENDLINK
|
} |
} |
}); |
}); |
window.onload = function(){ |
window.onload = function(){ |
if (LCresizedef) { |
if (LCresizedef) { |
LCnotready = 0; |
LCnotready = 0; |
\$(window).trigger('resize'); |
\$(window).trigger('resize'); |
} else { |
} else { |
LCnotready = 1; |
LCnotready = 1; |
} |
} |
}; |
}; |
SCRIPT |
SCRIPT |
# javascript will position the iframe if window was resized (or zoomed) |
# javascript will position the iframe if window was resized (or zoomed) |
Line 425 sub handler {
|
Line 425 sub handler {
|
my %toolhash = &Apache::lonnet::get('exttool_'.$marker,['target','linktext','explanation','id','width','height'], |
my %toolhash = &Apache::lonnet::get('exttool_'.$marker,['target','linktext','explanation','id','width','height'], |
$cdom,$cnum); |
$cdom,$cnum); |
if ($toolhash{'id'}) { |
if ($toolhash{'id'}) { |
my ($idx,%ltitools); |
my %ltitools = &Apache::lonnet::get_domain_lti($cdom,'consumer'); |
if ($toolhash{'id'} =~ /^c(\d+)$/) { |
if (ref($ltitools{$toolhash{'id'}}) eq 'HASH') { |
$idx = $1; |
$exttoolremote = $ltitools{$toolhash{'id'}}{'url'}; |
%ltitools = &Apache::lonnet::get_course_lti($cnum,$cdom,'consumer'); |
|
} else { |
|
$idx = $toolhash{'id'}; |
|
%ltitools = &Apache::lonnet::get_domain_lti($cdom,'consumer'); |
|
} |
|
if (ref($ltitools{$idx}) eq 'HASH') { |
|
$exttoolremote = $ltitools{$idx}{'url'}; |
|
} |
} |
} |
} |
if ($toolhash{'target'} eq 'window') { |
if ($toolhash{'target'} eq 'window') { |