version 1.92.2.1, 2018/06/08 11:57:57
|
version 1.97, 2025/02/21 20:55:17
|
Line 170 sub end_itemgroup {
|
Line 170 sub end_itemgroup {
|
undef($columns); |
undef($columns); |
} |
} |
if ($target eq 'web') { |
if ($target eq 'web') { |
|
my $table='<table class="LC_itemgroup">'; # extra space to match what latex does. |
my $table='<br /><table>'; # extra space to match what latex does. |
|
if ((!$columns) || ($columns < 0)) { |
if ((!$columns) || ($columns < 0)) { |
if ($direction eq 'horizontal') { |
if ($direction eq 'horizontal') { |
if (@names > 0) { |
if (@names > 0) { |
Line 201 sub end_itemgroup {
|
Line 200 sub end_itemgroup {
|
if ($i % $columns == 0) { |
if ($i % $columns == 0) { |
$table.='<tr>'; |
$table.='<tr>'; |
} |
} |
$table.= '<td>'.$label.'</td><td>'.$item.'</td>'; |
$table.= '<th>'.$label.'</th><td>'.$item.'</td>'; |
if ($columns > 1) { |
if ($columns > 1) { |
$table .= '<td> </td>'; |
$table .= '<td> </td>'; |
} |
} |
Line 719 sub displayfoils {
|
Line 718 sub displayfoils {
|
} |
} |
} |
} |
if ($target ne 'tex' && $Apache::lonhomework::type ne 'exam') { |
if ($target ne 'tex' && $Apache::lonhomework::type ne 'exam') { |
$optionlist='<select onchange="javascript:setSubmittedPart(\''. |
$optionlist='<label><select onchange="javascript:setSubmittedPart(\''. |
$part.'\');" name="HWVAL_'. |
$part.'\');" name="HWVAL_'. |
$Apache::inputtags::response[-1].':'.$temp.'">'. |
$Apache::inputtags::response[-1].':'.$temp.'">'. |
$optionlist."</select>\n"; |
$optionlist."</select>\n"; |
Line 746 sub displayfoils {
|
Line 745 sub displayfoils {
|
} |
} |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
if ($Apache::lonhomework::type ne 'exam') { |
if ($Apache::lonhomework::type ne 'exam') { |
$question.="<br />\n".$optionlist.$text; |
$question.='<div class="LC_matchfoil">'."\n".$optionlist.$text.'</label></div>'; |
} else { |
} else { |
$question.="<br />\n".$text; |
$question.="<br />\n".$text; |
} |
} |
Line 754 sub displayfoils {
|
Line 753 sub displayfoils {
|
my @blank; |
my @blank; |
$question.=&Apache::optionresponse::webbubbles(\@used_letters,\@blank,$temp,$last_letter); |
$question.=&Apache::optionresponse::webbubbles(\@used_letters,\@blank,$temp,$last_letter); |
} |
} |
} else { |
} else { |
# Note that if left or right positioned, we must |
# Note that if left or right positioned, we must |
# confine the bubbles to righttabsize: |
# confine the bubbles to righttabsize: |
# |
# |