Diff for /loncom/interface/lonpreferences.pm between versions 1.161 and 1.162

version 1.161, 2009/05/12 14:56:27 version 1.162, 2009/05/12 15:20:23
Line 232  sub texenginechanger { Line 232  sub texenginechanger {
       'mimetex'  => 'mimetex (Convert to Images):',        'mimetex'  => 'mimetex (Convert to Images):',
     );      );
   
       my $jsMathWarning='<p>'
                        .'<div class="LC_warning">'
                        .&mt("It looks like you don't have the TeX math fonts installed.")
                        .'</div>'
                        .'<div>'
                        .&mt('The jsMath example on this page may not look right without them. '
                            .'The [_1]jsMath Home Page[_2] has information on how to download the '
                            .'needed fonts. In the meantime, jsMath will do the best it can '
                            .'with the fonts you have, but it may not be pretty and some equations '
                            .'may not be rendered correctly.'
                            ,'<a href="http://www.math.union.edu/locate/jsMath/" target="_blank">'
                            ,'</a>')
                        .'</div>'
                        .'</p>';
   
     $r->print(<<ENDLSCREEN);      $r->print(<<ENDLSCREEN);
 <h2>$lt{'headline'}</h2>  <h2>$lt{'headline'}</h2>
 <form name="prefs" action="/adm/preferences" method="post">  <form name="prefs" action="/adm/preferences" method="post">
Line 251  $lt{'exmpl'} Line 266  $lt{'exmpl'}
 $jsMath_start  $jsMath_start
 <script type="text/javascript" language="JavaScript">  <script type="text/javascript" language="JavaScript">
 if (jsMath.nofonts == 1) {  if (jsMath.nofonts == 1) {
     document.writeln      document.writeln($jsMathWarning);
         ('<div style="padding: 10; border-style: solid; border-width:3;'  
  +' border-color: #DD0000; background-color: #FFF8F8; width: 75%; text-align: left">'  
  +'<small><font color="#AA0000"><b>Warning:</b> '  
  +'It looks like you don\\\'t have the TeX math fonts installed. '  
  +'The jsMath example on this page may not look right without them. '  
  +'The <a href="http://www.math.union.edu/locate/jsMath/" target="_blank"> '  
  +'jsMath Home Page</a> has information on how to download the '  
  +'needed fonts.  In the meantime, jsMath will do the best it can '  
  +'with the fonts you have, but it may not be pretty and some equations '  
  +'may not be rendered correctly. '  
  +'</font></small></div>');  
 }  }
 </script>  </script>
 <iframe src="/res/adm/pages/math_example.tex?inhibitmenu=yes&texengine=jsMath" width="400" height="120"></iframe>  <iframe src="/res/adm/pages/math_example.tex?inhibitmenu=yes&texengine=jsMath" width="400" height="120"></iframe>

Removed from v.1.161  
changed lines
  Added in v.1.162


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