Diff for /loncom/homework/matchresponse.pm between versions 1.94 and 1.97

version 1.94, 2018/06/07 15:58:10 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='<table class="LC_itemgroup">'; # extra space to match what latex does.
         if ((!$columns) || ($columns < 0)) {          if ((!$columns) || ($columns < 0)) {
             if ($direction eq 'horizontal') {              if ($direction eq 'horizontal') {
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>&nbsp;</td>';                  $table .= '<td>&nbsp;</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:
  #   #

Removed from v.1.94  
changed lines
  Added in v.1.97


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>