version 1.87, 2010/02/28 23:35:53
|
version 1.89, 2011/07/04 09:24:54
|
Line 116 CHEMJS
|
Line 116 CHEMJS
|
'bgcolor' => '#FFFFFF',}); |
'bgcolor' => '#FFFFFF',}); |
my $end_page = |
my $end_page = |
&Apache::loncommon::end_page({'js_ready' => 1,}); |
&Apache::loncommon::end_page({'js_ready' => 1,}); |
|
my $java_not_enabled=&Apache::lonhtmlcommon::java_not_enabled(); |
my $body=<<CHEMPAGE; |
my $body=<<CHEMPAGE; |
$js |
$js |
<center> |
<center> |
Line 143 $js
|
Line 143 $js
|
</td></tr> |
</td></tr> |
</table> |
</table> |
<applet code="JME.class" name="JME" archive="/adm/jme/JME.jar" width="440" height="390" mayscript> |
<applet code="JME.class" name="JME" archive="/adm/jme/JME.jar" width="440" height="390" mayscript> |
You have to enable Java and JavaScript on your machine. |
$java_not_enabled |
$molecule |
$molecule |
<param name="options" value="$options" /> |
<param name="options" value="$options" /> |
</applet><br /> |
</applet><br /> |
Line 417 sub start_organicstructure {
|
Line 417 sub start_organicstructure {
|
$id=&escape($id); |
$id=&escape($id); |
&Apache::lonxml::register_ssi("/cgi-bin/convertjme.pl?$id"); |
&Apache::lonxml::register_ssi("/cgi-bin/convertjme.pl?$id"); |
if ($options =~ /border/) { $result.= '\fbox{'; } |
if ($options =~ /border/) { $result.= '\fbox{'; } |
$result .= '\graphicspath{{/home/httpd/perl/tmp/}}\includegraphics[width='.$texwidth.' mm]{'.$filename.'.eps}'; |
$result .= '\graphicspath{{'.LONCAPA::tempdir(). |
|
'}}\includegraphics[width='.$texwidth.' mm]{'.$filename.'.eps}'; |
if ($options =~ /border/) { $result.= '} '; } |
if ($options =~ /border/) { $result.= '} '; } |
} elsif ($target eq 'edit') { |
} elsif ($target eq 'edit') { |
$result .=&Apache::edit::tag_start($target,$token); |
$result .=&Apache::edit::tag_start($target,$token); |