version 1.1454, 2025/02/14 23:10:30
|
version 1.1460, 2025/02/21 04:29:26
|
Line 1460 $banner_link
|
Line 1460 $banner_link
|
<a href="$link" title="$title" $linkattr>$text</a> |
<a href="$link" title="$title" $linkattr>$text</a> |
END |
END |
} else { |
} else { |
return ' '.$text.' '; |
return ' <h1 class="LC_helpmenu">'.$text.'</h1> '; |
} |
} |
} |
} |
|
|
Line 1472 sub help_menu_js {
|
Line 1472 sub help_menu_js {
|
my $helptopic=&general_help(); |
my $helptopic=&general_help(); |
my $details_link = $httphost.'/adm/help/'.$helptopic.'.hlp'; |
my $details_link = $httphost.'/adm/help/'.$helptopic.'.hlp'; |
my $nothing=&Apache::lonhtmlcommon::javascript_nothing(); |
my $nothing=&Apache::lonhtmlcommon::javascript_nothing(); |
|
my $bannertitle = &mt('Help Menu'); |
|
&js_escape(\$bannertitle); |
|
my $bodytitle = &mt('Documentation'); |
|
&js_escape(\$bodytitle); |
my $start_page = |
my $start_page = |
&Apache::loncommon::start_page('Help Menu', undef, |
&Apache::loncommon::start_page('Help Menu', undef, |
{'frameset' => 1, |
{'frameset' => 1, |
Line 1483 sub help_menu_js {
|
Line 1487 sub help_menu_js {
|
my $end_page = |
my $end_page = |
&Apache::loncommon::end_page({'frameset' => 1, |
&Apache::loncommon::end_page({'frameset' => 1, |
'js_ready' => 1,}); |
'js_ready' => 1,}); |
|
|
my $template .= <<"ENDTEMPLATE"; |
my $template .= <<"ENDTEMPLATE"; |
<script type="text/javascript"> |
<script type="text/javascript"> |
// <![CDATA[ |
// <![CDATA[ |
Line 1508 function helpMenu(target) {
|
Line 1511 function helpMenu(target) {
|
return; |
return; |
} |
} |
function writeHelp(caller) { |
function writeHelp(caller) { |
caller.document.writeln('$start_page\\n<frame name="bannerframe" src="'+banner_link+'" marginwidth="0" marginheight="0" frameborder="0">\\n'); |
caller.document.writeln('$start_page\\n<frame name="bannerframe" title="$bannertitle" src="'+banner_link+'" marginwidth="0" marginheight="0" frameborder="0">\\n'); |
caller.document.writeln('<frame name="bodyframe" src="$details_link" marginwidth="0" marginheight="0" frameborder="0">\\n$end_page'); |
caller.document.writeln('<frame name="bodyframe" title="$bodytitle" src="$details_link" marginwidth="0" marginheight="0" frameborder="0">\\n$end_page'); |
caller.document.close(); |
caller.document.close(); |
caller.focus(); |
caller.focus(); |
} |
} |
Line 5342 sub get_student_view {
|
Line 5345 sub get_student_view {
|
$userview=~s/\<\/html\>//gi; |
$userview=~s/\<\/html\>//gi; |
$userview=~s/\<head\>//gi; |
$userview=~s/\<head\>//gi; |
$userview=~s/\<\/head\>//gi; |
$userview=~s/\<\/head\>//gi; |
|
$userview=~s/\Q<div class="LC_landmark" role="main"\E/<div class="LC_landmark"/; |
$userview=~s/action\s*\=/would_be_action\=/gi; |
$userview=~s/action\s*\=/would_be_action\=/gi; |
$userview=&relative_to_absolute($feedurl,$userview); |
$userview=&relative_to_absolute($feedurl,$userview); |
if (wantarray) { |
if (wantarray) { |
Line 7051 END
|
Line 7055 END
|
if ($dc_info) { |
if ($dc_info) { |
$dc_info = qq|<span class="LC_cusr_subheading">$dc_info</span>|; |
$dc_info = qq|<span class="LC_cusr_subheading">$dc_info</span>|; |
} |
} |
$bodytag .= qq|<div id="LC_nav_bar" role="navigation" aria-label="$labeltext">$left $role<br />|; |
$bodytag .= qq|<div id="LC_nav_bar" role="navigation" aria-label="$labeltext">$left $role</div>|; |
unless (($realm eq '') && ($dc_info eq '')) { |
unless (($realm eq '') && ($dc_info eq '')) { |
$bodytag .= qq|<div id="LC_realm" role="complementary"><em>$realm</em> $dc_info</div>|; |
$bodytag .= qq|<div id="LC_realm" role="complementary"><em>$realm</em> $dc_info</div>|; |
} |
} |
Line 7061 END
|
Line 7065 END
|
return $bodytag; |
return $bodytag; |
} |
} |
|
|
$bodytag .= '<div class="LC_landmark" role="navigation" aria-label="'.$labeltext.'">'; |
$bodytag .= '<div class="LC_landmark" style="margin: 3px 0 0 0;" role="navigation" aria-label="'.$labeltext.'">'; |
unless ($env{'request.symb'} =~ m/\.page___\d+___/) { |
unless ($env{'request.symb'} =~ m/\.page___\d+___/) { |
$bodytag .= qq|<div id="LC_nav_bar">$left $role</div>|; |
$bodytag .= qq|<div id="LC_nav_bar">$left $role</div>|; |
} |
} |
Line 7072 END
|
Line 7076 END
|
$dc_info = &dc_courseid_toggle($dc_info); |
$dc_info = &dc_courseid_toggle($dc_info); |
} |
} |
unless (($realm eq '') && ($dc_info eq '')) { |
unless (($realm eq '') && ($dc_info eq '')) { |
$bodytag .= qq|<div id="LC_realm">$realm $dc_info</div>|; |
$bodytag .= qq|<div id="LC_realm" role="complementary">$realm $dc_info</div>|; |
} |
} |
|
$bodytag .= qq|<div style="clear: both; margin: 5px 0 0 0;"></div>|; |
} |
} |
|
|
#if directed to not display the secondary menu, don't. |
#if directed to not display the secondary menu, don't. |
Line 7086 END
|
Line 7091 END
|
#don't show menus for public users |
#don't show menus for public users |
if (!$public){ |
if (!$public){ |
unless ($args->{'no_inline_menu'}) { |
unless ($args->{'no_inline_menu'}) { |
$bodytag .= Apache::lonmenu::secondary_menu($httphost,$ltiscope,$ltimenu, |
$bodytag .= '<div class="LC_landmark" role="navigation" aria-label="Secondary Links">'. |
|
Apache::lonmenu::secondary_menu($httphost,$ltiscope,$ltimenu, |
$args->{'no_primary_menu'}, |
$args->{'no_primary_menu'}, |
$menucoll,$menuref, |
$menucoll,$menuref, |
$args->{'links_disabled'}, |
$args->{'links_disabled'}, |
$args->{'links_target'}); |
$args->{'links_target'}). |
|
'</div>'; |
} |
} |
$bodytag .= Apache::lonmenu::serverform(); |
$bodytag .= Apache::lonmenu::serverform(); |
if ($need_endlcint) { |
if ($need_endlcint) { |
Line 7105 END
|
Line 7112 END
|
$args->{'group'},$args->{'hide_buttons'}, |
$args->{'group'},$args->{'hide_buttons'}, |
$hostname,$ltiscope,$ltiuri,$showncrumbsref); |
$hostname,$ltiscope,$ltiuri,$showncrumbsref); |
} else { |
} else { |
$bodytag .= |
$bodytag .= |
&Apache::lonmenu::prepare_functions($env{'request.noversionuri'}, |
&Apache::lonmenu::prepare_functions($env{'request.noversionuri'}, |
$forcereg,$args->{'group'}, |
$forcereg,$args->{'group'}, |
$args->{'bread_crumbs'}, |
$args->{'bread_crumbs'}, |
Line 7114 END
|
Line 7121 END
|
} else { |
} else { |
# this is to separate menu from content when there's no secondary |
# this is to separate menu from content when there's no secondary |
# menu. Especially needed for publicly accessible resources. |
# menu. Especially needed for publicly accessible resources. |
$bodytag .= '<hr style="clear:both" />'; |
$bodytag .= '<hr style="clear:both" role="complementary" />'; |
if ($need_endlcint) { |
if ($need_endlcint) { |
$bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); |
$bodytag .= Apache::lonhtmlcommon::scripttag('', 'end'); |
} |
} |
Line 7334 form, .inline {
|
Line 7341 form, .inline {
|
|
|
.LC_heading_2 { |
.LC_heading_2 { |
font-size: 1.17em; |
font-size: 1.17em; |
margin-top: 1em; |
} |
margin-bottom: 1em; |
|
|
.LC_heading_3 { |
|
font-size: 1.0em; |
} |
} |
|
|
.LC_menus_content.shown{ |
.LC_menus_content.shown{ |
Line 7996 table.LC_parm_overview_restrictions th {
|
Line 8005 table.LC_parm_overview_restrictions th {
|
border-color: $pgbg; |
border-color: $pgbg; |
} |
} |
|
|
table#LC_helpmenu { |
h1.LC_helpmenu { |
border: none; |
display: inline; |
height: 55px; |
font-size: 100%; |
border-spacing: 0; |
font-weight: normal; |
|
line-height: 1em; |
|
margin: 0; |
|
padding: 0; |
|
border: 0; |
} |
} |
|
|
table#LC_helpmenu fieldset legend { |
.LC_helpdesk_headbox { |
font-size: larger; |
border: 2px groove threedface; |
|
padding: 1em; |
} |
} |
|
|
table#LC_helpmenu_links { |
h1.LC_helpdesk_legend { |
width: 100%; |
float: left; |
border: 1px solid black; |
margin: -1.7em 0 0; |
|
padding: 0 .5em; |
background: $pgbg; |
background: $pgbg; |
|
font-size: 1em; |
|
font-weight: bold; |
|
} |
|
|
|
h1.LC_helpdesk_title { |
|
display: inline; |
|
font-size: 1em; |
|
line-height: 2.5em; |
|
margin: 0; |
padding: 0; |
padding: 0; |
border-spacing: 1px; |
vertical-align: bottom; |
} |
} |
|
|
table#LC_helpmenu_links tr td { |
.LC_helpdesk_links { |
padding: 1px; |
border: 1px solid black; |
|
padding: 3px; |
background: $tabbg; |
background: $tabbg; |
text-align: center; |
text-align: center; |
font-weight: bold; |
font-weight: bold; |
|
display: inline; |
|
margin-right: -6px; |
} |
} |
|
|
table#LC_helpmenu_links a:link, |
.LC_helpdesk_img, |
table#LC_helpmenu_links a:visited, |
.LC_helpdesk_text { |
table#LC_helpmenu_links a:active { |
padding: 0; |
|
margin: 0; |
|
border: 0; |
|
display: inline; |
|
} |
|
|
|
.LC_helpdesk_img a:link, |
|
.LC_helpdesk_img a:visited, |
|
.LC_helpdesk_img a:active, |
|
.LC_helpdesk_text a:link, |
|
.LC_helpdesk_text a:visited, |
|
.LC_helpdesk_text a:active { |
text-decoration: none; |
text-decoration: none; |
color: $font; |
color: $font; |
} |
} |
|
|
table#LC_helpmenu_links a:hover { |
div.LC_helpdesk_text a:hover { |
text-decoration: underline; |
text-decoration: underline; |
color: $vlink; |
color: $vlink; |
} |
} |
Line 8529 img.stift {
|
Line 8567 img.stift {
|
vertical-align: middle; |
vertical-align: middle; |
} |
} |
|
|
table td.LC_mainmenu_col_fieldset { |
div.LC_mainmenu { |
vertical-align: top; |
margin: 3px 2px 2px 1px; |
|
float: left; |
} |
} |
|
|
div.LC_createcourse { |
div.LC_createcourse { |
Line 8612 fieldset {
|
Line 8651 fieldset {
|
} |
} |
|
|
fieldset#LC_selectuser { |
fieldset#LC_selectuser { |
margin: 0; |
margin: -1px 0 0 0; |
padding: 0; |
padding: 0; |
|
border: 0; |
} |
} |
|
|
article.geogebraweb div { |
article.geogebraweb div { |
Line 9740 OFFLOAD
|
Line 9780 OFFLOAD
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
<meta name="apple-mobile-web-app-capable" content="yes" />'; |
<meta name="apple-mobile-web-app-capable" content="yes" />'; |
} |
} |
$result .= '<meta name="google" content="notranslate" />'."\n"; |
$result .= '<meta name="google" content="notranslate"'; |
|
if (!$args->{'frameset'}) { |
|
$result .= ' /'; |
|
} |
|
$result .= '>'."\n"; |
return $result.'</head>'; |
return $result.'</head>'; |
} |
} |
|
|
Line 9871 sub xml_begin {
|
Line 9915 sub xml_begin {
|
.'xmlns="http://www.w3.org/1999/xhtml">'; |
.'xmlns="http://www.w3.org/1999/xhtml">'; |
} elsif ($is_frameset) { |
} elsif ($is_frameset) { |
$output='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">'."\n". |
$output='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">'."\n". |
'<html>'."\n"; |
'<html lang="en">'."\n"; |
} else { |
} else { |
$output='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n". |
$output='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n". |
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'."\n"; |
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'."\n"; |
Line 10784 sub simple_error_page {
|
Line 10828 sub simple_error_page {
|
} |
} |
|
|
my $page = |
my $page = |
&Apache::loncommon::start_page($title,'',\%displayargs). |
&Apache::loncommon::start_page($title,'',\%displayargs)."\n". |
|
'<div class="LC_landmark" style="clear:both" role="main">'. |
'<p class="LC_error">'.$msg.'</p>'. |
'<p class="LC_error">'.$msg.'</p>'. |
|
'</div>'. |
&Apache::loncommon::end_page(); |
&Apache::loncommon::end_page(); |
if (ref($r)) { |
if (ref($r)) { |
$r->print($page); |
$r->print($page); |